| OLD | NEW |
| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 FlowGraphPrinter::PrintICData(*(*ic_data_array)[i]); | 297 FlowGraphPrinter::PrintICData(*(*ic_data_array)[i]); |
| 298 } | 298 } |
| 299 } | 299 } |
| 300 } | 300 } |
| 301 } | 301 } |
| 302 | 302 |
| 303 // Build the flow graph. | 303 // Build the flow graph. |
| 304 FlowGraphBuilder builder(parsed_function, | 304 FlowGraphBuilder builder(parsed_function, |
| 305 *ic_data_array, | 305 *ic_data_array, |
| 306 NULL, // NULL = not inlining. | 306 NULL, // NULL = not inlining. |
| 307 osr_id, | 307 osr_id); |
| 308 optimized); | |
| 309 flow_graph = builder.BuildGraph(); | 308 flow_graph = builder.BuildGraph(); |
| 310 } | 309 } |
| 311 | 310 |
| 312 if (FLAG_print_flow_graph || | 311 if (FLAG_print_flow_graph || |
| 313 (optimized && FLAG_print_flow_graph_optimized)) { | 312 (optimized && FLAG_print_flow_graph_optimized)) { |
| 314 if (osr_id == Isolate::kNoDeoptId) { | 313 if (osr_id == Isolate::kNoDeoptId) { |
| 315 FlowGraphPrinter::PrintGraph("Before Optimizations", flow_graph); | 314 FlowGraphPrinter::PrintGraph("Before Optimizations", flow_graph); |
| 316 } else { | 315 } else { |
| 317 FlowGraphPrinter::PrintGraph("For OSR", flow_graph); | 316 FlowGraphPrinter::PrintGraph("For OSR", flow_graph); |
| 318 } | 317 } |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 const Object& result = | 1032 const Object& result = |
| 1034 Object::Handle(isolate->object_store()->sticky_error()); | 1033 Object::Handle(isolate->object_store()->sticky_error()); |
| 1035 isolate->object_store()->clear_sticky_error(); | 1034 isolate->object_store()->clear_sticky_error(); |
| 1036 return result.raw(); | 1035 return result.raw(); |
| 1037 } | 1036 } |
| 1038 UNREACHABLE(); | 1037 UNREACHABLE(); |
| 1039 return Object::null(); | 1038 return Object::null(); |
| 1040 } | 1039 } |
| 1041 | 1040 |
| 1042 } // namespace dart | 1041 } // namespace dart |
| OLD | NEW |