Class: RubyVM::Instruction::TOPN

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

Instance Method Summary collapse

Instance Method Details

#bytedecode(env) ⇒ Object

get nth stack entry from stack top



749
750
751
752
753
# File 'lib/decompiler/vm/bytedecoder.rb', line 749

def bytedecode(env)
  n = @operands[0]
  idx = -(n+1)
  env.stack[idx]
end