mirror of
https://github.com/revanced/smali.git
synced 2025-05-14 13:17:06 +02:00
Minor cleanup in DeodexUtil
git-svn-id: https://smali.googlecode.com/svn/trunk@555 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
6512a81a11
commit
8a8b2a988b
@ -1157,7 +1157,7 @@ public class DeodexUtil {
|
|||||||
throw new RuntimeException("This move-result-object instruction does not have an invoke" +
|
throw new RuntimeException("This move-result-object instruction does not have an invoke" +
|
||||||
" instruction immediately prior to it");
|
" instruction immediately prior to it");
|
||||||
}
|
}
|
||||||
registerNum = ((Instruction11x)instruction).getRegisterA();
|
registerNum = ((SingleRegisterInstruction)instruction).getRegisterA();
|
||||||
registerType = RegisterType.Reference;
|
registerType = RegisterType.Reference;
|
||||||
registerReferenceType = getReturnType(previousInsn.instruction);
|
registerReferenceType = getReturnType(previousInsn.instruction);
|
||||||
break;
|
break;
|
||||||
@ -1165,7 +1165,7 @@ public class DeodexUtil {
|
|||||||
case MOVE_EXCEPTION:
|
case MOVE_EXCEPTION:
|
||||||
{
|
{
|
||||||
setsRegister = true;
|
setsRegister = true;
|
||||||
registerNum = ((Instruction11x)instruction).getRegisterA();
|
registerNum = ((SingleRegisterInstruction)instruction).getRegisterA();
|
||||||
registerType = RegisterType.Reference;
|
registerType = RegisterType.Reference;
|
||||||
//typically, there will only be a single exception type for a particular handler block, so optimize
|
//typically, there will only be a single exception type for a particular handler block, so optimize
|
||||||
//the array size for that case, but support the case of multiple exception types as well
|
//the array size for that case, but support the case of multiple exception types as well
|
||||||
@ -1175,7 +1175,7 @@ public class DeodexUtil {
|
|||||||
//if this is a catch all handler, the only possible type is Ljava/lang/Throwable;
|
//if this is a catch all handler, the only possible type is Ljava/lang/Throwable;
|
||||||
registerReferenceType = "Ljava/lang/Throwable;";
|
registerReferenceType = "Ljava/lang/Throwable;";
|
||||||
|
|
||||||
//it's possible that Ljava/lang/Throwable; hasn't be interned into the dex file. since
|
//it's possible that Ljava/lang/Throwable; hasn't been interned into the dex file. Since
|
||||||
//we've turned off interning for the current dex file, we will just get a null back.
|
//we've turned off interning for the current dex file, we will just get a null back.
|
||||||
//This "shouldn't" be a problem, because if the type hasn't been interned, it's safe to
|
//This "shouldn't" be a problem, because if the type hasn't been interned, it's safe to
|
||||||
//say that there were no method/field accesses for that type, so we won't need to know
|
//say that there were no method/field accesses for that type, so we won't need to know
|
||||||
|
Loading…
x
Reference in New Issue
Block a user