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

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

Issue 10532158: Some cleanup of recompilation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed "Closure" 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
« no previous file with comments | « lib/compiler/implementation/enqueue.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/optimize.dart
diff --git a/lib/compiler/implementation/ssa/optimize.dart b/lib/compiler/implementation/ssa/optimize.dart
index ab0b54f1d689146ea7508cf6ebb1c50005375343..af319b4b597f770c952586141180811c68b5f503 100644
--- a/lib/compiler/implementation/ssa/optimize.dart
+++ b/lib/compiler/implementation/ssa/optimize.dart
@@ -589,12 +589,12 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
if (!isFinalOrConst &&
!compiler.codegenWorld.hasInvokedSetter(field, compiler) &&
!compiler.codegenWorld.hasFieldSetter(field, compiler)) {
- switch (compiler.pass) {
- case 1:
+ switch (compiler.phase) {
+ case Compiler.PHASE_COMPILING:
compiler.enqueuer.codegen.registerRecompilationCandidate(
work.element);
break;
- case 2:
+ case Compiler.PHASE_RECOMPILING:
// If field is not final or const but no setters are used then the
// field might be considered final anyway as it will be either
// un-initialized or initialized in the constructor initializer list.
« no previous file with comments | « lib/compiler/implementation/enqueue.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698