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

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

Issue 23063003: Fix issue 12023 by avoiding a critical edge in the SSA graph with a switch statement. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (revision 26117)
+++ sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (working copy)
@@ -700,7 +700,7 @@
currentContainer = new js.Block.empty();
cases.add(new js.Case(pop(), currentContainer));
}
- if (i == info.matchExpressions.length - 1 && info.hasDefault) {
+ if (i == info.matchExpressions.length - 1) {
currentContainer = new js.Block.empty();
cases.add(new js.Default(currentContainer));
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('k') | sdk/lib/_internal/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698