| Modifier and Type | Field and Description |
|---|---|
| private final SsaMethod | ssaMeth
method we're processing |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | Returns: true for 0 or null type bearersnon-null spec spec)Returns true if the register contains an integer 0 or a known-null object reference |
| public static void | |
| private void | replacePlainInsn(NormalSsaInsn
non-null; an SsaInsn containing a PlainInsnnon-null; new sources list for new insnA RegOp from newOpcode, Constant RegOpsnull-ok; constant for new instruction, if anyReplaces an SsaInsn containing a PlainInsn with a new PlainInsn. |
| private void | |
| private boolean | Returns: true if the instruction was replacednon-null; instruction to try to replaceTries to replace an instruction with a const instruction. |
| ssaMeth | back to summary |
|---|---|
| private final SsaMethod ssaMeth method we're processing | |
| LiteralOpUpgrader | back to summary |
|---|---|
| private LiteralOpUpgrader(SsaMethod ssaMethod) | |
| isConstIntZeroOrKnownNull | back to summary |
|---|---|
| private static boolean isConstIntZeroOrKnownNull(RegisterSpec spec) Returns true if the register contains an integer 0 or a known-null object reference
| |
| process | back to summary |
|---|---|
| public static void process(SsaMethod ssaMethod) Process a method.
| |
| replacePlainInsn | back to summary |
|---|---|
| private void replacePlainInsn(NormalSsaInsn insn, RegisterSpecList newSources, int newOpcode, Constant cst) Replaces an SsaInsn containing a PlainInsn with a new PlainInsn. The new PlainInsn is constructed with a new RegOp and new sources. TODO move this somewhere else.
| |
| run | back to summary |
|---|---|
| private void run() Run the literal op upgrader | |
| tryReplacingWithConstant | back to summary |
|---|---|
| private boolean tryReplacingWithConstant(NormalSsaInsn insn) Tries to replace an instruction with a const instruction. The given instruction must have a constant result for it to be replaced.
| |