21 lines
283 B
Cheetah
21 lines
283 B
Cheetah
|
# -*-ruby-*-
|
||
|
#
|
||
|
|
||
|
module YARVCore
|
||
|
class InstructionSequence
|
||
|
class Instruction
|
||
|
InsnID2NO = {
|
||
|
<%= insn_id2no %>
|
||
|
}
|
||
|
|
||
|
def self.id2insn_no id
|
||
|
if InsnID2NO.has_key? id
|
||
|
InsnID2NO[id]
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
|
||
|
|