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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart

Issue 350903002: Move validation to validate.dart and add comments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Check for critical edges. Created 6 years, 6 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: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
index 70f09a6bdad19131db8f522bcebb0387605bf217..e4848faa8b242b187f8e4dae8cc915a38b41e24c 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
@@ -755,12 +755,6 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
HExpressionInformation condition = info.condition;
bool isConditionExpression = isJSCondition(condition);
- // Assert that the block we inserted to avoid critical edges satisfies
- // basic assumptions.
- assert(!condition.end.successors.last.isEmpty);
- assert(condition.end.successors.last.first is HGoto);
- assert(condition.end.successors.last.first.next == null);
-
js.Loop loop;
switch (info.kind) {

Powered by Google App Engine
This is Rietveld 408576698