Class: RubyVM::Instruction::SETCONSTANT

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

Instance Method Summary collapse

Instance Method Details

#bytedecode(env) ⇒ Object



639
640
641
642
643
# File 'lib/decompiler/vm/bytedecoder.rb', line 639

def bytedecode(env)
  klass = env.stack.pop
  value = env.stack.pop
  env.stack.push Expression::ConstantAssignment.new(env.pc, klass, @operands[0], value)
end