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

public Class NormalLocalVariableCompiler

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

Field Summary

Modifier and TypeField and Description
private final IRBytecodeAdapter

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

Constructor Detail

NormalLocalVariableCompilerback to summary
public NormalLocalVariableCompiler(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