Class: Wardite::Frame
- Inherits:
-
Object
- Object
- Wardite::Frame
- Defined in:
- lib/wardite.rb
Instance Attribute Summary collapse
-
#arity ⇒ Object
: Integer.
-
#body ⇒ 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.
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
#arity ⇒ Object
: Integer
944 945 946 |
# File 'lib/wardite.rb', line 944 def arity @arity end |
#pc ⇒ Object
: Integer
939 940 941 |
# File 'lib/wardite.rb', line 939 def pc @pc end |
#sp ⇒ Object
: Integer
940 941 942 |
# File 'lib/wardite.rb', line 940 def sp @sp end |