Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #if !defined(_WIN32) // Disassembler is not yet supported under WIN32. | 5 #if !defined(_WIN32) // Disassembler is not yet supported under WIN32. |
| 6 #include <errno.h> | 6 #include <errno.h> |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <unistd.h> | 9 #include <unistd.h> |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include "platform/assert.h" | 12 #include "platform/assert.h" |
|
Ivan Posva
2012/01/13 23:51:01
ditto. Please move back inside, missed this in the
Søren Gjesse
2012/01/16 10:53:00
Done.
| |
| 13 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. | 13 #include "platform/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 14 #if defined(TARGET_ARCH_X64) | 14 #if defined(TARGET_ARCH_X64) |
| 15 | 15 |
| 16 #include "vm/disassembler.h" | 16 #include "vm/disassembler.h" |
| 17 | 17 |
| 18 namespace dart { | 18 namespace dart { |
| 19 | 19 |
| 20 void Disassembler::Disassemble(uword start, | 20 void Disassembler::Disassemble(uword start, |
| 21 uword end, | 21 uword end, |
| 22 DisassemblyFormatter* formatter) { | 22 DisassemblyFormatter* formatter) { |
| 23 // First print the actual addresses so that we know where in memory this is | 23 // First print the actual addresses so that we know where in memory this is |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 101 int Disassembler::DecodeInstruction(char* hexa_buffer, intptr_t hexa_size, | 101 int Disassembler::DecodeInstruction(char* hexa_buffer, intptr_t hexa_size, |
| 102 char* human_buffer, intptr_t human_size, | 102 char* human_buffer, intptr_t human_size, |
| 103 uword pc) { | 103 uword pc) { |
| 104 UNIMPLEMENTED(); | 104 UNIMPLEMENTED(); |
| 105 return 0; | 105 return 0; |
| 106 } | 106 } |
| 107 | 107 |
| 108 } // namespace dart | 108 } // namespace dart |
| 109 | 109 |
| 110 #endif // defined TARGET_ARCH_X64 | 110 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |