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

Unified Diff: lib/compiler/implementation/ssa/nodes.dart

Issue 10454049: Validate that all instructions dominate their inputs. And fix a bug where that did not happen. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: lib/compiler/implementation/ssa/nodes.dart
===================================================================
--- lib/compiler/implementation/ssa/nodes.dart (revision 8084)
+++ lib/compiler/implementation/ssa/nodes.dart (working copy)
@@ -661,6 +661,14 @@
}
}
+ void forEachInstruction(void f(HInstruction instruction)) {
+ HInstruction current = first;
+ while (current !== null) {
Lasse Reichstein Nielsen 2012/05/30 09:35:14 A block must have a non-null first instruction (ri
ngeoffray 2012/05/30 10:19:07 It might be safer to keep it as-is in case one use
+ f(current);
+ current = current.next;
+ }
+ }
+
bool isValid() {
assert(isClosed());
HValidator validator = new HValidator();
@@ -1664,6 +1672,7 @@
class HTry extends HControlFlow {
HParameterValue exception;
+ HBasicBlock catchBlock;
HBasicBlock finallyBlock;
HTry() : super(const <HInstruction>[]);
toString() => 'try';

Powered by Google App Engine
This is Rietveld 408576698