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 4587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4598 void FlowGraphBuilder::PruneUnreachable() { | 4598 void FlowGraphBuilder::PruneUnreachable() { |
4599 ASSERT(osr_id_ != Compiler::kNoOSRDeoptId); | 4599 ASSERT(osr_id_ != Compiler::kNoOSRDeoptId); |
4600 BitVector* block_marks = new(Z) BitVector(Z, last_used_block_id_ + 1); | 4600 BitVector* block_marks = new(Z) BitVector(Z, last_used_block_id_ + 1); |
4601 bool found = graph_entry_->PruneUnreachable(this, graph_entry_, NULL, osr_id_, | 4601 bool found = graph_entry_->PruneUnreachable(this, graph_entry_, NULL, osr_id_, |
4602 block_marks); | 4602 block_marks); |
4603 ASSERT(found); | 4603 ASSERT(found); |
4604 } | 4604 } |
4605 | 4605 |
4606 | 4606 |
4607 void FlowGraphBuilder::Bailout(const char* reason) const { | 4607 void FlowGraphBuilder::Bailout(const char* reason) const { |
4608 const Function& function = parsed_function_.function(); | 4608 parsed_function_.Bailout("FlowGraphBuilder", reason); |
4609 Report::MessageF(Report::kBailout, | |
4610 Script::Handle(function.script()), | |
4611 function.token_pos(), | |
4612 Report::AtLocation, | |
4613 "FlowGraphBuilder Bailout: %s %s", | |
4614 String::Handle(function.name()).ToCString(), | |
4615 reason); | |
4616 UNREACHABLE(); | |
4617 } | 4609 } |
4618 | 4610 |
4619 } // namespace dart | 4611 } // namespace dart |
OLD | NEW |