Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: pkg/compiler/lib/src/enqueue.dart

Issue 1435053002: Register super field set explicitly in the universe. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Checked mode fix Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/program_builder/field_visitor.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/program_builder/field_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698