| 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 #include "vm/ast_printer.h" | 8 #include "vm/ast_printer.h" |
| 9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
| 10 #include "vm/code_patcher.h" | 10 #include "vm/code_patcher.h" |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 isolate->set_ic_data_array( | 180 isolate->set_ic_data_array( |
| 181 ExtractTypeFeedbackArray(unoptimized_code)); | 181 ExtractTypeFeedbackArray(unoptimized_code)); |
| 182 } | 182 } |
| 183 } | 183 } |
| 184 FlowGraphBuilder graph_builder(parsed_function); | 184 FlowGraphBuilder graph_builder(parsed_function); |
| 185 graph_builder.BuildGraph(optimized); | 185 graph_builder.BuildGraph(optimized); |
| 186 | 186 |
| 187 // The non-optimizing compiler compiles blocks in reverse postorder, | 187 // The non-optimizing compiler compiles blocks in reverse postorder, |
| 188 // because it is a 'natural' order for the human reader of the | 188 // because it is a 'natural' order for the human reader of the |
| 189 // generated code. | 189 // generated code. |
| 190 intptr_t length = graph_builder.postorder_block_entries().length(); | 190 intptr_t length = graph_builder.postorder_block_entries()->length(); |
| 191 for (intptr_t i = length - 1; i >= 0; --i) { | 191 for (intptr_t i = length - 1; i >= 0; --i) { |
| 192 block_order.Add(graph_builder.postorder_block_entries()[i]); | 192 block_order.Add((*graph_builder.postorder_block_entries())[i]); |
| 193 } | 193 } |
| 194 } | 194 } |
| 195 | 195 |
| 196 Assembler assembler; | 196 Assembler assembler; |
| 197 FlowGraphCompiler graph_compiler(&assembler, parsed_function, | 197 FlowGraphCompiler graph_compiler(&assembler, parsed_function, |
| 198 block_order, optimized); | 198 block_order, optimized); |
| 199 { | 199 { |
| 200 TimerScope timer(FLAG_compiler_stats, | 200 TimerScope timer(FLAG_compiler_stats, |
| 201 &CompilerStats::graphcompiler_timer, | 201 &CompilerStats::graphcompiler_timer, |
| 202 isolate); | 202 isolate); |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 isolate->object_store()->clear_sticky_error(); | 533 isolate->object_store()->clear_sticky_error(); |
| 534 isolate->set_long_jump_base(base); | 534 isolate->set_long_jump_base(base); |
| 535 return result.raw(); | 535 return result.raw(); |
| 536 } | 536 } |
| 537 UNREACHABLE(); | 537 UNREACHABLE(); |
| 538 return Object::null(); | 538 return Object::null(); |
| 539 } | 539 } |
| 540 | 540 |
| 541 | 541 |
| 542 } // namespace dart | 542 } // namespace dart |
| OLD | NEW |