Searched refs:AssemblyProgram (Results 1 - 23 of 23) sorted by relevance

/external/chromium_org/courgette/
H A Dadjustment_method.h12 class AssemblyProgram;
37 virtual bool Adjust(const AssemblyProgram& model,
38 AssemblyProgram* program) = 0;
H A Dadjustment_method_unittest.cc28 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 Dcourgette.h68 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 Dassembly_program.cc138 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 Ddisassembler.cc73 AssemblyProgram** output) {
82 AssemblyProgram* program = new AssemblyProgram(disassembler->kind());
95 void DeleteAssemblyProgram(AssemblyProgram* program) {
H A Ddisassembler_elf_32_arm.h15 class AssemblyProgram;
37 virtual CheckBool EmitInstruction(AssemblyProgram* program,
68 AssemblyProgram* program) WARN_UNUSED_RESULT;
H A Ddisassembler_elf_32_x86.h15 class AssemblyProgram;
29 virtual CheckBool EmitInstruction(AssemblyProgram* program,
49 AssemblyProgram* program) WARN_UNUSED_RESULT;
H A Ddisassembler_win32_x86.h15 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 Ddisassembler_elf_32.h17 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 Dassembly_program.h44 // 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 Ddisassembler.h14 class AssemblyProgram;
36 virtual bool Disassemble(AssemblyProgram* program) = 0;
H A Ddisassembler_elf_32_x86_unittest.cc41 courgette::AssemblyProgram* program =
42 new courgette::AssemblyProgram(courgette::EXE_ELF_32_X86);
H A Dpatch_generator_x86_32.h51 // 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 Dadjustment_method.cc27 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 Dencode_decode_unittest.cc21 courgette::AssemblyProgram* program = NULL;
H A Dpatcher_x86_32.h50 AssemblyProgram* program = NULL;
H A Ddisassembler_elf_32.cc82 bool DisassemblerElf32::Disassemble(AssemblyProgram* target) {
241 CheckBool DisassemblerElf32::ParseFile(AssemblyProgram* program) {
327 AssemblyProgram* program) {
407 AssemblyProgram* program) {
H A Ddisassembler_elf_32_x86.cc65 AssemblyProgram* program) {
H A Dcourgette_tool.cc77 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 Ddisassembler_win32_x86.cc202 bool DisassemblerWin32X86::Disassemble(AssemblyProgram* target) {
338 CheckBool DisassemblerWin32X86::ParseFile(AssemblyProgram* program) {
517 AssemblyProgram* program) {
538 AssemblyProgram* program) {
H A Ddisassembler_elf_32_arm.cc259 AssemblyProgram* program,
300 AssemblyProgram* program) {
H A Dencoded_program_fuzz_unittest.cc41 courgette::AssemblyProgram* program = NULL;
H A Dadjustment_method_2.cc1228 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.

Completed in 90 milliseconds