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.



904
905
906
907
908
909
910
911
912
913
# File 'lib/wardite.rb', line 904

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



890
891
892
# File 'lib/wardite.rb', line 890

def arity
  @arity
end

#bodyObject

: Array



888
889
890
# File 'lib/wardite.rb', line 888

def body
  @body
end

#findexObject

: Integer



896
897
898
# File 'lib/wardite.rb', line 896

def findex
  @findex
end

#labelsObject

: Array



892
893
894
# File 'lib/wardite.rb', line 892

def labels
  @labels
end

#localsObject

: Array



894
895
896
# File 'lib/wardite.rb', line 894

def locals
  @locals
end

#pcObject

: Integer



885
886
887
# File 'lib/wardite.rb', line 885

def pc
  @pc
end

#spObject

: Integer



886
887
888
# File 'lib/wardite.rb', line 886

def sp
  @sp
end