Class: Rubinius::ToolSet.current::TS::Compiler::LocalReference
- Inherits:
-
Object
- Object
- Rubinius::ToolSet.current::TS::Compiler::LocalReference
- Defined in:
- lib/rubinius/compiler/locals.rb
Instance Attribute Summary collapse
-
#slot ⇒ Object
readonly
Returns the value of attribute slot.
Instance Method Summary collapse
- #get_bytecode(g) ⇒ Object
-
#initialize(slot) ⇒ LocalReference
constructor
A new instance of LocalReference.
- #set_bytecode(g) ⇒ Object
Constructor Details
#initialize(slot) ⇒ LocalReference
Returns a new instance of LocalReference.
83 84 85 |
# File 'lib/rubinius/compiler/locals.rb', line 83 def initialize(slot) @slot = slot end |
Instance Attribute Details
#slot ⇒ Object (readonly)
Returns the value of attribute slot.
81 82 83 |
# File 'lib/rubinius/compiler/locals.rb', line 81 def slot @slot end |
Instance Method Details
#get_bytecode(g) ⇒ Object
87 88 89 |
# File 'lib/rubinius/compiler/locals.rb', line 87 def get_bytecode(g) g.push_local @slot end |
#set_bytecode(g) ⇒ Object
91 92 93 |
# File 'lib/rubinius/compiler/locals.rb', line 91 def set_bytecode(g) g.set_local @slot end |