Class: Wardite::Frame

Inherits:
Object
  • Object
show all
Defined in:
lib/wardite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pc, sp, body, arity, locals) ⇒ Frame

Returns a new instance of Frame.



814
815
816
817
818
819
820
821
# File 'lib/wardite.rb', line 814

def initialize(pc, sp, body, arity, locals)
  @pc = pc
  @sp = sp
  @body = body
  @arity = arity
  @locals = locals
  @labels = []
end

Instance Attribute Details

#arityObject

: Integer



802
803
804
# File 'lib/wardite.rb', line 802

def arity
  @arity
end

#bodyObject

: Array



800
801
802
# File 'lib/wardite.rb', line 800

def body
  @body
end

#labelsObject

: Array



804
805
806
# File 'lib/wardite.rb', line 804

def labels
  @labels
end

#localsObject

: Array



806
807
808
# File 'lib/wardite.rb', line 806

def locals
  @locals
end

#pcObject

: Integer



797
798
799
# File 'lib/wardite.rb', line 797

def pc
  @pc
end

#spObject

: Integer



798
799
800
# File 'lib/wardite.rb', line 798

def sp
  @sp
end