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.



860
861
862
863
864
865
866
867
868
869
# File 'lib/wardite.rb', line 860

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

  @findex = 0
end

Instance Attribute Details

#arityObject

: Integer



846
847
848
# File 'lib/wardite.rb', line 846

def arity
  @arity
end

#bodyObject

: Array



844
845
846
# File 'lib/wardite.rb', line 844

def body
  @body
end

#findexObject

: Integer



852
853
854
# File 'lib/wardite.rb', line 852

def findex
  @findex
end

#labelsObject

: Array



848
849
850
# File 'lib/wardite.rb', line 848

def labels
  @labels
end

#localsObject

: Array



850
851
852
# File 'lib/wardite.rb', line 850

def locals
  @locals
end

#pcObject

: Integer



841
842
843
# File 'lib/wardite.rb', line 841

def pc
  @pc
end

#spObject

: Integer



842
843
844
# File 'lib/wardite.rb', line 842

def sp
  @sp
end