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.



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

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



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

def arity
  @arity
end

#bodyObject

: Array



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

def body
  @body
end

#findexObject

: Integer



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

def findex
  @findex
end

#labelsObject

: Array



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

def labels
  @labels
end

#localsObject

: Array



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

def locals
  @locals
end

#pcObject

: Integer



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

def pc
  @pc
end

#spObject

: Integer



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

def sp
  @sp
end