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

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

Issue 2793943002: Fix disassembly of OSR functions. (Closed)
Patch Set: Remove unused function Created 3 years, 8 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 | « runtime/vm/disassembler.h ('k') | runtime/vm/precompiler.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) 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
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
OLDNEW
« no previous file with comments | « runtime/vm/disassembler.h ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698