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.



893
894
895
896
897
898
899
900
# File 'lib/wardite.rb', line 893

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

Instance Attribute Details

#arityObject

: Integer



881
882
883
# File 'lib/wardite.rb', line 881

def arity
  @arity
end

#bodyObject

: Array



879
880
881
# File 'lib/wardite.rb', line 879

def body
  @body
end

#labelsObject

: Array



883
884
885
# File 'lib/wardite.rb', line 883

def labels
  @labels
end

#localsObject

: Array



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

def locals
  @locals
end

#pcObject

: Integer



876
877
878
# File 'lib/wardite.rb', line 876

def pc
  @pc
end

#spObject

: Integer



877
878
879
# File 'lib/wardite.rb', line 877

def sp
  @sp
end