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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/resolution/registry.dart

Issue 541683002: Generate needed classes for constant maps in metadata. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of resolution; 5 part of resolution;
6 6
7 /// [ResolutionRegistry] collects all resolution information. It stores node 7 /// [ResolutionRegistry] collects all resolution information. It stores node
8 /// related information in a [TreeElements] mapping and registers calls with 8 /// related information in a [TreeElements] mapping and registers calls with
9 /// [Backend], [World] and [Enqueuer]. 9 /// [Backend], [World] and [Enqueuer].
10 // TODO(johnniwinther): Split this into an interface and implementation class. 10 // TODO(johnniwinther): Split this into an interface and implementation class.
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 } 198 }
199 199
200 void registerInstantiatedClass(ClassElement element) { 200 void registerInstantiatedClass(ClassElement element) {
201 world.registerInstantiatedClass(element, this); 201 world.registerInstantiatedClass(element, this);
202 } 202 }
203 203
204 void registerLazyField() { 204 void registerLazyField() {
205 backend.resolutionCallbacks.onLazyField(this); 205 backend.resolutionCallbacks.onLazyField(this);
206 } 206 }
207 207
208 void registerMetadataConstant(Constant constant, Element annotatedElement) { 208 void registerMetadataConstant(MetadataAnnotation metadata,
209 backend.registerMetadataConstant(constant, annotatedElement, this); 209 Element annotatedElement) {
210 backend.registerMetadataConstant(metadata, annotatedElement, this);
210 } 211 }
211 212
212 void registerThrowRuntimeError() { 213 void registerThrowRuntimeError() {
213 backend.resolutionCallbacks.onThrowRuntimeError(this); 214 backend.resolutionCallbacks.onThrowRuntimeError(this);
214 } 215 }
215 216
216 void registerTypeVariableBoundCheck() { 217 void registerTypeVariableBoundCheck() {
217 backend.resolutionCallbacks.onTypeVariableBoundCheck(this); 218 backend.resolutionCallbacks.onTypeVariableBoundCheck(this);
218 } 219 }
219 220
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 359
359 void registerAssert(Send node) { 360 void registerAssert(Send node) {
360 mapping.setAssert(node); 361 mapping.setAssert(node);
361 backend.resolutionCallbacks.onAssert(node, this); 362 backend.resolutionCallbacks.onAssert(node, this);
362 } 363 }
363 364
364 bool isAssert(Send node) { 365 bool isAssert(Send node) {
365 return mapping.isAssert(node); 366 return mapping.isAssert(node);
366 } 367 }
367 } 368 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/resolution/members.dart ('k') | tests/lib/mirrors/metadata_const_map_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698