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

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

Issue 2464953002: Add support for OSR in kernel-based FlowGraphBuilder (Closed)
Patch Set: address comments Created 4 years, 1 month 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 | « no previous file | runtime/vm/intermediate_language.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 4619 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698