/external/chromium_org/tools/symsrc/ |
D | pefile.py | 553 def __get_word_value_at_rva(self, rva): argument 838 def get_offset_from_rva(self, rva): argument 839 return (rva - self.VirtualAddress) + self.PointerToRawData 852 def contains_rva(self, rva): argument 866 return self.VirtualAddress <= rva < self.VirtualAddress + size 868 def contains(self, rva): argument 870 return self.contains_rva(rva) 1837 def parse_directory_bound_imports(self, rva, size): argument 1842 start = rva 1849 self.__data__[rva:rva+bnd_descr_size], [all …]
|
/external/chromium_org/courgette/ |
D | disassembler_elf_32_arm.cc | 20 CheckBool DisassemblerElf32ARM::Compress(ARM_RVA type, uint32 arm_op, RVA rva, in Compress() argument 90 uint32 align4byte = (rva % 4) ? 2 : 4; in Compress() 230 CheckBool ret = Compress(type_, Read16LittleEndian(op_pointer), rva(), in ComputeRelativeTarget() 237 CheckBool ret = Compress(type_, Read32LittleEndian(op_pointer), rva(), in ComputeRelativeTarget() 249 CheckBool ret = Compress(type_, pval, rva(), &c_op_, &relative_target); in ComputeRelativeTarget() 395 RVA rva = static_cast<RVA>(p - adjust_pointer_to_rva); in ParseRel32RelocsFromSection() local 397 rel32_rva = new TypedRVAARM(ARM_OFF8, rva); in ParseRel32RelocsFromSection() 401 target_rva = rel32_rva->rva() + rel32_rva->relative_target(); in ParseRel32RelocsFromSection() 404 RVA rva = static_cast<RVA>(p - adjust_pointer_to_rva); in ParseRel32RelocsFromSection() local 406 rel32_rva = new TypedRVAARM(ARM_OFF11, rva); in ParseRel32RelocsFromSection() [all …]
|
D | disassembler_elf_32.cc | 142 CheckBool DisassemblerElf32::IsValidRVA(RVA rva) const { in IsValidRVA() 154 if (rva >= begin && rva < end) in IsValidRVA() 210 for (std::vector<RVA>::iterator rva = rvas->begin(); in RVAsToOffsets() local 211 rva != rvas->end(); in RVAsToOffsets() 212 rva++) { in RVAsToOffsets() 216 if (!RVAToFileOffset(*rva, &offset)) in RVAsToOffsets() 226 for (ScopedVector<TypedRVA>::iterator rva = rvas->begin(); in RVAsToOffsets() local 227 rva != rvas->end(); in RVAsToOffsets() 228 rva++) { in RVAsToOffsets() 232 if (!RVAToFileOffset((*rva)->rva(), &offset)) in RVAsToOffsets() [all …]
|
D | encoded_program.cc | 161 RVA rva) { in DefineLabelCommon() argument 169 (*rvas)[index] = rva; in DefineLabelCommon() 419 RVA rva; in EvaluateRel32ARM() local 420 if (!VectorAt(rel32_rva_, index, &rva)) in EvaluateRel32ARM() 425 static_cast<uint32>(rva - in EvaluateRel32ARM() 441 RVA rva; in EvaluateRel32ARM() local 442 if (!VectorAt(rel32_rva_, index, &rva)) in EvaluateRel32ARM() 446 (uint32) (rva - current_rva), in EvaluateRel32ARM() 461 RVA rva; in EvaluateRel32ARM() local 462 if (!VectorAt(rel32_rva_, index, &rva)) in EvaluateRel32ARM() [all …]
|
D | disassembler_elf_32.h | 33 explicit TypedRVA(RVA rva) : rva_(rva), offset_(-1) { in TypedRVA() argument 38 RVA rva() { in rva() function 68 return a->rva() < b->rva(); in IsLessThan() 153 CheckBool IsValidRVA(RVA rva) const WARN_UNUSED_RESULT; 160 CheckBool RVAToFileOffset(RVA rva, size_t* result) const WARN_UNUSED_RESULT; 187 CheckBool CheckSection(RVA rva) WARN_UNUSED_RESULT;
|
D | assembly_program.h | 35 explicit Label(RVA rva) : rva_(rva), index_(kNoIndex), count_(0) {} in Label() argument 84 CheckBool EmitOriginInstruction(RVA rva) WARN_UNUSED_RESULT; 105 Label* FindOrMakeAbs32Label(RVA rva); 108 Label* FindOrMakeRel32Label(RVA rva); 143 Label* FindLabel(RVA rva, RVAToLabel* labels);
|
D | disassembler_win32_x86.cc | 265 RVA rva = page_rva + offset; in ParseRelocs() local 267 relocs->push_back(rva); in ParseRelocs() 284 const Section* DisassemblerWin32X86::RVAToSection(RVA rva) const { in RVAToSection() 287 uint32 offset = rva - section->virtual_address; in RVAToSection() 295 int DisassemblerWin32X86::RVAToFileOffset(RVA rva) const { in RVAToFileOffset() 296 const Section* section = RVAToSection(rva); in RVAToFileOffset() 298 uint32 offset = rva - section->virtual_address; in RVAToFileOffset() 310 if (rva == 0 || rva == 2) in RVAToFileOffset() 311 return rva; in RVAToFileOffset() 317 const uint8* DisassemblerWin32X86::RVAToPointer(RVA rva) const { in RVAToPointer() [all …]
|
D | disassembler_win32_x64.cc | 265 RVA rva = page_rva + offset; in ParseRelocs() local 267 relocs->push_back(rva); in ParseRelocs() 284 const Section* DisassemblerWin32X64::RVAToSection(RVA rva) const { in RVAToSection() 287 uint32 offset = rva - section->virtual_address; in RVAToSection() 295 int DisassemblerWin32X64::RVAToFileOffset(RVA rva) const { in RVAToFileOffset() 296 const Section* section = RVAToSection(rva); in RVAToFileOffset() 298 uint32 offset = rva - section->virtual_address; in RVAToFileOffset() 310 if (rva == 0 || rva == 2) in RVAToFileOffset() 311 return rva; in RVAToFileOffset() 317 const uint8* DisassemblerWin32X64::RVAToPointer(RVA rva) const { in RVAToPointer() [all …]
|
D | typedrva_unittest.cc | 15 courgette::RVA rva, 20 courgette::RVA rva, 42 courgette::RVA rva, in TestRelativeTargetARM() argument 46 = new courgette::DisassemblerElf32ARM::TypedRVAARM(arm_rva, rva); in TestRelativeTargetARM() 50 EXPECT_EQ(rva + typed_rva->relative_target(), expected); in TestRelativeTargetARM() 56 courgette::RVA rva, in TestARMOPEncode() argument 61 EXPECT_TRUE(courgette::DisassemblerElf32ARM::Compress(arm_rva, op, rva, in TestARMOPEncode() 63 EXPECT_EQ(rva + addr, expected); in TestARMOPEncode()
|
D | disassembler_win32_x86.h | 48 const Section* RVAToSection(RVA rva) const; 52 int RVAToFileOffset(RVA rva) const; 56 const uint8* RVAToPointer(RVA rva) const; 85 bool IsValidRVA(RVA rva) const { return rva < size_of_image_; } in IsValidRVA() argument 88 std::string DescribeRVA(RVA rva) const;
|
D | disassembler_win32_x64.h | 48 const Section* RVAToSection(RVA rva) const; 52 int RVAToFileOffset(RVA rva) const; 56 const uint8* RVAToPointer(RVA rva) const; 85 bool IsValidRVA(RVA rva) const { return rva < size_of_image_; } in IsValidRVA() argument 88 std::string DescribeRVA(RVA rva) const;
|
D | assembly_program.cc | 59 explicit OriginInstruction(RVA rva) : Instruction(ORIGIN, 0), rva_(rva) {} in OriginInstruction() argument 173 CheckBool AssemblyProgram::EmitOriginInstruction(RVA rva) { in EmitOriginInstruction() argument 174 return Emit(new(std::nothrow) OriginInstruction(rva)); in EmitOriginInstruction() 200 Label* AssemblyProgram::FindOrMakeAbs32Label(RVA rva) { in FindOrMakeAbs32Label() argument 201 return FindLabel(rva, &abs32_labels_); in FindOrMakeAbs32Label() 204 Label* AssemblyProgram::FindOrMakeRel32Label(RVA rva) { in FindOrMakeRel32Label() argument 205 return FindLabel(rva, &rel32_labels_); in FindOrMakeRel32Label() 249 Label* AssemblyProgram::FindLabel(RVA rva, RVAToLabel* labels) { in FindLabel() argument 250 Label*& slot = (*labels)[rva]; in FindLabel() 252 slot = new(std::nothrow) Label(rva); in FindLabel()
|
D | disassembler_elf_32_arm.h | 29 TypedRVAARM(ARM_RVA type, RVA rva) : TypedRVA(rva), type_(type) { } in TypedRVAARM() argument 55 static CheckBool Compress(ARM_RVA type, uint32 arm_op, RVA rva,
|
D | disassembler_elf_32_x86.cc | 153 RVA rva = static_cast<RVA>(rel32 - adjust_pointer_to_rva); in ParseRel32RelocsFromSection() local 154 TypedRVAX86* rel32_rva = new TypedRVAX86(rva); in ParseRel32RelocsFromSection() 160 RVA target_rva = rel32_rva->rva() + rel32_rva->relative_target(); in ParseRel32RelocsFromSection()
|
D | disassembler_elf_32_x86.h | 21 explicit TypedRVAX86(RVA rva) : TypedRVA(rva) { in TypedRVAX86() argument
|
D | disassembler_elf_32_x86_unittest.cc | 59 EXPECT_TRUE(abs.find((*rel32)->rva()) == abs.end()); in TestExe() 71 if (*abs32 == (*rel32)->rva()) { in TestExe()
|
D | encoded_program.h | 43 CheckBool AddOrigin(RVA rva) WARN_UNUSED_RESULT;
|
/external/chromium_org/base/win/ |
D | pe_image.cc | 522 bool PEImage::ImageRVAToOnDiskOffset(DWORD rva, DWORD *on_disk_offset) const { in ImageRVAToOnDiskOffset() argument 523 LPVOID address = RVAToAddr(rva); in ImageRVAToOnDiskOffset() 550 PVOID PEImage::RVAToAddr(DWORD rva) const { in RVAToAddr() 551 if (rva == 0) in RVAToAddr() 554 return reinterpret_cast<char*>(module_) + rva; in RVAToAddr() 557 PVOID PEImageAsData::RVAToAddr(DWORD rva) const { in RVAToAddr() 558 if (rva == 0) in RVAToAddr() 561 PVOID in_memory = PEImage::RVAToAddr(rva); in RVAToAddr()
|
D | pe_image.h | 216 virtual PVOID RVAToAddr(DWORD rva) const; 220 bool ImageRVAToOnDiskOffset(DWORD rva, DWORD *on_disk_offset) const; 236 virtual PVOID RVAToAddr(DWORD rva) const;
|
/external/llvm/include/llvm/Support/ |
D | COFF.h | 443 void setHintNameRVA(uint32_t rva) { data = rva; } in setHintNameRVA()
|
/external/chromium_org/v8/tools/ |
D | grokdump.py | 548 self.minidump, d.location.rva) 559 self.minidump, d.location.rva) 563 self.minidump, self.exception.thread_context.rva) 566 self.minidump, self.exception.thread_context.rva) 569 self.minidump, self.exception.thread_context.rva) 572 thread_list = MINIDUMP_THREAD_LIST.Read(self.minidump, d.location.rva) 581 self.minidump, d.location.rva) 587 self.minidump, d.location.rva) 593 self.minidump, d.location.rva) 699 cb(self, r.start, r.memory.data_size, r.memory.rva) [all …]
|