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 4576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4587 void FlowGraphBuilder::PruneUnreachable() { | 4587 void FlowGraphBuilder::PruneUnreachable() { |
4588 ASSERT(osr_id_ != Compiler::kNoOSRDeoptId); | 4588 ASSERT(osr_id_ != Compiler::kNoOSRDeoptId); |
4589 BitVector* block_marks = new(Z) BitVector(Z, last_used_block_id_ + 1); | 4589 BitVector* block_marks = new(Z) BitVector(Z, last_used_block_id_ + 1); |
4590 bool found = graph_entry_->PruneUnreachable(this, graph_entry_, NULL, osr_id_, | 4590 bool found = graph_entry_->PruneUnreachable(this, graph_entry_, NULL, osr_id_, |
4591 block_marks); | 4591 block_marks); |
4592 ASSERT(found); | 4592 ASSERT(found); |
4593 } | 4593 } |
4594 | 4594 |
4595 | 4595 |
4596 void FlowGraphBuilder::Bailout(const char* reason) const { | 4596 void FlowGraphBuilder::Bailout(const char* reason) const { |
4597 const Function& function = parsed_function_.function(); | 4597 parsed_function_.Bailout("FlowGraphBuilder", reason); |
4598 Report::MessageF(Report::kBailout, | |
4599 Script::Handle(function.script()), | |
4600 function.token_pos(), | |
4601 Report::AtLocation, | |
4602 "FlowGraphBuilder Bailout: %s %s", | |
4603 String::Handle(function.name()).ToCString(), | |
4604 reason); | |
4605 UNREACHABLE(); | |
4606 } | 4598 } |
4607 | 4599 |
4608 } // namespace dart | 4600 } // namespace dart |
OLD | NEW |