Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: courgette/disassembler_elf_32_x86.h

Issue 1935203002: [Courgette] Using LabelManager to reduce Courgette-apply peak RAM by 25%. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « courgette/disassembler_elf_32_arm.cc ('k') | courgette/disassembler_elf_32_x86.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COURGETTE_DISASSEMBLER_ELF_32_X86_H_ 5 #ifndef COURGETTE_DISASSEMBLER_ELF_32_X86_H_
6 #define COURGETTE_DISASSEMBLER_ELF_32_X86_H_ 6 #define COURGETTE_DISASSEMBLER_ELF_32_X86_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 10 matching lines...) Expand all
21 class DisassemblerElf32X86 : public DisassemblerElf32 { 21 class DisassemblerElf32X86 : public DisassemblerElf32 {
22 public: 22 public:
23 class TypedRVAX86 : public TypedRVA { 23 class TypedRVAX86 : public TypedRVA {
24 public: 24 public:
25 explicit TypedRVAX86(RVA rva) : TypedRVA(rva) { } 25 explicit TypedRVAX86(RVA rva) : TypedRVA(rva) { }
26 ~TypedRVAX86() override { } 26 ~TypedRVAX86() override { }
27 27
28 // TypedRVA interfaces. 28 // TypedRVA interfaces.
29 CheckBool ComputeRelativeTarget(const uint8_t* op_pointer) override; 29 CheckBool ComputeRelativeTarget(const uint8_t* op_pointer) override;
30 CheckBool EmitInstruction(AssemblyProgram* program, 30 CheckBool EmitInstruction(AssemblyProgram* program,
31 RVA target_rva) override; 31 Label* label) override;
32 uint16_t op_size() const override; 32 uint16_t op_size() const override;
33 }; 33 };
34 34
35 DisassemblerElf32X86(const void* start, size_t length); 35 DisassemblerElf32X86(const void* start, size_t length);
36 36
37 ~DisassemblerElf32X86() override { } 37 ~DisassemblerElf32X86() override { }
38 38
39 // DisassemblerElf32 interfaces. 39 // DisassemblerElf32 interfaces.
40 ExecutableType kind() const override { return EXE_ELF_32_X86; } 40 ExecutableType kind() const override { return EXE_ELF_32_X86; }
41 e_machine_values ElfEM() const override { return EM_386; } 41 e_machine_values ElfEM() const override { return EM_386; }
(...skipping 11 matching lines...) Expand all
53 #if COURGETTE_HISTOGRAM_TARGETS 53 #if COURGETTE_HISTOGRAM_TARGETS
54 std::map<RVA, int> rel32_target_rvas_; 54 std::map<RVA, int> rel32_target_rvas_;
55 #endif 55 #endif
56 56
57 DISALLOW_COPY_AND_ASSIGN(DisassemblerElf32X86); 57 DISALLOW_COPY_AND_ASSIGN(DisassemblerElf32X86);
58 }; 58 };
59 59
60 } // namespace courgette 60 } // namespace courgette
61 61
62 #endif // COURGETTE_DISASSEMBLER_ELF_32_X86_H_ 62 #endif // COURGETTE_DISASSEMBLER_ELF_32_X86_H_
OLDNEW
« no previous file with comments | « courgette/disassembler_elf_32_arm.cc ('k') | courgette/disassembler_elf_32_x86.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698