mirror of
https://github.com/revanced/smali.git
synced 2025-05-08 18:34:32 +02:00
use Instruciton.getCodeUnits() in InstructionOffsetMap
This commit is contained in:
parent
a8ef706d1d
commit
38e925db25
@ -49,8 +49,7 @@ public class InstructionOffsetMap {
|
|||||||
int codeOffset = 0;
|
int codeOffset = 0;
|
||||||
for (int i=0; i<instructions.size(); i++) {
|
for (int i=0; i<instructions.size(); i++) {
|
||||||
instructionCodeOffsets[i] = codeOffset;
|
instructionCodeOffsets[i] = codeOffset;
|
||||||
//TODO: handle variable size instructions
|
codeOffset += instructions.get(i).getCodeUnits();
|
||||||
codeOffset += instructions.get(i).getOpcode().format.size / 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.instructionCodeOffsets = instructionCodeOffsets;
|
this.instructionCodeOffsets = instructionCodeOffsets;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user