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

Side by Side Diff: pkg/compiler/lib/src/kernel/kernel_strategy.dart

Issue 2908153003: It's alive! (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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 library dart2js.kernel.frontend_strategy; 5 library dart2js.kernel.frontend_strategy;
6 6
7 import '../closure.dart'; 7 import '../closure.dart';
8 import '../common.dart'; 8 import '../common.dart';
9 import '../common_elements.dart'; 9 import '../common_elements.dart';
10 import '../common/backend_api.dart'; 10 import '../common/backend_api.dart';
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 /// Mock implementation of [MirrorsDataImpl]. 175 /// Mock implementation of [MirrorsDataImpl].
176 class MirrorsDataBuilderImpl extends MirrorsDataImpl { 176 class MirrorsDataBuilderImpl extends MirrorsDataImpl {
177 MirrorsDataBuilderImpl() : super(null, null, null); 177 MirrorsDataBuilderImpl() : super(null, null, null);
178 178
179 @override 179 @override
180 void registerUsedMember(MemberEntity member) {} 180 void registerUsedMember(MemberEntity member) {}
181 181
182 @override 182 @override
183 void computeMembersNeededForReflection( 183 void computeMembersNeededForReflection(
184 ResolutionWorldBuilder worldBuilder, ClosedWorld closedWorld) {} 184 ResolutionWorldBuilder worldBuilder, ClosedWorld closedWorld) {
185 // TODO(johnniwinther): Support dart:mirrors.
186 createImmutableSets();
187 }
185 188
186 @override 189 @override
187 void maybeMarkClosureAsNeededForReflection( 190 void maybeMarkClosureAsNeededForReflection(
188 ClosureClassElement globalizedElement, 191 ClosureClassElement globalizedElement,
189 FunctionElement callFunction, 192 FunctionElement callFunction,
190 FunctionElement function) {} 193 FunctionElement function) {}
191 194
192 @override 195 @override
193 void registerConstSymbol(String name) {} 196 void registerConstSymbol(String name) {}
194 197
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 return new MirrorsCodegenAnalysisImpl(); 235 return new MirrorsCodegenAnalysisImpl();
233 } 236 }
234 237
235 @override 238 @override
236 void onResolutionComplete() {} 239 void onResolutionComplete() {}
237 } 240 }
238 241
239 class MirrorsCodegenAnalysisImpl implements MirrorsCodegenAnalysis { 242 class MirrorsCodegenAnalysisImpl implements MirrorsCodegenAnalysis {
240 @override 243 @override
241 int get preMirrorsMethodCount { 244 int get preMirrorsMethodCount {
242 throw new UnimplementedError( 245 // TODO(johnniwinther): Implement this.
243 'MirrorsCodegenAnalysisImpl.preMirrorsMethodCount'); 246 return null;
244 } 247 }
245 248
246 @override 249 @override
247 void onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses) { 250 void onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses) {
248 throw new UnimplementedError('MirrorsCodegenAnalysisImpl.onQueueEmpty'); 251 // TODO(johnniwinther): Implement this.
249 } 252 }
250 } 253 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart ('k') | pkg/compiler/lib/src/resolution/resolution_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698