| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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.ir_nodes; | 4 library dart2js.ir_nodes; |
| 5 | 5 |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 import '../constants/values.dart' as values; | 7 import '../constants/values.dart' as values; |
| 8 import '../dart_types.dart' show DartType, InterfaceType, TypeVariableType; | 8 import '../dart_types.dart' show DartType, InterfaceType, TypeVariableType; |
| 9 import '../elements/elements.dart'; | 9 import '../elements/elements.dart'; |
| 10 import '../io/source_information.dart' show SourceInformation; | 10 import '../io/source_information.dart' show SourceInformation; |
| 11 import '../types/types.dart' show TypeMask; | 11 import '../types/types.dart' show TypeMask; |
| 12 import '../universe/universe.dart' show Selector; | 12 import '../universe/selector.dart' show Selector; |
| 13 | 13 |
| 14 import 'builtin_operator.dart'; | 14 import 'builtin_operator.dart'; |
| 15 export 'builtin_operator.dart'; | 15 export 'builtin_operator.dart'; |
| 16 | 16 |
| 17 // These imports are only used for the JavaScript specific nodes. If we want to | 17 // These imports are only used for the JavaScript specific nodes. If we want to |
| 18 // support more than one native backend, we should probably create better | 18 // support more than one native backend, we should probably create better |
| 19 // abstractions for native code and its type and effect system. | 19 // abstractions for native code and its type and effect system. |
| 20 import '../js/js.dart' as js show Template; | 20 import '../js/js.dart' as js show Template; |
| 21 import '../native/native.dart' as native show NativeBehavior; | 21 import '../native/native.dart' as native show NativeBehavior; |
| 22 | 22 |
| (...skipping 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1752 /// Visit a just-deleted subterm and unlink all [Reference]s in it. | 1752 /// Visit a just-deleted subterm and unlink all [Reference]s in it. |
| 1753 class RemovalVisitor extends RecursiveVisitor { | 1753 class RemovalVisitor extends RecursiveVisitor { |
| 1754 processReference(Reference reference) { | 1754 processReference(Reference reference) { |
| 1755 reference.unlink(); | 1755 reference.unlink(); |
| 1756 } | 1756 } |
| 1757 | 1757 |
| 1758 static void remove(Node node) { | 1758 static void remove(Node node) { |
| 1759 (new RemovalVisitor()).visit(node); | 1759 (new RemovalVisitor()).visit(node); |
| 1760 } | 1760 } |
| 1761 } | 1761 } |
| OLD | NEW |