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.



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

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



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

def arity
  @arity
end

#bodyObject

: Array



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

def body
  @body
end

#findexObject

: Integer



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

def findex
  @findex
end

#labelsObject

: Array



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

def labels
  @labels
end

#localsObject

: Array



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

def locals
  @locals
end

#pcObject

: Integer



830
831
832
# File 'lib/wardite.rb', line 830

def pc
  @pc
end

#spObject

: Integer



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

def sp
  @sp
end