Package org.jruby.ir.targets.simple
Class NormalDynamicValueCompiler
java.lang.Object
org.jruby.ir.targets.simple.NormalDynamicValueCompiler
- All Implemented Interfaces:
DynamicValueCompiler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
array
(int length) Construct an Array from elements on stack.void
hash
(int length) Construct a Hash from elements on stack.void
pushDRegexp
(Runnable callback, RegexpOptions options, int arity) Build a dynamic regexp.
-
Constructor Details
-
NormalDynamicValueCompiler
-
-
Method Details
-
pushDRegexp
Description copied from interface:DynamicValueCompiler
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.
- Specified by:
pushDRegexp
in interfaceDynamicValueCompiler
- Parameters:
options
- options for the regexparity
- number of Strings passed in
-
array
public void array(int length) Description copied from interface:DynamicValueCompiler
Construct an Array from elements on stack. Stack required: all elements of array- Specified by:
array
in interfaceDynamicValueCompiler
- Parameters:
length
- number of elements
-
hash
public void hash(int length) Description copied from interface:DynamicValueCompiler
Construct a Hash from elements on stack. Stack required: context, all elements of hash- Specified by:
hash
in interfaceDynamicValueCompiler
- Parameters:
length
- number of element pairs
-