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.



842
843
844
845
846
847
848
849
850
851
# File 'lib/wardite.rb', line 842

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



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

def arity
  @arity
end

#bodyObject

: Array



826
827
828
# File 'lib/wardite.rb', line 826

def body
  @body
end

#findexObject

: Integer



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

def findex
  @findex
end

#labelsObject

: Array



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

def labels
  @labels
end

#localsObject

: Array



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

def locals
  @locals
end

#pcObject

: Integer



823
824
825
# File 'lib/wardite.rb', line 823

def pc
  @pc
end

#spObject

: Integer



824
825
826
# File 'lib/wardite.rb', line 824

def sp
  @sp
end