Rename opes to operands

Co-authored-by: Aaron Patterson <aaron.patterson@gmail.com>
This commit is contained in:
John Hawthorn 2023-03-16 13:08:13 -07:00
parent d454a590cc
commit 8dbddd5bf8
Notes: git 2023-03-16 21:17:19 +00:00

View File

@ -1,5 +1,5 @@
module RubyVM::RJIT # :nodoc: all
Instruction = Data.define(:name, :bin, :len, :opes)
Instruction = Data.define(:name, :bin, :len, :operands)
INSNS = {
% RubyVM::Instructions.each_with_index do |insn, i|
@ -7,7 +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 %>,
operands: <%= (insn.opes unless insn.name.start_with?('trace_')).inspect %>,
),
% end
}