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

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

Issue 10446080: Address review comments from https://chromiumcodereview.appspot.com/10454049/. (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
« no previous file with comments | « lib/compiler/implementation/ssa/tracer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/validate.dart
===================================================================
--- lib/compiler/implementation/ssa/validate.dart (revision 8142)
+++ lib/compiler/implementation/ssa/validate.dart (working copy)
@@ -56,7 +56,7 @@
markInvalid("Non-exit or throw block without successor");
}
- // Make sure that successors ids are always higher than the current one.
+ // Check that successors ids are always higher than the current one.
// TODO(floitsch): this is, of course, not true for back-branches.
if (block.id === null) markInvalid("block without id");
for (HBasicBlock successor in block.successors) {
@@ -67,7 +67,7 @@
}
}
- // Make sure that the entries in the dominated-list are sorted.
+ // Check that the entries in the dominated-list are sorted.
int lastId = 0;
for (HBasicBlock dominated in block.dominatedBlocks) {
if (!isValid) break;
@@ -83,8 +83,9 @@
if (!isValid) return;
block.forEachPhi(visitInstruction);
- // Make sure the parameters of a phi are dominating the
- // corresponding predecessor block.
+ // Check that the blocks of the parameters of a phi are dominating the
+ // corresponding predecessor block. Note that a block dominates
+ // itself.
block.forEachPhi((HPhi phi) {
for (int i = 0; i < phi.inputs.length; i++) {
HInstruction input = phi.inputs[i];
@@ -94,8 +95,8 @@
}
});
- // Make sure the inputs of an instruction dominate the
- // instruction.
+ // Check that the blocks of the inputs of an instruction dominate the
+ // instruction's block.
block.forEachInstruction((HInstruction instruction) {
for (HInstruction input in instruction.inputs) {
if (!input.block.dominates(block)) {
« no previous file with comments | « lib/compiler/implementation/ssa/tracer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698