| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |