| OLD | NEW |
| 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 #include "vm/disassembler.h" | 5 #include "vm/disassembler.h" |
| 6 | 6 |
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 #include "vm/deopt_instructions.h" | 8 #include "vm/deopt_instructions.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/il_printer.h" | 10 #include "vm/il_printer.h" |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 } | 294 } |
| 295 if (optimized && FLAG_trace_inlining_intervals) { | 295 if (optimized && FLAG_trace_inlining_intervals) { |
| 296 code.DumpInlineIntervals(); | 296 code.DumpInlineIntervals(); |
| 297 } | 297 } |
| 298 if (FLAG_trace_source_positions) { | 298 if (FLAG_trace_source_positions) { |
| 299 code.DumpSourcePositions(); | 299 code.DumpSourcePositions(); |
| 300 } | 300 } |
| 301 } | 301 } |
| 302 | 302 |
| 303 | 303 |
| 304 void Disassembler::DisassembleCode(const Function& function, bool optimized) { | 304 void Disassembler::DisassembleCode(const Function& function, |
| 305 const Code& code, |
| 306 bool optimized) { |
| 305 const char* function_fullname = function.ToFullyQualifiedCString(); | 307 const char* function_fullname = function.ToFullyQualifiedCString(); |
| 306 const Code& code = Code::Handle(function.CurrentCode()); | |
| 307 DisassembleCodeHelper(function_fullname, code, optimized); | 308 DisassembleCodeHelper(function_fullname, code, optimized); |
| 308 } | 309 } |
| 309 | 310 |
| 310 | |
| 311 void Disassembler::DisassembleCodeUnoptimized(const Function& function, | |
| 312 bool optimized) { | |
| 313 const char* function_fullname = function.ToFullyQualifiedCString(); | |
| 314 const Code& code = Code::Handle(function.unoptimized_code()); | |
| 315 DisassembleCodeHelper(function_fullname, code, optimized); | |
| 316 } | |
| 317 | |
| 318 | 311 |
| 319 #endif // !PRODUCT | 312 #endif // !PRODUCT |
| 320 | 313 |
| 321 } // namespace dart | 314 } // namespace dart |
| OLD | NEW |