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.



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

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



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

def arity
  @arity
end

#bodyObject

: Array



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

def body
  @body
end

#findexObject

: Integer



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

def findex
  @findex
end

#labelsObject

: Array



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

def labels
  @labels
end

#localsObject

: Array



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

def locals
  @locals
end

#pcObject

: Integer



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

def pc
  @pc
end

#spObject

: Integer



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

def sp
  @sp
end