| 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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 break; | 627 break; |
| 628 case StaticUseKind.FIELD_GET: | 628 case StaticUseKind.FIELD_GET: |
| 629 case StaticUseKind.FIELD_SET: | 629 case StaticUseKind.FIELD_SET: |
| 630 case StaticUseKind.CLOSURE: | 630 case StaticUseKind.CLOSURE: |
| 631 // TODO(johnniwinther): Avoid this. Currently [FIELD_GET] and | 631 // TODO(johnniwinther): Avoid this. Currently [FIELD_GET] and |
| 632 // [FIELD_SET] contains [BoxFieldElement]s which we cannot enqueue. | 632 // [FIELD_SET] contains [BoxFieldElement]s which we cannot enqueue. |
| 633 // Also [CLOSURE] contains [LocalFunctionElement] which we cannot | 633 // Also [CLOSURE] contains [LocalFunctionElement] which we cannot |
| 634 // enqueue. | 634 // enqueue. |
| 635 addElement = false; | 635 addElement = false; |
| 636 break; | 636 break; |
| 637 case StaticUseKind.SUPER_FIELD_SET: | |
| 638 case StaticUseKind.SUPER_TEAR_OFF: | 637 case StaticUseKind.SUPER_TEAR_OFF: |
| 639 case StaticUseKind.GENERAL: | 638 case StaticUseKind.GENERAL: |
| 640 break; | 639 break; |
| 641 } | 640 } |
| 642 if (addElement) { | 641 if (addElement) { |
| 643 addToWorkList(element); | 642 addToWorkList(element); |
| 644 } | 643 } |
| 645 } | 644 } |
| 646 | 645 |
| 647 void registerTypeUse(TypeUse typeUse) { | 646 void registerTypeUse(TypeUse typeUse) { |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 @override | 1032 @override |
| 1034 void processStaticUse(Enqueuer enqueuer, StaticUse staticUse) { | 1033 void processStaticUse(Enqueuer enqueuer, StaticUse staticUse) { |
| 1035 enqueuer.registerStaticUseInternal(staticUse); | 1034 enqueuer.registerStaticUseInternal(staticUse); |
| 1036 } | 1035 } |
| 1037 | 1036 |
| 1038 @override | 1037 @override |
| 1039 void processDynamicUse(Enqueuer enqueuer, DynamicUse dynamicUse) { | 1038 void processDynamicUse(Enqueuer enqueuer, DynamicUse dynamicUse) { |
| 1040 enqueuer.handleUnseenSelectorInternal(dynamicUse); | 1039 enqueuer.handleUnseenSelectorInternal(dynamicUse); |
| 1041 } | 1040 } |
| 1042 } | 1041 } |
| OLD | NEW |