| 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/code_generator.h" | 10 #include "vm/code_generator.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 FLAG_deoptimization_counter_threshold) { | 141 FLAG_deoptimization_counter_threshold) { |
| 142 const Code& unoptimized_code = | 142 const Code& unoptimized_code = |
| 143 Code::Handle(parsed_function.function().unoptimized_code()); | 143 Code::Handle(parsed_function.function().unoptimized_code()); |
| 144 isolate->set_ic_data_array( | 144 isolate->set_ic_data_array( |
| 145 unoptimized_code.ExtractTypeFeedbackArray()); | 145 unoptimized_code.ExtractTypeFeedbackArray()); |
| 146 } | 146 } |
| 147 } | 147 } |
| 148 | 148 |
| 149 // Build the flow graph. | 149 // Build the flow graph. |
| 150 FlowGraphBuilder builder(parsed_function); | 150 FlowGraphBuilder builder(parsed_function); |
| 151 flow_graph = builder.BuildGraph(FlowGraphBuilder::kNotInlining); | 151 flow_graph = builder.BuildGraph(FlowGraphBuilder::kNotInlining, |
| 152 0); // The initial loop depth is zero. |
| 152 } | 153 } |
| 153 | 154 |
| 154 if (optimized) { | 155 if (optimized) { |
| 155 TimerScope timer(FLAG_compiler_stats, | 156 TimerScope timer(FLAG_compiler_stats, |
| 156 &CompilerStats::ssa_timer, | 157 &CompilerStats::ssa_timer, |
| 157 isolate); | 158 isolate); |
| 158 // Transform to SSA (virtual register 0 and no inlining arguments). | 159 // Transform to SSA (virtual register 0 and no inlining arguments). |
| 159 flow_graph->ComputeSSA(0, NULL); | 160 flow_graph->ComputeSSA(0, NULL); |
| 160 } | 161 } |
| 161 | 162 |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 result = isolate->object_store()->sticky_error(); | 604 result = isolate->object_store()->sticky_error(); |
| 604 isolate->object_store()->clear_sticky_error(); | 605 isolate->object_store()->clear_sticky_error(); |
| 605 isolate->set_long_jump_base(base); | 606 isolate->set_long_jump_base(base); |
| 606 return result.raw(); | 607 return result.raw(); |
| 607 } | 608 } |
| 608 UNREACHABLE(); | 609 UNREACHABLE(); |
| 609 return Object::null(); | 610 return Object::null(); |
| 610 } | 611 } |
| 611 | 612 |
| 612 } // namespace dart | 613 } // namespace dart |
| OLD | NEW |