Class: Wardite::Frame
- Inherits:
-
Object
- Object
- Wardite::Frame
- Defined in:
- lib/wardite.rb
Instance Attribute Summary collapse
-
#arity ⇒ Object
: Integer.
-
#body ⇒ Object
: Array[[Symbol, Symbol, Array, Integer?, Integer?]].
-
#findex ⇒ Object
: Integer.
-
#labels ⇒ Object
: Array.
-
#locals ⇒ Object
: Array.
-
#pc ⇒ Object
: Integer.
-
#sp ⇒ Object
: Integer.
Instance Method Summary collapse
-
#initialize(pc, sp, body, arity, locals) ⇒ Frame
constructor
A new instance of Frame.
Constructor Details
#initialize(pc, sp, body, arity, locals) ⇒ Frame
Returns a new instance of Frame.
877 878 879 880 881 882 883 884 885 886 |
# File 'lib/wardite.rb', line 877 def initialize(pc, sp, body, arity, locals) @pc = pc @sp = sp @body = body @arity = arity @locals = locals @labels = [] @findex = 0 end |
Instance Attribute Details
#arity ⇒ Object
: Integer
863 864 865 |
# File 'lib/wardite.rb', line 863 def arity @arity end |
#body ⇒ Object
: Array[[Symbol, Symbol, Array, Integer?, Integer?]]
861 862 863 |
# File 'lib/wardite.rb', line 861 def body @body end |
#findex ⇒ Object
: Integer
869 870 871 |
# File 'lib/wardite.rb', line 869 def findex @findex end |
#pc ⇒ Object
: Integer
858 859 860 |
# File 'lib/wardite.rb', line 858 def pc @pc end |
#sp ⇒ Object
: Integer
859 860 861 |
# File 'lib/wardite.rb', line 859 def sp @sp end |