HomeSort by relevance Sort by last modified time
    Searched refs:codeOffset (Results 1 - 25 of 95) sorted by null

1 2 3 4

  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/
BuilderOffsetInstruction.java 51 int codeOffset = internalGetCodeOffset();
53 if (codeOffset < Byte.MIN_VALUE || codeOffset > Byte.MAX_VALUE) {
55 "Offset must be in [-128, 127]", codeOffset);
58 if (codeOffset < Short.MIN_VALUE || codeOffset > Short.MAX_VALUE) {
60 "Offset must be in [-32768, 32767]", codeOffset);
63 return codeOffset;
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/
InstructionOffsetMap.java 47 int codeOffset = 0;
49 instructionCodeOffsets[i] = codeOffset;
50 codeOffset += instructions.get(i).getCodeUnits();
54 public int getInstructionIndexAtCodeOffset(int codeOffset) {
55 return getInstructionIndexAtCodeOffset(codeOffset, true);
58 public int getInstructionIndexAtCodeOffset(int codeOffset, boolean exact) {
59 int index = Arrays.binarySearch(instructionCodeOffsets, codeOffset);
62 throw new InvalidInstructionOffset(codeOffset);
65 // ignore this case, because codeOffset will always be non-negative, and the code offset of the first
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/
ImmutableInstruction10t.java 44 protected final int codeOffset;
47 int codeOffset) {
49 this.codeOffset = Preconditions.checkByteCodeOffset(codeOffset);
61 @Override public int getCodeOffset() { return codeOffset; }
ImmutableInstruction20t.java 44 protected final int codeOffset;
47 int codeOffset) {
49 this.codeOffset = Preconditions.checkShortCodeOffset(codeOffset);
61 @Override public int getCodeOffset() { return codeOffset; }
ImmutableInstruction21t.java 45 protected final int codeOffset;
49 int codeOffset) {
52 this.codeOffset = Preconditions.checkShortCodeOffset(codeOffset);
66 @Override public int getCodeOffset() { return codeOffset; }
ImmutableInstruction30t.java 43 protected final int codeOffset;
46 int codeOffset) {
48 this.codeOffset = codeOffset;
60 @Override public int getCodeOffset() { return codeOffset; }
ImmutableInstruction31t.java 45 protected final int codeOffset;
49 int codeOffset) {
52 this.codeOffset = codeOffset;
66 @Override public int getCodeOffset() { return codeOffset; }
ImmutableInstruction22t.java 46 protected final int codeOffset;
51 int codeOffset) {
55 this.codeOffset = Preconditions.checkShortCodeOffset(codeOffset);
71 @Override public int getCodeOffset() { return codeOffset; }
ImmutableInstructionFactory.java 50 int codeOffset) {
51 return new ImmutableInstruction10t(opcode, codeOffset);
82 int codeOffset) {
83 return new ImmutableInstruction20t(opcode, codeOffset);
112 int codeOffset) {
113 return new ImmutableInstruction21t(opcode, registerA, codeOffset);
140 int codeOffset) {
141 return new ImmutableInstruction22t(opcode, registerA, registerB, codeOffset);
158 int codeOffset) {
159 return new ImmutableInstruction30t(opcode, codeOffset);
    [all...]
  /dalvik/dx/src/com/android/dex/
ClassData.java 84 private final int codeOffset;
86 public Method(int methodIndex, int accessFlags, int codeOffset) {
89 this.codeOffset = codeOffset;
101 return codeOffset;
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
DexBackedMethodImplementation.java 54 private final int codeOffset;
58 int codeOffset) {
61 this.codeOffset = codeOffset;
64 @Override public int getRegisterCount() { return dexFile.readUshort(codeOffset); }
68 int instructionsSize = dexFile.readSmallUint(codeOffset + CodeItem.INSTRUCTION_COUNT_OFFSET);
70 final int instructionsStartOffset = codeOffset + CodeItem.INSTRUCTION_START_OFFSET;
99 final int triesSize = dexFile.readUshort(codeOffset + CodeItem.TRIES_SIZE_OFFSET);
101 int instructionsSize = dexFile.readSmallUint(codeOffset + CodeItem.INSTRUCTION_COUNT_OFFSET);
103 codeOffset + CodeItem.INSTRUCTION_START_OFFSET + (instructionsSize*2), 4)
    [all...]
DexBackedMethod.java 60 private final int codeOffset;
81 this.codeOffset = reader.readSmallUleb128();
100 this.codeOffset = reader.readSmallUleb128();
186 if (codeOffset > 0) {
187 return new DexBackedMethodImplementation(dexFile, this, codeOffset);
  /external/smali/dexlib2/src/test/java/org/jf/dexlib2/util/
InstructionOffsetMapTest.java 92 for (int codeOffset=0; codeOffset<=expectedOffsets[expectedOffsets.length-1]; codeOffset++) {
93 if (codeOffset == expectedOffsets[instructionIndex+1]) {
99 instructionOffsetMap.getInstructionIndexAtCodeOffset(codeOffset, false));
102 instructionOffsetMap.getInstructionIndexAtCodeOffset(codeOffset, true);
103 Assert.fail(String.format("Exception exception didn't occur for code offset 0x%x", codeOffset));
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
InstructionFactory.java 45 Instruction makeInstruction10t(@Nonnull Opcode opcode, int codeOffset);
51 Instruction makeInstruction20t(@Nonnull Opcode opcode, int codeOffset);
56 Instruction makeInstruction21t(@Nonnull Opcode opcode, int registerA, int codeOffset);
60 Instruction makeInstruction22t(@Nonnull Opcode opcode, int registerA, int registerB, int codeOffset);
63 Instruction makeInstruction30t(@Nonnull Opcode opcode, int codeOffset);
66 Instruction makeInstruction31t(@Nonnull Opcode opcode, int registerA, int codeOffset);
DexWriter.java     [all...]
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/
ClassDataItem.java 157 int codeOffset = reader.readSmallUleb128();
158 if (codeOffset == 0) {
161 out.annotateTo(reader.getOffset(), "code_off = code_item[0x%x]", codeOffset);
162 addCodeItemIdentity(codeOffset, MethodIdItem.asString(dexFile, methodIndex));
  /external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/
SmaliInstruction.java 205 int codeOffset = 0;
208 if (codeOffset == thisOffset) {
211 assert codeOffset < thisOffset;
213 codeOffset += instruction.getOriginalInstruction().getCodeUnits();
  /external/swiftshader/third_party/LLVM/include/llvm/Support/
Win64EH.h 42 uint8_t codeOffset;
  /external/libunwind_llvm/src/
DwarfParser.hpp 369 pint_t codeOffset = 0;
376 while ((p < instructionsEnd) && (codeOffset < pcoffset)) {
392 codeOffset =
397 codeOffset += (addressSpace.get8(p) * cieInfo.codeAlignFactor);
400 static_cast<uint64_t>(codeOffset));
403 codeOffset += (addressSpace.get16(p) * cieInfo.codeAlignFactor);
406 static_cast<uint64_t>(codeOffset));
409 codeOffset += (addressSpace.get32(p) * cieInfo.codeAlignFactor);
412 static_cast<uint64_t>(codeOffset));
537 results->codeOffsetAtStackDecrement = (uint32_t)codeOffset;
    [all...]
  /prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/Unwind/
DwarfParser.hpp 371 pint_t codeOffset = 0;
378 while ((p < instructionsEnd) && (codeOffset < pcoffset)) {
393 codeOffset =
399 codeOffset += (addressSpace.get8(p) * cieInfo.codeAlignFactor);
403 (uint64_t)codeOffset);
406 codeOffset += (addressSpace.get16(p) * cieInfo.codeAlignFactor);
410 (uint64_t)codeOffset);
413 codeOffset += (addressSpace.get32(p) * cieInfo.codeAlignFactor);
417 (uint64_t)codeOffset);
550 results->codeOffsetAtStackDecrement = (uint32_t)codeOffset;
    [all...]
  /external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
MethodDefinition.java 110 int codeOffset = instructionOffsetMap.getInstructionCodeOffset(i);
111 int targetOffset = codeOffset + ((OffsetInstruction)instruction).getCodeOffset();
123 ((Instruction31t)instruction).getRegisterA(), targetOffset-codeOffset));
127 packedSwitchMap.append(targetOffset, codeOffset);
131 int codeOffset = instructionOffsetMap.getInstructionCodeOffset(i);
132 int targetOffset = codeOffset + ((OffsetInstruction)instruction).getCodeOffset();
146 ((Instruction31t)instruction).getRegisterA(), targetOffset-codeOffset));
150 sparseSwitchMap.append(targetOffset, codeOffset);
  /art/dexlist/
dexlist.cc 95 const DexFile::CodeItem* pCode, u4 codeOffset) {
97 if (pCode == nullptr || codeOffset == 0) {
106 const u4 insnsOff = codeOffset + 0x10;
  /external/smali/smalidea/src/test/java/org/jf/smalidea/
SmaliMethodTest.java 247 private void checkSourcePosition(SmaliMethod smaliMethod, int codeOffset, Opcode opcode) {
248 SourcePosition sourcePosition = smaliMethod.getSourcePositionForCodeOffset(codeOffset);
253 Assert.assertEquals(codeOffset, instruction.getOffset());
  /art/dexdump/
dexdump.cc 932 u4 codeOffset, u4 insnIdx, u4 insnWidth
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/
pyassem.py 604 self.codeOffset = 0
613 self.codeOffset = self.codeOffset + len(args)
621 addr = self.codeOffset - self.lastoff
645 self.lastoff = self.codeOffset

Completed in 544 milliseconds

1 2 3 4