Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: runtime/vm/flow_graph_builder.cc

Issue 1992963002: Enable optimizer pipeline for DBC. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/flow_graph_allocator.cc ('k') | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_allocator.cc ('k') | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698