| Modifier and Type | Field and Description |
|---|---|
| private final Encoding | |
| private final int | |
| private final String | |
| private final int | |
| private final StringStyle |
| Access | Constructor and Description |
|---|---|
| public | BuildCompoundStringInstr(Variable result, Operand[] pieces, Encoding encoding, int estimatedSize, StringStyle stringStyle, String file, int line)
|
| Modifier and Type | Method and Description |
|---|---|
| private FrozenString | |
| private FrozenString | |
| public Instr | clone(CloneInfo
This object manages renaming of variables and labels, handles
args and return values. ii)Implements abstract org. 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). |
| private FrozenString | |
| private Instr | |
| public static BuildCompoundStringInstr | |
| private static StringStyle | |
| public void | |
| private FrozenString | |
| public Encoding | |
| public String | |
| public int | |
| public int | |
| public Operand[] | |
| public Object | interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp)
Overrides org.
|
| public boolean | |
| public boolean | |
| public Instr | Returns: the simplified instruction or itself when it cannot be simplified.the IR manager manager)Overrides org. This will make an attempt to combine multiple pieces when they are contiguout frozen strings OR immutable literals. |
| public void |
| encoding | back to summary |
|---|---|
| private final Encoding encoding | |
| estimatedSize | back to summary |
|---|---|
| private final int estimatedSize | |
| file | back to summary |
|---|---|
| private final String file | |
| line | back to summary |
|---|---|
| private final int line | |
| stringStyle | back to summary |
|---|---|
| private final StringStyle stringStyle | |
| BuildCompoundStringInstr | back to summary |
|---|---|
| public BuildCompoundStringInstr(Variable result, Operand[] pieces, Encoding encoding, int estimatedSize, StringStyle stringStyle, String file, int line) | |
| asFrozenString | back to summary |
|---|---|
| private FrozenString asFrozenString(ThreadContext context, ImmutableLiteral<T> piece) | |
| asOperand | back to summary |
|---|---|
| private FrozenString asOperand(ByteList bytelist) | |
| clone | back to summary |
|---|---|
| public Instr clone(CloneInfo ii) Implements abstract org. Doc from org. 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). This might renaming variables and labels to eliminate naming conflicts. The implementation might vary on the cloning mode. | |
| combine | back to summary |
|---|---|
| private FrozenString combine(ThreadContext context, FrozenString lastString, ImmutableLiteral<T> piece) | |
| copy | back to summary |
|---|---|
| private Instr copy(FrozenString string) | |
| decode | back to summary |
|---|---|
| public static BuildCompoundStringInstr decode(IRReaderDecoder d) | |
| decodeStringStyle | back to summary |
|---|---|
| private static StringStyle decodeStringStyle(boolean frozen, boolean mutable) | |
| encode | back to summary |
|---|---|
| public void encode(IRWriterEncoder e) Overrides org.
| |
| findNextFrozenString | back to summary |
|---|---|
| private FrozenString findNextFrozenString(ThreadContext context, Operand[] piecesArray, List<Operand> pieces, int[] i) | |
| getEncoding | back to summary |
|---|---|
| public Encoding getEncoding() | |
| getFile | back to summary |
|---|---|
| public String getFile() | |
| getInitialSize | back to summary |
|---|---|
| public int getInitialSize() | |
| getLine | back to summary |
|---|---|
| public int getLine() | |
| getPieces | back to summary |
|---|---|
| public Operand[] getPieces() | |
| interpret | back to summary |
|---|---|
| public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp) Overrides org.
| |
| isChilled | back to summary |
|---|---|
| public boolean isChilled() | |
| isFrozen | back to summary |
|---|---|
| public boolean isFrozen() | |
| simplifyInstr | back to summary |
|---|---|
| public Instr simplifyInstr(IRManager manager) Overrides org. This will make an attempt to combine multiple pieces when they are contiguout frozen strings OR immutable literals. It may fail as not all strings can be concatenated together (e.g. mismatched encodings). | |
| visit | back to summary |
|---|---|
| public void visit(IRVisitor visitor) Overrides org.
| |