Home
last modified time | relevance | path

Searched refs:codeOffset (Results 1 – 25 of 25) sorted by relevance

/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
DDexBackedMethodImplementation.java55 private final int codeOffset; field in DexBackedMethodImplementation
59 int codeOffset) { in DexBackedMethodImplementation() argument
62 this.codeOffset = codeOffset; in DexBackedMethodImplementation()
65 @Override public int getRegisterCount() { return dexFile.readUshort(codeOffset); } in getRegisterCount()
69 … int instructionsSize = dexFile.readSmallUint(codeOffset + CodeItem.INSTRUCTION_COUNT_OFFSET); in getInstructions()
71 final int instructionsStartOffset = codeOffset + CodeItem.INSTRUCTION_START_OFFSET; in getInstructions()
100 final int triesSize = dexFile.readUshort(codeOffset + CodeItem.TRIES_SIZE_OFFSET);
102 … int instructionsSize = dexFile.readSmallUint(codeOffset + CodeItem.INSTRUCTION_COUNT_OFFSET);
104 codeOffset + CodeItem.INSTRUCTION_START_OFFSET + (instructionsSize*2), 4);
127 int debugOffset = dexFile.readInt(codeOffset + CodeItem.DEBUG_INFO_OFFSET);
[all …]
DDexBackedMethod.java62 private final int codeOffset; field in DexBackedMethod
85 this.codeOffset = reader.readSmallUleb128(); in DexBackedMethod()
105 this.codeOffset = reader.readSmallUleb128(); in DexBackedMethod()
191 if (codeOffset > 0) {
192 return new DexBackedMethodImplementation(dexFile, this, codeOffset);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/
DBuilderOffsetInstruction.java51 int codeOffset = internalGetCodeOffset(); in getCodeOffset() local
53 if (codeOffset < Byte.MIN_VALUE || codeOffset > Byte.MAX_VALUE) { in getCodeOffset()
55 "Offset must be in [-128, 127]", codeOffset); in getCodeOffset()
58 if (codeOffset < Short.MIN_VALUE || codeOffset > Short.MAX_VALUE) { in getCodeOffset()
60 "Offset must be in [-32768, 32767]", codeOffset); in getCodeOffset()
63 return codeOffset; in getCodeOffset()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/
DInstructionOffsetMap.java47 int codeOffset = 0; in InstructionOffsetMap() local
49 instructionCodeOffsets[i] = codeOffset; in InstructionOffsetMap()
50 codeOffset += instructions.get(i).getCodeUnits(); in InstructionOffsetMap()
54 public int getInstructionIndexAtCodeOffset(int codeOffset) { in getInstructionIndexAtCodeOffset() argument
55 return getInstructionIndexAtCodeOffset(codeOffset, true); in getInstructionIndexAtCodeOffset()
58 public int getInstructionIndexAtCodeOffset(int codeOffset, boolean exact) { in getInstructionIndexAtCodeOffset() argument
59 int index = Arrays.binarySearch(instructionCodeOffsets, codeOffset); in getInstructionIndexAtCodeOffset()
62 throw new InvalidInstructionOffset(codeOffset); in getInstructionIndexAtCodeOffset()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/
DImmutableInstructionFactory.java50 int codeOffset) { in makeInstruction10t() argument
51 return new ImmutableInstruction10t(opcode, codeOffset); in makeInstruction10t()
82 int codeOffset) { in makeInstruction20t() argument
83 return new ImmutableInstruction20t(opcode, codeOffset); in makeInstruction20t()
112 int codeOffset) { in makeInstruction21t() argument
113 return new ImmutableInstruction21t(opcode, registerA, codeOffset); in makeInstruction21t()
140 int codeOffset) { in makeInstruction22t() argument
141 return new ImmutableInstruction22t(opcode, registerA, registerB, codeOffset); in makeInstruction22t()
158 int codeOffset) { in makeInstruction30t() argument
159 return new ImmutableInstruction30t(opcode, codeOffset); in makeInstruction30t()
[all …]
DImmutableInstruction30t.java43 protected final int codeOffset; field in ImmutableInstruction30t
46 int codeOffset) { in ImmutableInstruction30t() argument
48 this.codeOffset = codeOffset; in ImmutableInstruction30t()
60 @Override public int getCodeOffset() { return codeOffset; } in getCodeOffset()
DImmutableInstruction20t.java44 protected final int codeOffset; field in ImmutableInstruction20t
47 int codeOffset) { in ImmutableInstruction20t() argument
49 this.codeOffset = Preconditions.checkShortCodeOffset(codeOffset); in ImmutableInstruction20t()
61 @Override public int getCodeOffset() { return codeOffset; } in getCodeOffset()
DImmutableInstruction10t.java44 protected final int codeOffset; field in ImmutableInstruction10t
47 int codeOffset) { in ImmutableInstruction10t() argument
49 this.codeOffset = Preconditions.checkByteCodeOffset(codeOffset); in ImmutableInstruction10t()
61 @Override public int getCodeOffset() { return codeOffset; } in getCodeOffset()
DImmutableInstruction31t.java45 protected final int codeOffset; field in ImmutableInstruction31t
49 int codeOffset) { in ImmutableInstruction31t() argument
52 this.codeOffset = codeOffset; in ImmutableInstruction31t()
66 @Override public int getCodeOffset() { return codeOffset; } in getCodeOffset()
DImmutableInstruction21t.java45 protected final int codeOffset; field in ImmutableInstruction21t
49 int codeOffset) { in ImmutableInstruction21t() argument
52 this.codeOffset = Preconditions.checkShortCodeOffset(codeOffset); in ImmutableInstruction21t()
66 @Override public int getCodeOffset() { return codeOffset; } in getCodeOffset()
DImmutableInstruction22t.java46 protected final int codeOffset; field in ImmutableInstruction22t
51 int codeOffset) { in ImmutableInstruction22t() argument
55 this.codeOffset = Preconditions.checkShortCodeOffset(codeOffset); in ImmutableInstruction22t()
71 @Override public int getCodeOffset() { return codeOffset; } in getCodeOffset()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/util/
DInstructionOffsetMapTest.java92 … for (int codeOffset=0; codeOffset<=expectedOffsets[expectedOffsets.length-1]; codeOffset++) { in testInstructionOffsetMap()
93 if (codeOffset == expectedOffsets[instructionIndex+1]) { in testInstructionOffsetMap()
99 instructionOffsetMap.getInstructionIndexAtCodeOffset(codeOffset, false)); in testInstructionOffsetMap()
102 instructionOffsetMap.getInstructionIndexAtCodeOffset(codeOffset, true); in testInstructionOffsetMap()
103 … Assert.fail(String.format("Exception exception didn't occur for code offset 0x%x", codeOffset)); in testInstructionOffsetMap()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
DInstructionFactory.java45 Instruction makeInstruction10t(@Nonnull Opcode opcode, int codeOffset); in makeInstruction10t() argument
51 Instruction makeInstruction20t(@Nonnull Opcode opcode, int codeOffset); in makeInstruction20t() argument
56 Instruction makeInstruction21t(@Nonnull Opcode opcode, int registerA, int codeOffset); in makeInstruction21t() argument
60 …struction makeInstruction22t(@Nonnull Opcode opcode, int registerA, int registerB, int codeOffset); in makeInstruction22t() argument
63 Instruction makeInstruction30t(@Nonnull Opcode opcode, int codeOffset); in makeInstruction30t() argument
66 Instruction makeInstruction31t(@Nonnull Opcode opcode, int registerA, int codeOffset); in makeInstruction31t() argument
DDexWriter.java855 int codeOffset;
857 private CodeItemOffset(@Nonnull MethodKey method, int codeOffset) {
858 this.codeOffset = codeOffset;
933 for (CodeItemOffset<MethodKey> codeOffset: codeOffsets) {
934 … classSection.setCodeItemOffset(codeOffset.method, codeSectionOffset + codeOffset.codeOffset);
1073 int codeOffset = 0;
1190 …ow new ExceptionWithContext(ex, "Error while writing instruction at code offset 0x%x", codeOffset);
1192 codeOffset += instruction.getCodeUnits();
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/
DSmaliInstruction.java205 int codeOffset = 0; in getAnalyzedInstructionFromMethod() local
208 if (codeOffset == thisOffset) { in getAnalyzedInstructionFromMethod()
211 assert codeOffset < thisOffset; in getAnalyzedInstructionFromMethod()
213 codeOffset += instruction.getOriginalInstruction().getCodeUnits(); in getAnalyzedInstructionFromMethod()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/
DClassDataItem.java157 int codeOffset = reader.readSmallUleb128(); in makeAnnotator() local
158 if (codeOffset == 0) { in makeAnnotator()
161 out.annotateTo(reader.getOffset(), "code_off = code_item[0x%x]", codeOffset); in makeAnnotator() local
162 addCodeItemIdentity(codeOffset, MethodIdItem.asString(dexFile, methodIndex)); in makeAnnotator()
/external/llvm-project/libunwind/src/
DDwarfParser.hpp427 pint_t codeOffset = 0; in parseFDEInstructions() local
438 while ((p < instructionsEnd) && (codeOffset < pcoffset)) { in parseFDEInstructions()
452 codeOffset = addressSpace.getEncodedP(p, instructionsEnd, in parseFDEInstructions()
457 codeOffset += (addressSpace.get8(p) * cieInfo.codeAlignFactor); in parseFDEInstructions()
460 static_cast<uint64_t>(codeOffset)); in parseFDEInstructions()
463 codeOffset += (addressSpace.get16(p) * cieInfo.codeAlignFactor); in parseFDEInstructions()
466 static_cast<uint64_t>(codeOffset)); in parseFDEInstructions()
469 codeOffset += (addressSpace.get32(p) * cieInfo.codeAlignFactor); in parseFDEInstructions()
472 static_cast<uint64_t>(codeOffset)); in parseFDEInstructions()
784 codeOffset += operand * cieInfo.codeAlignFactor; in parseFDEInstructions()
[all …]
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
DMethodDefinition.java110 int codeOffset = instructionOffsetMap.getInstructionCodeOffset(i); in MethodDefinition() local
111 … int targetOffset = codeOffset + ((OffsetInstruction)instruction).getCodeOffset(); in MethodDefinition()
123 … ((Instruction31t)instruction).getRegisterA(), targetOffset-codeOffset)); in MethodDefinition()
127 packedSwitchMap.append(targetOffset, codeOffset); in MethodDefinition()
131 int codeOffset = instructionOffsetMap.getInstructionCodeOffset(i); in MethodDefinition() local
132 … int targetOffset = codeOffset + ((OffsetInstruction)instruction).getCodeOffset(); in MethodDefinition()
146 … ((Instruction31t)instruction).getRegisterA(), targetOffset-codeOffset)); in MethodDefinition()
150 sparseSwitchMap.append(targetOffset, codeOffset); in MethodDefinition()
/external/smali/smalidea/src/test/java/org/jf/smalidea/
DSmaliMethodTest.java247 private void checkSourcePosition(SmaliMethod smaliMethod, int codeOffset, Opcode opcode) { in checkSourcePosition() argument
248 SourcePosition sourcePosition = smaliMethod.getSourcePositionForCodeOffset(codeOffset); in checkSourcePosition()
253 Assert.assertEquals(codeOffset, instruction.getOffset()); in checkSourcePosition()
/external/python/cpython2/Lib/compiler/
Dpyassem.py604 self.codeOffset = 0
613 self.codeOffset = self.codeOffset + len(args)
621 addr = self.codeOffset - self.lastoff
645 self.lastoff = self.codeOffset
/external/dexmaker/lib/
Ddalvik-dx-9.0.0_r3.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/ ...
/external/mockito/lib/
Dbyte-buddy-1.8.15.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/maven/ META- ...
/external/icu/tools/srcgen/currysrc/libs/
Dorg.eclipse.jdt.core_3.14.0.v20180528-0519.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSE_.SF META-INF/ECLIPSE_ ...
/external/guice/extensions/struts2/lib/
Dcore-3.1.1.jarMETA-INF/ org/ org/eclipse/ org/eclipse/jdt/ org/eclipse ...
/external/kotlinc/lib/
Dkotlin-compiler.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/backend-common. ...