mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 12:34:21 +00:00
* ZJIT: Disable ZJIT instructions when USE_ZJIT is 0 * Test the order of ZJIT instructions * Add more jobs that disable JITs * Show instruction names in the message
30 lines
791 B
Plaintext
30 lines
791 B
Plaintext
/* -*- C -*- */
|
|
|
|
%# Copyright (c) 2017 Urabe, Shyouhei. All rights reserved.
|
|
%#
|
|
%# This file is a part of the programming language Ruby. Permission is hereby
|
|
%# granted, to either redistribute and/or modify this file, provided that the
|
|
%# conditions mentioned in the file COPYING are met. Consult the file for
|
|
%# details.
|
|
%
|
|
% zjit_insns, insns = RubyVM::Instructions.partition { |i| i.name.start_with?('zjit_') }
|
|
%
|
|
<%= render 'copyright' -%>
|
|
<%= render 'notice', locals: {
|
|
this_file: 'is for threaded code',
|
|
edit: __FILE__,
|
|
} -%>
|
|
|
|
static const void *const insns_address_table[] = {
|
|
% insns.each do |i|
|
|
LABEL_PTR(<%= i.name %>),
|
|
% end
|
|
#if USE_ZJIT
|
|
% zjit_insns.each do |i|
|
|
LABEL_PTR(<%= i.name %>),
|
|
% end
|
|
#endif
|
|
};
|
|
|
|
ASSERT_VM_INSTRUCTION_SIZE(insns_address_table);
|