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

Side by Side Diff: runtime/vm/disassembler_x64.cc

Issue 9189003: Move assert.h/assert.cc from runtime/vm to runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Check for correct rebase Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/disassembler_ia32.cc ('k') | runtime/vm/exceptions_test.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 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 #include "vm/disassembler.h"
6
5 #if !defined(_WIN32) // Disassembler is not yet supported under WIN32. 7 #if !defined(_WIN32) // Disassembler is not yet supported under WIN32.
6 #include <errno.h> 8 #include <errno.h>
7 #include <stdio.h> 9 #include <stdio.h>
8 #include <stdlib.h> 10 #include <stdlib.h>
9 #include <unistd.h> 11 #include <unistd.h>
10 #endif 12 #endif
11 13
14 #include "platform/assert.h"
12 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. 15 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
13 #if defined(TARGET_ARCH_X64) 16 #if defined(TARGET_ARCH_X64)
14 17
15 #include "vm/disassembler.h"
16
17 #include "vm/assert.h"
18
19 namespace dart { 18 namespace dart {
20 19
21 void Disassembler::Disassemble(uword start, 20 void Disassembler::Disassemble(uword start,
22 uword end, 21 uword end,
23 DisassemblyFormatter* formatter) { 22 DisassemblyFormatter* formatter) {
24 // 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
25 // being disassembled from. 24 // being disassembled from.
26 formatter->Print("start: %p end: %p\n", start, end); 25 formatter->Print("start: %p end: %p\n", start, end);
27 26
28 #if !defined(_WIN32) // Disassembler is not yet supported under WIN32. 27 #if !defined(_WIN32) // Disassembler is not yet supported under WIN32.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 int Disassembler::DecodeInstruction(char* hexa_buffer, intptr_t hexa_size, 101 int Disassembler::DecodeInstruction(char* hexa_buffer, intptr_t hexa_size,
103 char* human_buffer, intptr_t human_size, 102 char* human_buffer, intptr_t human_size,
104 uword pc) { 103 uword pc) {
105 UNIMPLEMENTED(); 104 UNIMPLEMENTED();
106 return 0; 105 return 0;
107 } 106 }
108 107
109 } // namespace dart 108 } // namespace dart
110 109
111 #endif // defined TARGET_ARCH_X64 110 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_ia32.cc ('k') | runtime/vm/exceptions_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698