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

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

Issue 10660026: Don't allow statement-nodes in expression contexts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix test for checked mode. Created 8 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: lib/compiler/implementation/ssa/optimize.dart
diff --git a/lib/compiler/implementation/ssa/optimize.dart b/lib/compiler/implementation/ssa/optimize.dart
index c19202f4477c2d68714b1786bcc35f83c30cd835..27e382d4f6ac06bdf638c29d19c2a379134958bc 100644
--- a/lib/compiler/implementation/ssa/optimize.dart
+++ b/lib/compiler/implementation/ssa/optimize.dart
@@ -70,7 +70,7 @@ class SsaOptimizerTask extends CompilerTask {
// In order to generate correct code for the bailout version, we did not
// propagate types from the instruction to the type guard. We do it
// now to be able to optimize further.
- work.guards.forEach((HTypeGuard guard) { guard.isOn = true; });
+ work.guards.forEach((HTypeGuard guard) { guard.isEnabled = true; });
// We also need to insert range and integer checks for the type
// guards. Now that they claim to have a certain type, some
// depending instructions might become builtin (like native array

Powered by Google App Engine
This is Rietveld 408576698