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

Unified Diff: dart/pkg/compiler/lib/src/ssa/optimize.dart

Issue 828413004: Don’t exit prematurely if compilation failed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 5 years, 11 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: dart/pkg/compiler/lib/src/ssa/optimize.dart
diff --git a/dart/pkg/compiler/lib/src/ssa/optimize.dart b/dart/pkg/compiler/lib/src/ssa/optimize.dart
index 38bf3cf0683a172f90af249ccff31467ca8e90e1..9aa51f0d21e1b0f8ab51293b1fbabb625c6fedc3 100644
--- a/dart/pkg/compiler/lib/src/ssa/optimize.dart
+++ b/dart/pkg/compiler/lib/src/ssa/optimize.dart
@@ -1843,6 +1843,7 @@ class SsaLoadElimination extends HBaseVisitor implements OptimizationPhase {
memorySet.registerAllocation(instruction);
int argumentIndex = 0;
instruction.element.forEachInstanceField((_, Element member) {
+ if (compiler.elementHasCompileTimeError(member)) return;
memorySet.registerFieldValue(
member, instruction, instruction.inputs[argumentIndex++]);
}, includeSuperAndInjectedMembers: true);

Powered by Google App Engine
This is Rietveld 408576698