Class: RubyVM::Instruction::DUP

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

Instance Method Summary collapse

Instance Method Details

#bytedecode(env) ⇒ Object



694
695
696
697
698
# File 'lib/decompiler/vm/bytedecoder.rb', line 694

def bytedecode(env)
  arg = env.stack.pop
  env.stack.push arg
  env.stack.push arg
end