public class LoadStoreMatching
extends java.lang.Object
| Constructor and Description |
|---|
LoadStoreMatching() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equivalentFieldDescriptors(Field field1,
Field field2) |
static @Nullable ArrayLen |
matchArrayLen(@Nullable Instruction insn)
Matches the given instruction to an
ArrayLen instruction. |
static @Nullable ArrayLen |
matchArrayLenLoad(@Nullable Instruction insn,
LocalVariable loadVar)
|
static @Nullable ArrayElementReference |
matchElemRef(@Nullable Instruction insn) |
static boolean |
matchField(Field field1,
Field field2) |
static @Nullable FieldReference |
matchFieldRef(@Nullable Instruction insn) |
static @Nullable FieldReference |
matchFieldRef(@Nullable Instruction insn,
Field field) |
static @Nullable Load |
matchLoad(@Nullable Instruction insn)
Matches the given instruction to a Load instruction.
|
static @Nullable ArrayElementReference |
matchLoadElemRef(@Nullable Instruction insn) |
static @Nullable Load |
matchLoadField(@Nullable Instruction insn)
Matches the given instruction to a LoadField of the given field.
|
static @Nullable Load |
matchLoadField(@Nullable Instruction insn,
Field field)
Matches the given instruction to a LoadField of the given field.
|
static @Nullable FieldReference |
matchLoadFieldRef(@Nullable Instruction insn) |
static @Nullable Load |
matchLoadLocal(@Nullable Instruction insn)
Matches the given instruction to a Load instruction.
|
static @Nullable Load |
matchLoadLocal(@Nullable Instruction insn,
LocalVariable variable)
Matches the given instruction to a Load instruction of a specific variable.
|
static @Nullable LocalReference |
matchLocalRef(@Nullable Instruction insn) |
static @Nullable LocalReference |
matchLocalRef(@Nullable Instruction insn,
LocalVariable variable) |
static @Nullable Store |
matchStore(@Nullable Instruction insn)
Matches the given instruction to a Store instruction.
|
static @Nullable Store |
matchStoreField(@Nullable Instruction insn)
Matches the given instruction to a StoreField of the given field.
|
static @Nullable Store |
matchStoreField(@Nullable Instruction insn,
Field field)
Matches the given instruction to a StoreField of the given field.
|
static @Nullable FieldReference |
matchStoreFieldRef(@Nullable Instruction insn) |
static @Nullable Store |
matchStoreLocal(@Nullable Instruction insn)
Matches the given instruction to a Store instruction.
|
static @Nullable Store |
matchStoreLocal(@Nullable Instruction insn,
LocalVariable variable)
Matches the given instruction to a Store instruction of a specific variable.
|
static @Nullable Store |
matchStoreLocalLoadLocal(@Nullable Instruction insn,
LocalVariable variable)
|
@Nullable public static @Nullable Load matchLoad(@Nullable @Nullable Instruction insn)
insn - The insn to match against.@Nullable public static @Nullable Store matchStore(@Nullable @Nullable Instruction insn)
insn - The insn to match against.@Nullable public static @Nullable Store matchStoreLocalLoadLocal(@Nullable @Nullable Instruction insn, LocalVariable variable)
Store instruction, whose child is a
Load instruction of a specific variable.insn - The insn to match against.variable - The variable to match against.Store instruction or null@Nullable public static @Nullable LocalReference matchLocalRef(@Nullable @Nullable Instruction insn)
@Nullable public static @Nullable LocalReference matchLocalRef(@Nullable @Nullable Instruction insn, LocalVariable variable)
@Nullable @Contract(value="null->null") public static @Nullable Load matchLoadLocal(@Nullable @Nullable Instruction insn)
insn - The insn to match against.@Nullable public static @Nullable Load matchLoadLocal(@Nullable @Nullable Instruction insn, LocalVariable variable)
insn - The insn to match against.variable - The variable to match against.@Nullable public static @Nullable Store matchStoreLocal(@Nullable @Nullable Instruction insn)
insn - The insn to match against.@Nullable public static @Nullable Store matchStoreLocal(@Nullable @Nullable Instruction insn, LocalVariable variable)
insn - The insn to match against.variable - The variable to match against.@Nullable public static @Nullable FieldReference matchFieldRef(@Nullable @Nullable Instruction insn)
@Nullable public static @Nullable FieldReference matchFieldRef(@Nullable @Nullable Instruction insn, Field field)
@Nullable public static @Nullable Load matchLoadField(@Nullable @Nullable Instruction insn)
insn - The instruction to match.null.@Nullable public static @Nullable Load matchLoadField(@Nullable @Nullable Instruction insn, Field field)
insn - The instruction to match.field - The field to match.null.@Nullable public static @Nullable FieldReference matchLoadFieldRef(@Nullable @Nullable Instruction insn)
@Nullable public static @Nullable FieldReference matchStoreFieldRef(@Nullable @Nullable Instruction insn)
@Nullable public static @Nullable Store matchStoreField(@Nullable @Nullable Instruction insn)
insn - The instruction to match.null.@Nullable @Contract(value="null,_->null") public static @Nullable Store matchStoreField(@Nullable @Nullable Instruction insn, Field field)
insn - The instruction to match.field - The field to match.null.public static boolean equivalentFieldDescriptors(Field field1, Field field2)
@Nullable public static @Nullable ArrayLen matchArrayLen(@Nullable @Nullable Instruction insn)
ArrayLen instruction.insn - The insn to match against.ArrayLen instruction.@Nullable public static @Nullable ArrayLen matchArrayLenLoad(@Nullable @Nullable Instruction insn, LocalVariable loadVar)
@Nullable public static @Nullable ArrayElementReference matchElemRef(@Nullable @Nullable Instruction insn)
@Nullable public static @Nullable ArrayElementReference matchLoadElemRef(@Nullable @Nullable Instruction insn)