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

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

Issue 10824308: Rename is_call to always_calls and contains_call to can_call. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/locations.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_optimizer.h" 5 #include "vm/flow_graph_optimizer.h"
6 6
7 #include "vm/flow_graph_builder.h" 7 #include "vm/flow_graph_builder.h"
8 #include "vm/il_printer.h" 8 #include "vm/il_printer.h"
9 #include "vm/object_store.h" 9 #include "vm/object_store.h"
10 #include "vm/parser.h" 10 #include "vm/parser.h"
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 } while (still_changing_); 709 } while (still_changing_);
710 } 710 }
711 711
712 712
713 void FlowGraphAnalyzer::Analyze() { 713 void FlowGraphAnalyzer::Analyze() {
714 is_leaf_ = true; 714 is_leaf_ = true;
715 for (intptr_t i = 0; i < blocks_.length(); ++i) { 715 for (intptr_t i = 0; i < blocks_.length(); ++i) {
716 BlockEntryInstr* entry = blocks_[i]; 716 BlockEntryInstr* entry = blocks_[i];
717 for (ForwardInstructionIterator it(entry); !it.Done(); it.Advance()) { 717 for (ForwardInstructionIterator it(entry); !it.Done(); it.Advance()) {
718 LocationSummary* locs = it.Current()->locs(); 718 LocationSummary* locs = it.Current()->locs();
719 if ((locs != NULL) && locs->contains_call()) { 719 if ((locs != NULL) && locs->can_call()) {
720 is_leaf_ = false; 720 is_leaf_ = false;
721 return; 721 return;
722 } 722 }
723 } 723 }
724 } 724 }
725 } 725 }
726 726
727 } // namespace dart 727 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/locations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698