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 part of ssa; | |
6 | |
7 abstract class OptimizationPhase { | 5 abstract class OptimizationPhase { |
8 String get name; | 6 String get name; |
9 void visitGraph(HGraph graph); | 7 void visitGraph(HGraph graph); |
10 } | 8 } |
11 | 9 |
12 class SsaOptimizerTask extends CompilerTask { | 10 class SsaOptimizerTask extends CompilerTask { |
13 final JavaScriptBackend backend; | 11 final JavaScriptBackend backend; |
14 SsaOptimizerTask(JavaScriptBackend backend) | 12 SsaOptimizerTask(JavaScriptBackend backend) |
15 : this.backend = backend, | 13 : this.backend = backend, |
16 super(backend.compiler); | 14 super(backend.compiler); |
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1339 } | 1337 } |
1340 | 1338 |
1341 // For other fields having setters in the generative constructor body, set | 1339 // For other fields having setters in the generative constructor body, set |
1342 // the type to UNKNOWN to avoid relying on the type set in the initializer | 1340 // the type to UNKNOWN to avoid relying on the type set in the initializer |
1343 // list. | 1341 // list. |
1344 allSetters.forEach((Element element) { | 1342 allSetters.forEach((Element element) { |
1345 backend.registerFieldConstructor(element, HType.UNKNOWN); | 1343 backend.registerFieldConstructor(element, HType.UNKNOWN); |
1346 }); | 1344 }); |
1347 } | 1345 } |
1348 } | 1346 } |
OLD | NEW |