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.



954
955
956
957
958
959
960
# File 'lib/wardite.rb', line 954

def initialize(pc, sp, body, arity, locals)
  @pc = pc
  @sp = sp
  @body = body
  @arity = arity
  @locals = locals
end

Instance Attribute Details

#arityObject

: Integer



944
945
946
# File 'lib/wardite.rb', line 944

def arity
  @arity
end

#bodyObject

: Array



942
943
944
# File 'lib/wardite.rb', line 942

def body
  @body
end

#localsObject

: Array



946
947
948
# File 'lib/wardite.rb', line 946

def locals
  @locals
end

#pcObject

: Integer



939
940
941
# File 'lib/wardite.rb', line 939

def pc
  @pc
end

#spObject

: Integer



940
941
942
# File 'lib/wardite.rb', line 940

def sp
  @sp
end