Home
last modified time | relevance | path

Searched refs:instructionOffsetMap (Results 1 – 3 of 3) sorted by relevance

/external/smali/dexlib2/src/test/java/org/jf/dexlib2/util/
DInstructionOffsetMapTest.java80 InstructionOffsetMap instructionOffsetMap = new InstructionOffsetMap(instructions); in testInstructionOffsetMap() local
86 … Assert.assertEquals(expectedOffsets[i], instructionOffsetMap.getInstructionCodeOffset(i)); in testInstructionOffsetMap()
87 …Assert.assertEquals(i, instructionOffsetMap.getInstructionIndexAtCodeOffset(expectedOffsets[i], tr… in testInstructionOffsetMap()
88 …Assert.assertEquals(i, instructionOffsetMap.getInstructionIndexAtCodeOffset(expectedOffsets[i], fa… in testInstructionOffsetMap()
99 instructionOffsetMap.getInstructionIndexAtCodeOffset(codeOffset, false)); in testInstructionOffsetMap()
102 instructionOffsetMap.getInstructionIndexAtCodeOffset(codeOffset, true); in testInstructionOffsetMap()
110instructionOffsetMap.getInstructionIndexAtCodeOffset(expectedOffsets[expectedOffsets.length-1]+1, … in testInstructionOffsetMap()
112instructionOffsetMap.getInstructionIndexAtCodeOffset(expectedOffsets[expectedOffsets.length-1]+10,… in testInstructionOffsetMap()
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
DMethodDefinition.java81 @Nonnull private final InstructionOffsetMap instructionOffsetMap; field in MethodDefinition
99 instructionOffsetMap = new InstructionOffsetMap(instructions); in MethodDefinition()
101 int endOffset = instructionOffsetMap.getInstructionCodeOffset(instructions.size()-1) + in MethodDefinition()
110 int codeOffset = instructionOffsetMap.getInstructionCodeOffset(i); in MethodDefinition()
131 int codeOffset = instructionOffsetMap.getInstructionCodeOffset(i); in MethodDefinition()
251 targetIndex = instructionOffsetMap.getInstructionIndexAtCodeOffset(targetOffset); in findSwitchPayload()
280 targetIndex = instructionOffsetMap.getInstructionIndexAtCodeOffset(targetOffset); in findPayloadOffset()
296 return instructionOffsetMap.getInstructionCodeOffset(targetIndex); in findPayloadOffset()
534 …int lastInstructionAddress = instructionOffsetMap.getInstructionCodeOffset(instructions.size() - 1… in addTries()
558 …int lastCoveredIndex = instructionOffsetMap.getInstructionIndexAtCodeOffset(endAddress - 1, false); in addTries()
[all …]
/external/proguard/src/proguard/classfile/editor/
DCodeAttributeComposer.java77 …private final int[][] instructionOffsetMap = new int[MAXIMUM_LEVELS][ClassConstants.TYPICAL_CODE_L… field in CodeAttributeComposer
164 if (instructionOffsetMap[level].length <= maximumCodeFragmentLength) in beginCodeFragment()
166 instructionOffsetMap[level] = new int[maximumCodeFragmentLength + 1]; in beginCodeFragment()
172 instructionOffsetMap[level][index] = INVALID; in beginCodeFragment()
212 instructionOffsetMap[level][oldInstructionOffset] = codeLength; in appendInstruction()
248 instructionOffsetMap[level][oldInstructionOffset] = codeLength; in appendLabel()
774 int newInstructionOffset = instructionOffsetMap[level][oldInstructionOffset]; in newInstructionOffset()
800 instructionOffsetMap[level][oldInstructionOffset]; in remappableExceptionHandler()