summaryrefslogtreecommitdiff
path: root/tool/ruby_vm/views/insns.inc.erb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2025-04-29 11:03:13 -0700
committerGitHub <[email protected]>2025-04-29 11:03:13 -0700
commit0f3d6ee57825f6ecbcbab797ef8e9ca9f84bc095 (patch)
tree0d6e112eb555e161e9feecf7c00dfa13622cf67b /tool/ruby_vm/views/insns.inc.erb
parent0c44e5ab5efc3a54a0d18bf9c2a206c714e1d1c7 (diff)
ZJIT: Disable ZJIT instructions when USE_ZJIT is 0 (#13199)
* 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
Notes
Notes: Merged-By: k0kubun <[email protected]>
Diffstat (limited to 'tool/ruby_vm/views/insns.inc.erb')
-rw-r--r--tool/ruby_vm/views/insns.inc.erb10
1 files changed, 9 insertions, 1 deletions
diff --git a/tool/ruby_vm/views/insns.inc.erb b/tool/ruby_vm/views/insns.inc.erb
index b5b557f9dc..6521a89b8a 100644
--- a/tool/ruby_vm/views/insns.inc.erb
+++ b/tool/ruby_vm/views/insns.inc.erb
@@ -6,6 +6,9 @@
%# 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: 'contains YARV instruction list',
@@ -19,9 +22,14 @@
#define BIN(n) YARVINSN_##n
enum ruby_vminsn_type {
-% RubyVM::Instructions.each do |i|
+% insns.each do |i|
<%= i.bin %>,
% end
+#if USE_ZJIT
+% zjit_insns.each do |i|
+ <%= i.bin %>,
+% end
+#endif
VM_INSTRUCTION_SIZE
};