| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 interface OptimizationPhase { | 5 interface OptimizationPhase { | 
| 6   String get name(); | 6   String get name; | 
| 7   void visitGraph(HGraph graph); | 7   void visitGraph(HGraph graph); | 
| 8 } | 8 } | 
| 9 | 9 | 
| 10 class SsaOptimizerTask extends CompilerTask { | 10 class SsaOptimizerTask extends CompilerTask { | 
| 11   final JavaScriptBackend backend; | 11   final JavaScriptBackend backend; | 
| 12   SsaOptimizerTask(JavaScriptBackend backend) | 12   SsaOptimizerTask(JavaScriptBackend backend) | 
| 13     : this.backend = backend, | 13     : this.backend = backend, | 
| 14       super(backend.compiler); | 14       super(backend.compiler); | 
| 15   String get name => 'SSA optimizer'; | 15   String get name => 'SSA optimizer'; | 
| 16   Compiler get compiler => backend.compiler; | 16   Compiler get compiler => backend.compiler; | 
| (...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1345       // this type for the field is still a strong signal | 1345       // this type for the field is still a strong signal | 
| 1346       // indicating the expected type of the field. | 1346       // indicating the expected type of the field. | 
| 1347       types[field] = type; | 1347       types[field] = type; | 
| 1348     } else { | 1348     } else { | 
| 1349       // If there are no invoked setters we know the type of | 1349       // If there are no invoked setters we know the type of | 
| 1350       // this field for sure. | 1350       // this field for sure. | 
| 1351       field.guaranteedType = type; | 1351       field.guaranteedType = type; | 
| 1352     } | 1352     } | 
| 1353   } | 1353   } | 
| 1354 } | 1354 } | 
| OLD | NEW | 
|---|