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

public Class IndyDynamicValueCompiler

extends Object
implements DynamicValueCompiler
Class Inheritance
All Implemented Interfaces
org.jruby.ir.targets.DynamicValueCompiler
Imports
org.jruby.compiler.NotCompilableException, org.jruby.ir.targets.DynamicValueCompiler, .IRBytecodeAdapter, .JVM, org.jruby.ir.targets.simple.NormalDynamicValueCompiler, org.jruby.runtime.ThreadContext, org.jruby.specialized.RubyArraySpecialized, org.jruby.util.CodegenUtils, .RegexpOptions

Field Summary

Modifier and TypeField and Description
private final IRBytecodeAdapter
private final DynamicValueCompiler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
array(int
number of elements
length
)

Implements org.jruby.ir.targets.DynamicValueCompiler.array.

Construct an Array from elements on stack.

public void
hash(int
number of element pairs
length
)

Implements org.jruby.ir.targets.DynamicValueCompiler.hash.

Construct a Hash from elements on stack.

public void
pushDRegexp(Runnable callback, RegexpOptions
options for the regexp
options
,
int
number of Strings passed in
arity
)

Implements org.jruby.ir.targets.DynamicValueCompiler.pushDRegexp.

Build a dynamic regexp.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

compilerback to summary
private final IRBytecodeAdapter compiler
normalCompilerback to summary
private final DynamicValueCompiler normalCompiler

Constructor Detail

IndyDynamicValueCompilerback to summary
public IndyDynamicValueCompiler(IRBytecodeAdapter compiler)

Method Detail

arrayback to summary
public void array(int length)

Implements org.jruby.ir.targets.DynamicValueCompiler.array.

Doc from org.jruby.ir.targets.DynamicValueCompiler.array.

Construct an Array from elements on stack. Stack required: all elements of array

Parameters
length:int

number of elements

hashback to summary
public void hash(int length)

Implements org.jruby.ir.targets.DynamicValueCompiler.hash.

Doc from org.jruby.ir.targets.DynamicValueCompiler.hash.

Construct a Hash from elements on stack. Stack required: context, all elements of hash

Parameters
length:int

number of element pairs

pushDRegexpback to summary
public void pushDRegexp(Runnable callback, RegexpOptions options, int arity)

Implements org.jruby.ir.targets.DynamicValueCompiler.pushDRegexp.

Doc from org.jruby.ir.targets.DynamicValueCompiler.pushDRegexp.

Build a dynamic regexp.

No stack requirement. The callback must push onto this method's stack the ThreadContext and all arguments for building the dregexp, matching the given arity.

Parameters
options:RegexpOptions

options for the regexp

arity:int

number of Strings passed in

Annotations
@Override