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

Side by Side Diff: runtime/vm/flow_graph.h

Issue 12317007: Remove two more places where we computed use lists and add verification. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/compiler.cc ('k') | runtime/vm/flow_graph.cc » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #ifndef VM_FLOW_GRAPH_H_ 5 #ifndef VM_FLOW_GRAPH_H_
6 #define VM_FLOW_GRAPH_H_ 6 #define VM_FLOW_GRAPH_H_
7 7
8 #include "vm/growable_array.h" 8 #include "vm/growable_array.h"
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 #include "vm/parser.h" 10 #include "vm/parser.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void RepairGraphAfterInlining(); 133 void RepairGraphAfterInlining();
134 134
135 // TODO(zerny): Once the SSA is feature complete this should be removed. 135 // TODO(zerny): Once the SSA is feature complete this should be removed.
136 void Bailout(const char* reason) const; 136 void Bailout(const char* reason) const;
137 137
138 void InvalidateDominatorTree() { invalid_dominator_tree_ = true; } 138 void InvalidateDominatorTree() { invalid_dominator_tree_ = true; }
139 139
140 #ifdef DEBUG 140 #ifdef DEBUG
141 // Validation methods for debugging. 141 // Validation methods for debugging.
142 bool ResetUseLists(); 142 bool ResetUseLists();
143 bool ValidateUseLists(); 143 bool VerifyUseLists();
144 #endif // DEBUG 144 #endif // DEBUG
145 145
146 private: 146 private:
147 friend class ConstantPropagator; 147 friend class ConstantPropagator;
148 148
149 void DiscoverBlocks(); 149 void DiscoverBlocks();
150 150
151 // SSA transformation methods and fields. 151 // SSA transformation methods and fields.
152 void ComputeDominators(GrowableArray<BitVector*>* dominance_frontier); 152 void ComputeDominators(GrowableArray<BitVector*>* dominance_frontier);
153 153
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 GrowableArray<BlockEntryInstr*> preorder_; 191 GrowableArray<BlockEntryInstr*> preorder_;
192 GrowableArray<BlockEntryInstr*> postorder_; 192 GrowableArray<BlockEntryInstr*> postorder_;
193 GrowableArray<BlockEntryInstr*> reverse_postorder_; 193 GrowableArray<BlockEntryInstr*> reverse_postorder_;
194 bool invalid_dominator_tree_; 194 bool invalid_dominator_tree_;
195 ConstantInstr* constant_null_; 195 ConstantInstr* constant_null_;
196 }; 196 };
197 197
198 } // namespace dart 198 } // namespace dart
199 199
200 #endif // VM_FLOW_GRAPH_H_ 200 #endif // VM_FLOW_GRAPH_H_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698