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

Side by Side Diff: pkg/compiler/lib/src/js_backend/mirrors_data.dart

Issue 3008793002: Use the entity model for dump_info. (Closed)
Patch Set: use codegen enqueuer Created 3 years, 3 months 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import '../common.dart'; 5 import '../common.dart';
6 import '../common_elements.dart'; 6 import '../common_elements.dart';
7 import '../compiler.dart'; 7 import '../compiler.dart';
8 import '../constants/values.dart'; 8 import '../constants/values.dart';
9 import '../elements/elements.dart' show AbstractFieldElement, Element; 9 import '../elements/elements.dart' show AbstractFieldElement, Element;
10 import '../elements/entities.dart'; 10 import '../elements/entities.dart';
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 bool retainMetadataOfTypedef(TypedefEntity element); 123 bool retainMetadataOfTypedef(TypedefEntity element);
124 bool retainMetadataOfClass(ClassEntity element); 124 bool retainMetadataOfClass(ClassEntity element);
125 bool retainMetadataOfMember(MemberEntity element); 125 bool retainMetadataOfMember(MemberEntity element);
126 126
127 /// Returns true if this element has to be enqueued due to 127 /// Returns true if this element has to be enqueued due to
128 /// mirror usage. Might be a subset of [referencedFromMirrorSystem] if 128 /// mirror usage. Might be a subset of [referencedFromMirrorSystem] if
129 /// normal tree shaking is still active ([isTreeShakingDisabled] is false). 129 /// normal tree shaking is still active ([isTreeShakingDisabled] is false).
130 bool isLibraryRequiredByMirrorSystem(LibraryEntity element); 130 bool isLibraryRequiredByMirrorSystem(LibraryEntity element);
131 bool isClassRequiredByMirrorSystem(ClassEntity element); 131 bool isClassRequiredByMirrorSystem(ClassEntity element);
132 bool isMemberRequiredByMirrorSystem(MemberEntity element); 132 bool isMemberRequiredByMirrorSystem(MemberEntity element);
133 bool isClassResolved(ClassEntity element);
133 } 134 }
134 135
135 abstract class MirrorsDataBuilder { 136 abstract class MirrorsDataBuilder {
136 void registerUsedMember(MemberEntity member); 137 void registerUsedMember(MemberEntity member);
137 138
138 /// Called by [MirrorUsageAnalyzerTask] after it has merged all @MirrorsUsed 139 /// Called by [MirrorUsageAnalyzerTask] after it has merged all @MirrorsUsed
139 /// annotations. The arguments corresponds to the unions of the corresponding 140 /// annotations. The arguments corresponds to the unions of the corresponding
140 /// fields of the annotations. 141 /// fields of the annotations.
141 void registerMirrorUsage( 142 void registerMirrorUsage(
142 Set<String> symbols, Set<Element> targets, Set<Element> metaTargets); 143 Set<String> symbols, Set<Element> targets, Set<Element> metaTargets);
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 } 708 }
708 709
709 /// Called when `const Symbol(name)` is seen. 710 /// Called when `const Symbol(name)` is seen.
710 void registerConstSymbol(String name) { 711 void registerConstSymbol(String name) {
711 symbolsUsed.add(name); 712 symbolsUsed.add(name);
712 if (name.endsWith('=')) { 713 if (name.endsWith('=')) {
713 symbolsUsed.add(name.substring(0, name.length - 1)); 714 symbolsUsed.add(name.substring(0, name.length - 1));
714 } 715 }
715 } 716 }
716 } 717 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698