|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.rop.code.ConservativeTranslationAdvice
public final class ConservativeTranslationAdvice
Implementation of TranslationAdvice which conservatively answers
false to all methods.
| Field Summary | |
|---|---|
static ConservativeTranslationAdvice |
THE_ONE
non-null; standard instance of this class |
| Method Summary | |
|---|---|
int |
getMaxOptimalRegisterCount()
Gets the maximum register width that can be represented optimally. |
boolean |
hasConstantOperation(Rop opcode,
RegisterSpec sourceA,
RegisterSpec sourceB)
Returns an indication of whether the target can directly represent an instruction with the given opcode operating on the given arguments, where the last source argument is used as a constant. |
boolean |
requiresSourcesInOrder(Rop opcode,
RegisterSpecList sources)
Returns true if the translation target requires the sources of the specified opcode to be in order and contiguous (eg, for an invoke-range) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ConservativeTranslationAdvice THE_ONE
non-null; standard instance of this class
| Method Detail |
|---|
public boolean hasConstantOperation(Rop opcode,
RegisterSpec sourceA,
RegisterSpec sourceB)
hasConstantOperation in interface TranslationAdviceopcode - non-null; the opcodesourceA - non-null; the first sourcesourceB - non-null; the second source
true iff the target can represent the operation
using a constant for the last argument
public boolean requiresSourcesInOrder(Rop opcode,
RegisterSpecList sources)
requiresSourcesInOrder in interface TranslationAdviceopcode - non-null; opcodesources - non-null; source list
true iff the target requires the sources to be
in order and contiguous.public int getMaxOptimalRegisterCount()
getMaxOptimalRegisterCount in interface TranslationAdvice
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||