summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2023-03-14 18:19:21 -0700
committerJohn Hawthorn <john@hawthorn.email>2023-03-16 14:16:56 -0700
commitd454a590ccdcf50d681aeb0aacfe2a0e424481b1 (patch)
treecd81c6d0910cec541eaf05e5f7de941051335bc5 /tool
parent182f4f0d1c88771e688ad37e571282c67c1dbf19 (diff)
downloadruby-d454a590ccdcf50d681aeb0aacfe2a0e424481b1.tar.gz
Re-add RJIT::Instruction#opes
Diffstat (limited to 'tool')
-rw-r--r--tool/ruby_vm/views/lib/ruby_vm/rjit/instruction.rb.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/ruby_vm/views/lib/ruby_vm/rjit/instruction.rb.erb b/tool/ruby_vm/views/lib/ruby_vm/rjit/instruction.rb.erb
index 055e769aec..b32c1ea0be 100644
--- a/tool/ruby_vm/views/lib/ruby_vm/rjit/instruction.rb.erb
+++ b/tool/ruby_vm/views/lib/ruby_vm/rjit/instruction.rb.erb
@@ -1,5 +1,5 @@
module RubyVM::RJIT # :nodoc: all
- Instruction = Data.define(:name, :bin, :len)
+ Instruction = Data.define(:name, :bin, :len, :opes)
INSNS = {
% RubyVM::Instructions.each_with_index do |insn, i|
@@ -7,6 +7,7 @@ module RubyVM::RJIT # :nodoc: all
name: :<%= insn.name %>,
bin: <%= i %>, # BIN(<%= insn.name %>)
len: <%= insn.width %>, # insn_len
+ opes: <%= (insn.opes unless insn.name.start_with?('trace_')).inspect %>,
),
% end
}