Class: RubyVM::Instruction::CONCATSTRINGS

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

Instance Method Summary collapse

Instance Method Details

#bytedecode(env) ⇒ Object



676
677
678
679
680
681
682
683
684
# File 'lib/decompiler/vm/bytedecoder.rb', line 676

def bytedecode(env)
  i = @operands[0]
  args = []
  while i > 0 do
    args.unshift env.stack.pop
    i -= 1
  end
  env.stack.push Expression::ConcatStrings.new(env.pc, args)
end