Home
last modified time | relevance | path

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

12

/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/dexbacked/
DCDexBackedMethodImplementation.java39 @Nonnull DexBackedDexFile dexFile, @Nonnull DexBackedMethod method, int codeOffset) { in CDexBackedMethodImplementation() argument
40 super(dexFile, method, codeOffset); in CDexBackedMethodImplementation()
44 …int insCount = (dexFile.getDataBuffer().readUshort(codeOffset) >> CodeItem.CDEX_INS_COUNT_SHIFT) &… in getInsCount()
55 insCount += dexFile.getDataBuffer().readUshort(codeOffset - 2 * preheaderCount); in getInsCount()
62 …int registerCount = (dexFile.getDataBuffer().readUshort(codeOffset) >> CodeItem.CDEX_REGISTER_COUN… in getRegisterCount()
70 registerCount += dexFile.getDataBuffer().readUshort(codeOffset - 2 * preheaderCount); in getRegisterCount()
78 codeOffset + CodeItem.CDEX_INSTRUCTIONS_SIZE_AND_PREHEADER_FLAGS_OFFSET) >> in getInstructionsSize()
82 instructionsSize += dexFile.getDataBuffer().readUshort(codeOffset - 2); in getInstructionsSize()
83 instructionsSize += dexFile.getDataBuffer().readUshort(codeOffset - 4) << 16; in getInstructionsSize()
90 return codeOffset + 4; in getInstructionsStartOffset()
[all …]
DDexBackedMethodImplementation.java55 protected final int codeOffset; field in DexBackedMethodImplementation
59 int codeOffset) { in DexBackedMethodImplementation() argument
62 this.codeOffset = codeOffset; in DexBackedMethodImplementation()
66 return dexFile.getDataBuffer().readUshort(codeOffset); in getRegisterCount()
70 … return dexFile.getDataBuffer().readSmallUint(codeOffset + CodeItem.INSTRUCTION_COUNT_OFFSET); in getInstructionsSize()
74 return codeOffset + CodeItem.INSTRUCTION_START_OFFSET; in getInstructionsStartOffset()
109 return dexFile.getDataBuffer().readUshort(codeOffset + CodeItem.TRIES_SIZE_OFFSET);
141 return dexFile.getDataBuffer().readInt(codeOffset + CodeItem.DEBUG_INFO_OFFSET);
200 return lastOffset - codeOffset;
DDexBackedMethod.java65 private final int codeOffset; field in DexBackedMethod
91 this.codeOffset = reader.readSmallUleb128(); in DexBackedMethod()
114 this.codeOffset = reader.readSmallUleb128(); in DexBackedMethod()
213 if (codeOffset > 0) {
214 return dexFile.createMethodImplementation(dexFile, this, codeOffset);
DCDexBackedDexFile.java110 @Nonnull DexBackedDexFile dexFile, @Nonnull DexBackedMethod method, int codeOffset) { in createMethodImplementation() argument
111 return new CDexBackedMethodImplementation(dexFile, method, codeOffset); in createMethodImplementation()
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/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/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/util/
DInstructionOffsetMap.java46 int codeOffset = 0; in InstructionOffsetMap() local
48 instructionCodeOffsets[i] = codeOffset; in InstructionOffsetMap()
49 codeOffset += instructions.get(i).getCodeUnits(); in InstructionOffsetMap()
53 public int getInstructionIndexAtCodeOffset(int codeOffset) { in getInstructionIndexAtCodeOffset() argument
54 return getInstructionIndexAtCodeOffset(codeOffset, true); in getInstructionIndexAtCodeOffset()
57 public int getInstructionIndexAtCodeOffset(int codeOffset, boolean exact) { in getInstructionIndexAtCodeOffset() argument
58 int index = Arrays.binarySearch(instructionCodeOffsets, codeOffset); in getInstructionIndexAtCodeOffset()
61 throw new InvalidInstructionOffset(codeOffset); in getInstructionIndexAtCodeOffset()
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/immutable/instruction/
DImmutableInstructionFactory.java49 int codeOffset) { in makeInstruction10t() argument
50 return new ImmutableInstruction10t(opcode, codeOffset); in makeInstruction10t()
81 int codeOffset) { in makeInstruction20t() argument
82 return new ImmutableInstruction20t(opcode, codeOffset); in makeInstruction20t()
111 int codeOffset) { in makeInstruction21t() argument
112 return new ImmutableInstruction21t(opcode, registerA, codeOffset); in makeInstruction21t()
139 int codeOffset) { in makeInstruction22t() argument
140 return new ImmutableInstruction22t(opcode, registerA, registerB, codeOffset); in makeInstruction22t()
157 int codeOffset) { in makeInstruction30t() argument
158 return new ImmutableInstruction30t(opcode, codeOffset); in makeInstruction30t()
[all …]
DImmutableInstruction30t.java42 protected final int codeOffset; field in ImmutableInstruction30t
45 int codeOffset) { in ImmutableInstruction30t() argument
47 this.codeOffset = codeOffset; in ImmutableInstruction30t()
59 @Override public int getCodeOffset() { return codeOffset; } in getCodeOffset()
DImmutableInstruction20t.java43 protected final int codeOffset; field in ImmutableInstruction20t
46 int codeOffset) { in ImmutableInstruction20t() argument
48 this.codeOffset = Preconditions.checkShortCodeOffset(codeOffset); in ImmutableInstruction20t()
60 @Override public int getCodeOffset() { return codeOffset; } in getCodeOffset()
DImmutableInstruction10t.java43 protected final int codeOffset; field in ImmutableInstruction10t
46 int codeOffset) { in ImmutableInstruction10t() argument
48 this.codeOffset = Preconditions.checkByteCodeOffset(codeOffset); in ImmutableInstruction10t()
60 @Override public int getCodeOffset() { return codeOffset; } in getCodeOffset()
DImmutableInstruction21t.java44 protected final int codeOffset; field in ImmutableInstruction21t
48 int codeOffset) { in ImmutableInstruction21t() argument
51 this.codeOffset = Preconditions.checkShortCodeOffset(codeOffset); in ImmutableInstruction21t()
65 @Override public int getCodeOffset() { return codeOffset; } in getCodeOffset()
DImmutableInstruction31t.java44 protected final int codeOffset; field in ImmutableInstruction31t
48 int codeOffset) { in ImmutableInstruction31t() argument
51 this.codeOffset = codeOffset; in ImmutableInstruction31t()
65 @Override public int getCodeOffset() { return codeOffset; } in getCodeOffset()
DImmutableInstruction22t.java45 protected final int codeOffset; field in ImmutableInstruction22t
50 int codeOffset) { in ImmutableInstruction22t() argument
54 this.codeOffset = Preconditions.checkShortCodeOffset(codeOffset); in ImmutableInstruction22t()
70 @Override public int getCodeOffset() { return codeOffset; } in getCodeOffset()
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/writer/
DInstructionFactory.java44 Instruction makeInstruction10t(@Nonnull Opcode opcode, int codeOffset); in makeInstruction10t() argument
50 Instruction makeInstruction20t(@Nonnull Opcode opcode, int codeOffset); in makeInstruction20t() argument
55 Instruction makeInstruction21t(@Nonnull Opcode opcode, int registerA, int codeOffset); in makeInstruction21t() argument
59 …struction makeInstruction22t(@Nonnull Opcode opcode, int registerA, int registerB, int codeOffset); in makeInstruction22t() argument
62 Instruction makeInstruction30t(@Nonnull Opcode opcode, int codeOffset); in makeInstruction30t() argument
65 Instruction makeInstruction31t(@Nonnull Opcode opcode, int registerA, int codeOffset); in makeInstruction31t() argument
DDexWriter.java1041 int codeOffset;
1043 private CodeItemOffset(@Nonnull MethodKey method, int codeOffset) {
1044 this.codeOffset = codeOffset;
1117 for (CodeItemOffset<MethodKey> codeOffset: codeOffsets) {
1118 … classSection.setCodeItemOffset(codeOffset.method, codeSectionOffset + codeOffset.codeOffset);
1271 int codeOffset = 0;
1388 …ow new ExceptionWithContext(ex, "Error while writing instruction at code offset 0x%x", codeOffset);
1390 codeOffset += instruction.getCodeUnits();
/external/google-smali/dexlib2/src/test/java/com/android/tools/smali/dexlib2/util/
DInstructionOffsetMapTest.java116 … for (int codeOffset=0; codeOffset<=expectedOffsets[expectedOffsets.length-1]; codeOffset++) { in testInstructionOffsetMap()
117 if (codeOffset == expectedOffsets[instructionIndex+1]) { in testInstructionOffsetMap()
123 instructionOffsetMap.getInstructionIndexAtCodeOffset(codeOffset, false)); in testInstructionOffsetMap()
126 instructionOffsetMap.getInstructionIndexAtCodeOffset(codeOffset, true); in testInstructionOffsetMap()
127 … Assert.fail(String.format("Exception exception didn't occur for code offset 0x%x", codeOffset)); in testInstructionOffsetMap()
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/dexbacked/raw/
DClassDataItem.java161 int codeOffset = reader.readSmallUleb128(); in makeAnnotator() local
162 if (codeOffset == 0) { in makeAnnotator()
165 out.annotateTo(reader.getOffset(), "code_off = code_item[0x%x]", codeOffset); in makeAnnotator() local
166 addCodeItemIdentity(codeOffset, MethodIdItem.asString(dexFile, methodIndex)); in makeAnnotator()
/external/google-smali/third_party/baksmali/src/main/java/com/android/tools/smali/baksmali/Adaptors/
DMethodDefinition.java117 int codeOffset = instructionOffsetMap.getInstructionCodeOffset(i); in MethodDefinition() local
118 … int targetOffset = codeOffset + ((OffsetInstruction)instruction).getCodeOffset(); in MethodDefinition()
130 … ((Instruction31t)instruction).getRegisterA(), targetOffset-codeOffset)); in MethodDefinition()
134 packedSwitchMap.append(targetOffset, codeOffset); in MethodDefinition()
138 int codeOffset = instructionOffsetMap.getInstructionCodeOffset(i); in MethodDefinition() local
139 … int targetOffset = codeOffset + ((OffsetInstruction)instruction).getCodeOffset(); in MethodDefinition()
153 … ((Instruction31t)instruction).getRegisterA(), targetOffset-codeOffset)); in MethodDefinition()
157 sparseSwitchMap.append(targetOffset, codeOffset); in MethodDefinition()
/external/lzma/CPP/7zip/Archive/
DFatHandler.cpp133 int codeOffset = 0; in Parse() local
136 case 0xE9: codeOffset = 3 + (Int16)Get16(p + 1); break; in Parse()
137 case 0xEB: if (p[2] != 0x90) return false; codeOffset = 2 + (signed char)p[1]; break; in Parse()
169 const bool isOkOffset = (codeOffset == 0) in Parse()
170 || (codeOffset == (p[0] == 0xEB ? 2 : 3)); in Parse()
175 if (codeOffset < 90 && !isOkOffset) in Parse()
183 if (codeOffset < 62 - 24 && !isOkOffset) in Parse()
234 if (codeOffset >= curOffset + 3) in Parse()
239 if (codeOffset < curOffset + 26) in Parse()
/external/ow2-asm/asm-commons/src/test/java/org/objectweb/asm/commons/
DComment.java58 final int codeOffset, in read() argument
DCodeComment.java63 final int codeOffset, in read() argument
/external/ow2-asm/asm-commons/src/main/java/org/objectweb/asm/commons/
DModuleResolutionAttribute.java97 final int codeOffset, in read() argument
DModuleTargetAttribute.java71 final int codeOffset, in read() argument
/external/deqp/external/vulkancts/vkscserver/
Dpcreader.hpp268 uint64_t offset = stageIndexEntry->codeOffset; in getSPIRV()
/external/deqp/external/vulkancts/framework/vulkan/generated/vulkansc/
DvkTypeUtil.inl274 …ationIndexEntry makePipelineCacheStageValidationIndexEntry (uint64_t codeSize, uint64_t codeOffset) argument
278 res.codeOffset = codeOffset;

12