| 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/flow_graph_builder.h" | 5 #include "vm/flow_graph_builder.h" |
| 6 | 6 |
| 7 #include "lib/invocation_mirror.h" | 7 #include "lib/invocation_mirror.h" |
| 8 #include "vm/ast_printer.h" | 8 #include "vm/ast_printer.h" |
| 9 #include "vm/bit_vector.h" | 9 #include "vm/bit_vector.h" |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 4619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4630 | 4630 |
| 4631 FlowGraph* graph = | 4631 FlowGraph* graph = |
| 4632 new(Z) FlowGraph(parsed_function(), graph_entry_, last_used_block_id_); | 4632 new(Z) FlowGraph(parsed_function(), graph_entry_, last_used_block_id_); |
| 4633 return graph; | 4633 return graph; |
| 4634 } | 4634 } |
| 4635 | 4635 |
| 4636 | 4636 |
| 4637 void FlowGraphBuilder::PruneUnreachable() { | 4637 void FlowGraphBuilder::PruneUnreachable() { |
| 4638 ASSERT(osr_id_ != Compiler::kNoOSRDeoptId); | 4638 ASSERT(osr_id_ != Compiler::kNoOSRDeoptId); |
| 4639 BitVector* block_marks = new(Z) BitVector(Z, last_used_block_id_ + 1); | 4639 BitVector* block_marks = new(Z) BitVector(Z, last_used_block_id_ + 1); |
| 4640 bool found = graph_entry_->PruneUnreachable(this, graph_entry_, NULL, osr_id_, | 4640 bool found = graph_entry_->PruneUnreachable(graph_entry_, NULL, osr_id_, |
| 4641 block_marks); | 4641 block_marks); |
| 4642 ASSERT(found); | 4642 ASSERT(found); |
| 4643 } | 4643 } |
| 4644 | 4644 |
| 4645 | 4645 |
| 4646 void FlowGraphBuilder::Bailout(const char* reason) const { | 4646 void FlowGraphBuilder::Bailout(const char* reason) const { |
| 4647 parsed_function_.Bailout("FlowGraphBuilder", reason); | 4647 parsed_function_.Bailout("FlowGraphBuilder", reason); |
| 4648 } | 4648 } |
| 4649 | 4649 |
| 4650 } // namespace dart | 4650 } // namespace dart |
| OLD | NEW |