Top Fields Constructors Methods
org.jruby.ir.targets.indy

public Class IndyLocalVariableCompiler

extends Object
implements LocalVariableCompiler
Class Inheritance
All Implemented Interfaces
org.jruby.ir.targets.LocalVariableCompiler
Imports
org.jruby.ir.targets.IRBytecodeAdapter, .LocalVariableCompiler, org.jruby.ir.targets.simple.NormalLocalVariableCompiler, org.jruby.runtime.DynamicScope, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.scope.DynamicScopeGenerator

Field Summary

Modifier and TypeField and Description
private final IRBytecodeAdapter
private final NormalLocalVariableCompiler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
getHeapLocal(int
depth into scope stack
depth
,
int
index into scope
location
)

Implements org.jruby.ir.targets.LocalVariableCompiler.getHeapLocal.

Load local variable from dynamic scope.

public void
getHeapLocalOrNil(int
depth into scope stack
depth
,
int
index into scope
location
)

Implements org.jruby.ir.targets.LocalVariableCompiler.getHeapLocalOrNil.

Load local variable from dynamic scope, returning nil if the resulting value is null.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

compilerback to summary
private final IRBytecodeAdapter compiler
normalLocalVariableCompilerback to summary
private final NormalLocalVariableCompiler normalLocalVariableCompiler

Constructor Detail

IndyLocalVariableCompilerback to summary
public IndyLocalVariableCompiler(IRBytecodeAdapter irBytecodeAdapter)

Method Detail

getHeapLocalback to summary
public void getHeapLocal(int depth, int location)

Implements org.jruby.ir.targets.LocalVariableCompiler.getHeapLocal.

Doc from org.jruby.ir.targets.LocalVariableCompiler.getHeapLocal.

Load local variable from dynamic scope.

Stack required: scope Stack result: value

Parameters
depth:int

depth into scope stack

location:int

index into scope

Annotations
@Override
getHeapLocalOrNilback to summary
public void getHeapLocalOrNil(int depth, int location)

Implements org.jruby.ir.targets.LocalVariableCompiler.getHeapLocalOrNil.

Doc from org.jruby.ir.targets.LocalVariableCompiler.getHeapLocalOrNil.

Load local variable from dynamic scope, returning nil if the resulting value is null.

Stack required: scope Stack result: value

Parameters
depth:int

depth into scope stack

location:int

index into scope

Annotations
@Override