Package org.jruby.ir.targets
Interface LocalVariableCompiler
- All Known Implementing Classes:
IndyLocalVariableCompiler
,NormalLocalVariableCompiler
public interface LocalVariableCompiler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getHeapLocal
(int depth, int index) Load local variable from dynamic scope.void
getHeapLocalOrNil
(int depth, int index) Load local variable from dynamic scope, returning nil if the resulting value is null.
-
Method Details
-
getHeapLocal
void getHeapLocal(int depth, int index) Load local variable from dynamic scope.Stack required: scope Stack result: value
- Parameters:
depth
- depth into scope stackindex
- index into scope
-
getHeapLocalOrNil
void getHeapLocalOrNil(int depth, int index) Load local variable from dynamic scope, returning nil if the resulting value is null.Stack required: scope Stack result: value
- Parameters:
depth
- depth into scope stackindex
- index into scope
-