Package org.jruby.ir.instructions
Class BuildDynRegExpInstr
java.lang.Object
org.jruby.ir.instructions.Instr
org.jruby.ir.instructions.ResultBaseInstr
org.jruby.ir.instructions.NOperandResultBaseInstr
org.jruby.ir.instructions.BuildDynRegExpInstr
- All Implemented Interfaces:
ResultInstr
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegexpOptionsprivate final BuildDynRegExpInstr.RECacheFields inherited from class org.jruby.ir.instructions.ResultBaseInstr
resultFields inherited from class org.jruby.ir.instructions.Instr
EMPTY_OPERANDS -
Constructor Summary
ConstructorsModifierConstructorDescriptionBuildDynRegExpInstr(Variable result, Operand[] pieces, RegexpOptions options) privateBuildDynRegExpInstr(Variable result, Operand[] pieces, RegexpOptions options, BuildDynRegExpInstr.RECache reCache) -
Method Summary
Modifier and TypeMethodDescriptionprivate RubyRegexpbuildRegexp(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp) Clone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope).static BuildDynRegExpInstrvoidOperand[]interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp) private RubyString[]retrievePieces(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) String[]voidMethods inherited from class org.jruby.ir.instructions.NOperandResultBaseInstr
getOperands, setOperandMethods inherited from class org.jruby.ir.instructions.ResultBaseInstr
getResult, updateResultMethods inherited from class org.jruby.ir.instructions.Instr
canBeDeletedFromScope, canRaiseException, cloneOperands, computeScopeFlags, dumpableFields, getOperation, getUsedVariables, hasSideEffects, interpretAndGetNewIPC, isDead, isDeletable, markDead, renameVars, simplifyAndGetResult, simplifyOperands, toString, transfersControl
-
Field Details
-
options
-
reCache
-
-
Constructor Details
-
BuildDynRegExpInstr
private BuildDynRegExpInstr(Variable result, Operand[] pieces, RegexpOptions options, BuildDynRegExpInstr.RECache reCache) -
BuildDynRegExpInstr
-
-
Method Details
-
getPieces
-
getOptions
-
getRegexp
-
toStringNonOperandArgs
- Overrides:
toStringNonOperandArgsin classInstr
-
clone
Description copied from class:InstrClone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope). This might renaming variables and labels to eliminate naming conflicts. The implementation might vary on the cloning mode. -
retrievePieces
private RubyString[] retrievePieces(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) -
encode
- Overrides:
encodein classResultBaseInstr
-
decode
-
interpret
public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp) -
buildRegexp
private RubyRegexp buildRegexp(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp) -
visit
-