| 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 library dart2js.enqueue; | 5 library dart2js.enqueue; |
| 6 | 6 |
| 7 import 'dart:collection' show | 7 import 'dart:collection' show |
| 8 Queue; | 8 Queue; |
| 9 | 9 |
| 10 import 'common.dart'; | 10 import 'common.dart'; |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 break; | 633 break; |
| 634 case StaticUseKind.FIELD_GET: | 634 case StaticUseKind.FIELD_GET: |
| 635 case StaticUseKind.FIELD_SET: | 635 case StaticUseKind.FIELD_SET: |
| 636 case StaticUseKind.CLOSURE: | 636 case StaticUseKind.CLOSURE: |
| 637 // TODO(johnniwinther): Avoid this. Currently [FIELD_GET] and | 637 // TODO(johnniwinther): Avoid this. Currently [FIELD_GET] and |
| 638 // [FIELD_SET] contains [BoxFieldElement]s which we cannot enqueue. | 638 // [FIELD_SET] contains [BoxFieldElement]s which we cannot enqueue. |
| 639 // Also [CLOSURE] contains [LocalFunctionElement] which we cannot | 639 // Also [CLOSURE] contains [LocalFunctionElement] which we cannot |
| 640 // enqueue. | 640 // enqueue. |
| 641 addElement = false; | 641 addElement = false; |
| 642 break; | 642 break; |
| 643 case StaticUseKind.SUPER_FIELD_SET: |
| 643 case StaticUseKind.SUPER_TEAR_OFF: | 644 case StaticUseKind.SUPER_TEAR_OFF: |
| 644 case StaticUseKind.GENERAL: | 645 case StaticUseKind.GENERAL: |
| 645 break; | 646 break; |
| 646 } | 647 } |
| 647 if (addElement) { | 648 if (addElement) { |
| 648 addToWorkList(element); | 649 addToWorkList(element); |
| 649 } | 650 } |
| 650 } | 651 } |
| 651 | 652 |
| 652 void registerTypeUse(TypeUse typeUse) { | 653 void registerTypeUse(TypeUse typeUse) { |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 @override | 1068 @override |
| 1068 void visitStaticUse(StaticUse staticUse) { | 1069 void visitStaticUse(StaticUse staticUse) { |
| 1069 enqueuer.registerStaticUse(staticUse); | 1070 enqueuer.registerStaticUse(staticUse); |
| 1070 } | 1071 } |
| 1071 | 1072 |
| 1072 @override | 1073 @override |
| 1073 void visitTypeUse(TypeUse typeUse) { | 1074 void visitTypeUse(TypeUse typeUse) { |
| 1074 enqueuer.registerTypeUse(typeUse); | 1075 enqueuer.registerTypeUse(typeUse); |
| 1075 } | 1076 } |
| 1076 } | 1077 } |
| OLD | NEW |