/external/chromium_org/courgette/ |
H A D | adjustment_method.h | 12 class AssemblyProgram; 37 virtual bool Adjust(const AssemblyProgram& model, 38 AssemblyProgram* program) = 0;
|
H A D | adjustment_method_unittest.cc | 28 courgette::AssemblyProgram* MakeProgram(int kind) const { 29 courgette::AssemblyProgram* prog = 30 new courgette::AssemblyProgram(courgette::EXE_WIN_32_X86); 55 courgette::AssemblyProgram* MakeProgramA() const { return MakeProgram(0); } 56 courgette::AssemblyProgram* MakeProgramB() const { return MakeProgram(1); } 60 std::string Serialize(courgette::AssemblyProgram *program) const { 85 courgette::AssemblyProgram* prog1 = MakeProgramA(); 86 courgette::AssemblyProgram* prog2 = MakeProgramB(); 93 courgette::AssemblyProgram* prog5 = MakeProgramA(); 94 courgette::AssemblyProgram* prog [all...] |
H A D | courgette.h | 68 class AssemblyProgram; 105 // appropriate tools, storing the pointer to the AssemblyProgram in |*output|. 109 AssemblyProgram** output); 113 Status TrimLabels(AssemblyProgram* program); 118 Status Encode(AssemblyProgram* program, EncodedProgram** output); 134 // Used to free an AssemblyProgram returned by other APIs. 135 void DeleteAssemblyProgram(AssemblyProgram* program); 142 Status Adjust(const AssemblyProgram& model, AssemblyProgram *program);
|
H A D | assembly_program.cc | 138 AssemblyProgram::AssemblyProgram(ExecutableType kind) function in class:courgette::AssemblyProgram 147 AssemblyProgram::~AssemblyProgram() { 161 CheckBool AssemblyProgram::EmitPeRelocsInstruction() { 165 CheckBool AssemblyProgram::EmitElfRelocationInstruction() { 169 CheckBool AssemblyProgram::EmitElfARMRelocationInstruction() { 173 CheckBool AssemblyProgram::EmitOriginInstruction(RVA rva) { 177 CheckBool AssemblyProgram::EmitByteInstruction(uint8 byte) { 181 CheckBool AssemblyProgram [all...] |
H A D | disassembler.cc | 73 AssemblyProgram** output) { 82 AssemblyProgram* program = new AssemblyProgram(disassembler->kind()); 95 void DeleteAssemblyProgram(AssemblyProgram* program) {
|
H A D | disassembler_elf_32_arm.h | 15 class AssemblyProgram; 37 virtual CheckBool EmitInstruction(AssemblyProgram* program, 68 AssemblyProgram* program) WARN_UNUSED_RESULT;
|
H A D | disassembler_elf_32_x86.h | 15 class AssemblyProgram; 29 virtual CheckBool EmitInstruction(AssemblyProgram* program, 49 AssemblyProgram* program) WARN_UNUSED_RESULT;
|
H A D | disassembler_win32_x86.h | 15 class AssemblyProgram; 28 virtual bool Disassemble(AssemblyProgram* target); 57 CheckBool ParseFile(AssemblyProgram* target) WARN_UNUSED_RESULT; 63 uint32 end_file_offset, AssemblyProgram* program) WARN_UNUSED_RESULT; 66 AssemblyProgram* program) WARN_UNUSED_RESULT;
|
H A D | disassembler_elf_32.h | 17 class AssemblyProgram; 62 virtual CheckBool EmitInstruction(AssemblyProgram* program, 91 virtual bool Disassemble(AssemblyProgram* target); 171 CheckBool ParseFile(AssemblyProgram* target) WARN_UNUSED_RESULT; 174 AssemblyProgram* program) WARN_UNUSED_RESULT = 0; 181 AssemblyProgram* program) WARN_UNUSED_RESULT; 184 AssemblyProgram* program) WARN_UNUSED_RESULT;
|
H A D | assembly_program.h | 44 // An AssemblyProgram is the result of disassembling an executable file. 46 // * The disassembler creates labels in the AssemblyProgram and emits 51 // * At this point the AssemblyProgram can be converted into an 56 // The optional step is to modify the AssemblyProgram. One form of modification 58 // AssemblyProgram look more like the EncodedProgram for some other 59 // AssemblyProgram. The modification process should call UnassignIndexes, do 63 class AssemblyProgram { class in namespace:courgette 65 explicit AssemblyProgram(ExecutableType kind); 66 ~AssemblyProgram(); 164 DISALLOW_COPY_AND_ASSIGN(AssemblyProgram); [all...] |
H A D | disassembler.h | 14 class AssemblyProgram; 36 virtual bool Disassemble(AssemblyProgram* program) = 0;
|
H A D | disassembler_elf_32_x86_unittest.cc | 41 courgette::AssemblyProgram* program = 42 new courgette::AssemblyProgram(courgette::EXE_ELF_32_X86);
|
H A D | patch_generator_x86_32.h | 51 // Then we adjust the new AssemblyProgram to make it as much like the old one 63 AssemblyProgram* old_program = NULL; 73 AssemblyProgram* new_program = NULL;
|
H A D | adjustment_method.cc | 27 bool Adjust(const AssemblyProgram& model, AssemblyProgram* program) { 574 bool Adjust(const AssemblyProgram& model, AssemblyProgram* program) { 594 void CollectTraces(const AssemblyProgram* program, Trace* abs32, Trace* rel32, 652 AssemblyProgram* prog_; // Program to be adjusted, owned by caller. 653 const AssemblyProgram* model_; // Program to be mimicked, owned by caller. 683 Status Adjust(const AssemblyProgram& model, AssemblyProgram* program) {
|
H A D | encode_decode_unittest.cc | 21 courgette::AssemblyProgram* program = NULL;
|
H A D | patcher_x86_32.h | 50 AssemblyProgram* program = NULL;
|
H A D | disassembler_elf_32.cc | 82 bool DisassemblerElf32::Disassemble(AssemblyProgram* target) { 241 CheckBool DisassemblerElf32::ParseFile(AssemblyProgram* program) { 327 AssemblyProgram* program) { 407 AssemblyProgram* program) {
|
H A D | disassembler_elf_32_x86.cc | 65 AssemblyProgram* program) {
|
H A D | courgette_tool.cc | 77 courgette::AssemblyProgram* program = NULL; 155 courgette::AssemblyProgram* program = NULL; 163 courgette::AssemblyProgram* model = NULL; 211 courgette::AssemblyProgram* model = NULL; 219 courgette::AssemblyProgram* program = NULL;
|
H A D | disassembler_win32_x86.cc | 202 bool DisassemblerWin32X86::Disassemble(AssemblyProgram* target) { 338 CheckBool DisassemblerWin32X86::ParseFile(AssemblyProgram* program) { 517 AssemblyProgram* program) { 538 AssemblyProgram* program) {
|
H A D | disassembler_elf_32_arm.cc | 259 AssemblyProgram* program, 300 AssemblyProgram* program) {
|
H A D | encoded_program_fuzz_unittest.cc | 41 courgette::AssemblyProgram* program = NULL;
|
H A D | adjustment_method_2.cc | 1228 bool Adjust(const AssemblyProgram& model, AssemblyProgram* program) { 1250 void CollectTraces(const AssemblyProgram* program, Trace* abs32, Trace* rel32, 1282 AssemblyProgram* prog_; // Program to be adjusted, owned by caller. 1283 const AssemblyProgram* model_; // Program to be mimicked, owned by caller.
|