Class: RubyVM::Instruction::SETLOCAL
- Inherits:
-
Object
- Object
- RubyVM::Instruction::SETLOCAL
- Defined in:
- lib/decompiler/vm/bytedecoder.rb
Instance Method Summary collapse
Instance Method Details
#bytedecode(env) ⇒ Object
702 703 704 705 706 707 |
# File 'lib/decompiler/vm/bytedecoder.rb', line 702 def bytedecode(env) idx = env.local_table.size - @operands[0] + 1 name = env.local_table[idx] value = env.stack.pop env.stack.push Expression::Assignment.new(env.pc, name, value) end |