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

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

Issue 248213002: Expose functionality to create a stack trace to internal vm code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/exceptions.h » ('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) 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 #include "vm/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 FLAG_deoptimization_counter_threshold); 296 FLAG_deoptimization_counter_threshold);
297 const Code& unoptimized_code = 297 const Code& unoptimized_code =
298 Code::Handle(function.unoptimized_code()); 298 Code::Handle(function.unoptimized_code());
299 ic_data_array = unoptimized_code.ExtractTypeFeedbackArray(); 299 ic_data_array = unoptimized_code.ExtractTypeFeedbackArray();
300 } 300 }
301 301
302 // Build the flow graph. 302 // Build the flow graph.
303 FlowGraphBuilder builder(parsed_function, 303 FlowGraphBuilder builder(parsed_function,
304 ic_data_array, 304 ic_data_array,
305 NULL, // NULL = not inlining. 305 NULL, // NULL = not inlining.
306 osr_id); 306 osr_id,
307 optimized);
307 flow_graph = builder.BuildGraph(); 308 flow_graph = builder.BuildGraph();
308 } 309 }
309 310
310 if (FLAG_print_flow_graph || 311 if (FLAG_print_flow_graph ||
311 (optimized && FLAG_print_flow_graph_optimized)) { 312 (optimized && FLAG_print_flow_graph_optimized)) {
312 if (osr_id == Isolate::kNoDeoptId) { 313 if (osr_id == Isolate::kNoDeoptId) {
313 FlowGraphPrinter::PrintGraph("Before Optimizations", flow_graph); 314 FlowGraphPrinter::PrintGraph("Before Optimizations", flow_graph);
314 } else { 315 } else {
315 FlowGraphPrinter::PrintGraph("For OSR", flow_graph); 316 FlowGraphPrinter::PrintGraph("For OSR", flow_graph);
316 } 317 }
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 const Object& result = 960 const Object& result =
960 Object::Handle(isolate->object_store()->sticky_error()); 961 Object::Handle(isolate->object_store()->sticky_error());
961 isolate->object_store()->clear_sticky_error(); 962 isolate->object_store()->clear_sticky_error();
962 return result.raw(); 963 return result.raw();
963 } 964 }
964 UNREACHABLE(); 965 UNREACHABLE();
965 return Object::null(); 966 return Object::null();
966 } 967 }
967 968
968 } // namespace dart 969 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/exceptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698