mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 22:45:03 +02:00
14 lines
415 B
Text
14 lines
415 B
Text
module RubyVM::RJIT # :nodoc: all
|
|
Instruction = Data.define(:name, :bin, :len, :operands)
|
|
|
|
INSNS = {
|
|
% RubyVM::Instructions.each_with_index do |insn, i|
|
|
<%= i %> => Instruction.new(
|
|
name: :<%= insn.name %>,
|
|
bin: <%= i %>, # BIN(<%= insn.name %>)
|
|
len: <%= insn.width %>, # insn_len
|
|
operands: <%= (insn.operands unless insn.name.start_with?('trace_')).inspect %>,
|
|
),
|
|
% end
|
|
}
|
|
end
|