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.



909
910
911
912
913
914
915
916
917
918
# File 'lib/wardite.rb', line 909

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



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

def arity
  @arity
end

#bodyObject

: Array



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

def body
  @body
end

#findexObject

: Integer



901
902
903
# File 'lib/wardite.rb', line 901

def findex
  @findex
end

#labelsObject

: Array



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

def labels
  @labels
end

#localsObject

: Array



899
900
901
# File 'lib/wardite.rb', line 899

def locals
  @locals
end

#pcObject

: Integer



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

def pc
  @pc
end

#spObject

: Integer



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

def sp
  @sp
end