Package org.jruby.ir.targets.simple
Class NormalLocalVariableCompiler
java.lang.Object
org.jruby.ir.targets.simple.NormalLocalVariableCompiler
- All Implemented Interfaces:
LocalVariableCompiler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getHeapLocal
(int depth, int location) Load local variable from dynamic scope.void
getHeapLocalOrNil
(int depth, int location) Load local variable from dynamic scope, returning nil if the resulting value is null.
-
Constructor Details
-
NormalLocalVariableCompiler
-
-
Method Details
-
getHeapLocal
public void getHeapLocal(int depth, int location) Description copied from interface:LocalVariableCompiler
Load local variable from dynamic scope.Stack required: scope Stack result: value
- Specified by:
getHeapLocal
in interfaceLocalVariableCompiler
- Parameters:
depth
- depth into scope stacklocation
- index into scope
-
getHeapLocalOrNil
public void getHeapLocalOrNil(int depth, int location) Description copied from interface:LocalVariableCompiler
Load local variable from dynamic scope, returning nil if the resulting value is null.Stack required: scope Stack result: value
- Specified by:
getHeapLocalOrNil
in interfaceLocalVariableCompiler
- Parameters:
depth
- depth into scope stacklocation
- index into scope
-