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.



877
878
879
880
881
882
883
884
885
886
# File 'lib/wardite.rb', line 877

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



863
864
865
# File 'lib/wardite.rb', line 863

def arity
  @arity
end

#bodyObject

: Array[[Symbol, Symbol, Array, Integer?, Integer?]]



861
862
863
# File 'lib/wardite.rb', line 861

def body
  @body
end

#findexObject

: Integer



869
870
871
# File 'lib/wardite.rb', line 869

def findex
  @findex
end

#labelsObject

: Array



865
866
867
# File 'lib/wardite.rb', line 865

def labels
  @labels
end

#localsObject

: Array



867
868
869
# File 'lib/wardite.rb', line 867

def locals
  @locals
end

#pcObject

: Integer



858
859
860
# File 'lib/wardite.rb', line 858

def pc
  @pc
end

#spObject

: Integer



859
860
861
# File 'lib/wardite.rb', line 859

def sp
  @sp
end