Class: Furnace::AVM2::ABC::LoadStoreOpcode

Inherits:
Opcode
  • Object
show all
Defined in:
lib/furnace-avm2/abc/opcodes/load_store_opcode.rb

Constant Summary

Constants inherited from Opcode

Opcode::MAP

Instance Attribute Summary

Attributes inherited from Opcode

#sequence

Instance Method Summary collapse

Methods inherited from Opcode

body, #byte_length, #consumes_context, define_property, #disassemble, #disassemble_parameters, #initialize, mnemonic, #next, #offset, #read, #root, #write

Constructor Details

This class inherits a constructor from Furnace::AVM2::ABC::Opcode

Instance Method Details

#ast_typeObject



10
11
12
13
14
15
16
# File 'lib/furnace-avm2/abc/opcodes/load_store_opcode.rb', line 10

def ast_type
  if direction == :load
    :get_local
  elsif direction == :store
    :set_local
  end
end

#parametersObject



6
7
8
# File 'lib/furnace-avm2/abc/opcodes/load_store_opcode.rb', line 6

def parameters
  [ index ]
end