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

Side by Side Diff: runtime/vm/disassembler.h

Issue 2662933002: Fix simarm product build on Windows (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | 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) 2011, 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 #ifndef RUNTIME_VM_DISASSEMBLER_H_ 5 #ifndef RUNTIME_VM_DISASSEMBLER_H_
6 #define RUNTIME_VM_DISASSEMBLER_H_ 6 #define RUNTIME_VM_DISASSEMBLER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 DisassemblyFormatter* formatter, 95 DisassemblyFormatter* formatter,
96 const Code& code); 96 const Code& code);
97 97
98 static void Disassemble(uword start, 98 static void Disassemble(uword start,
99 uword end, 99 uword end,
100 DisassemblyFormatter* formatter) { 100 DisassemblyFormatter* formatter) {
101 Disassemble(start, end, formatter, Code::Handle()); 101 Disassemble(start, end, formatter, Code::Handle());
102 } 102 }
103 103
104 static void Disassemble(uword start, uword end, const Code& code) { 104 static void Disassemble(uword start, uword end, const Code& code) {
105 #ifndef PRODUCT
105 DisassembleToStdout stdout_formatter; 106 DisassembleToStdout stdout_formatter;
106 LogBlock lb; 107 LogBlock lb;
107 Disassemble(start, end, &stdout_formatter, code); 108 Disassemble(start, end, &stdout_formatter, code);
109 #else
110 UNREACHABLE();
111 #endif
108 } 112 }
109 113
110 static void Disassemble(uword start, uword end) { 114 static void Disassemble(uword start, uword end) {
115 #ifndef PRODUCT
111 DisassembleToStdout stdout_formatter; 116 DisassembleToStdout stdout_formatter;
112 LogBlock lb; 117 LogBlock lb;
113 Disassemble(start, end, &stdout_formatter); 118 Disassemble(start, end, &stdout_formatter);
119 #else
120 UNREACHABLE();
121 #endif
114 } 122 }
115 123
116 // Decodes one instruction. 124 // Decodes one instruction.
117 // Writes a hexadecimal representation into the hex_buffer and a 125 // Writes a hexadecimal representation into the hex_buffer and a
118 // human-readable representation into the human_buffer. 126 // human-readable representation into the human_buffer.
119 // Writes the length of the decoded instruction in bytes in out_instr_len. 127 // Writes the length of the decoded instruction in bytes in out_instr_len.
120 static void DecodeInstruction(char* hex_buffer, 128 static void DecodeInstruction(char* hex_buffer,
121 intptr_t hex_size, 129 intptr_t hex_size,
122 char* human_buffer, 130 char* human_buffer,
123 intptr_t human_size, 131 intptr_t human_size,
(...skipping 11 matching lines...) Expand all
135 const Code& code, 143 const Code& code,
136 bool optimized); 144 bool optimized);
137 145
138 static const int kHexadecimalBufferSize = 32; 146 static const int kHexadecimalBufferSize = 32;
139 static const int kUserReadableBufferSize = 256; 147 static const int kUserReadableBufferSize = 256;
140 }; 148 };
141 149
142 } // namespace dart 150 } // namespace dart
143 151
144 #endif // RUNTIME_VM_DISASSEMBLER_H_ 152 #endif // RUNTIME_VM_DISASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698