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.



851
852
853
854
855
856
857
858
859
860
# File 'lib/wardite.rb', line 851

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



837
838
839
# File 'lib/wardite.rb', line 837

def arity
  @arity
end

#bodyObject

: Array



835
836
837
# File 'lib/wardite.rb', line 835

def body
  @body
end

#findexObject

: Integer



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

def findex
  @findex
end

#labelsObject

: Array



839
840
841
# File 'lib/wardite.rb', line 839

def labels
  @labels
end

#localsObject

: Array



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

def locals
  @locals
end

#pcObject

: Integer



832
833
834
# File 'lib/wardite.rb', line 832

def pc
  @pc
end

#spObject

: Integer



833
834
835
# File 'lib/wardite.rb', line 833

def sp
  @sp
end