Chromium Code Reviews| 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); |
|
ngeoffray
2012/06/15 20:12:59
I think putting such considerations into the new S
Søren Gjesse
2012/06/18 06:40:36
I will move it to the new SSA phase when it is in
|
| 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. |