| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library dart2js.cps_ir.scalar_replacement; |
| 4 | 5 |
| 5 import 'optimizers.dart'; | 6 import 'optimizers.dart'; |
| 6 | 7 |
| 7 import 'dart:collection' show Queue; | 8 import 'dart:collection' show Queue; |
| 8 | 9 |
| 9 import '../closure.dart' show | 10 import '../closure.dart' show |
| 10 ClosureClassElement, Identifiers; | 11 ClosureClassElement, Identifiers; |
| 11 import '../common/names.dart' show | 12 import '../common/names.dart' show |
| 12 Selectors, Identifiers; | 13 Selectors, Identifiers; |
| 13 import '../compiler.dart' as dart2js show | 14 import '../compiler.dart' as dart2js show |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 class ScalarReplacementRemovalVisitor extends RecursiveVisitor { | 243 class ScalarReplacementRemovalVisitor extends RecursiveVisitor { |
| 243 ScalarReplacementVisitor process; | 244 ScalarReplacementVisitor process; |
| 244 | 245 |
| 245 ScalarReplacementRemovalVisitor(this.process); | 246 ScalarReplacementRemovalVisitor(this.process); |
| 246 | 247 |
| 247 processReference(Reference reference) { | 248 processReference(Reference reference) { |
| 248 process.reconsider(reference.definition); | 249 process.reconsider(reference.definition); |
| 249 reference.unlink(); | 250 reference.unlink(); |
| 250 } | 251 } |
| 251 } | 252 } |
| OLD | NEW |