Class: RubyVM::Instruction::GETLOCAL

Inherits:
Object
  • Object
show all
Defined in:
lib/decompiler/vm/bytedecoder.rb

Instance Method Summary collapse

Instance Method Details

#bytedecode(env) ⇒ Object



711
712
713
714
715
# File 'lib/decompiler/vm/bytedecoder.rb', line 711

def bytedecode(env)
  idx = env.local_table.size - @operands[0] + 1
  name = env.local_table[idx]
  env.stack.push Expression::Variable.new(env.pc, name)
end