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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/compiler.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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 ItemCompilationContext createItemCompilationContext() { 271 ItemCompilationContext createItemCompilationContext() {
272 return new ItemCompilationContext(); 272 return new ItemCompilationContext();
273 } 273 }
274 274
275 bool classNeedsRti(ClassElement cls); 275 bool classNeedsRti(ClassElement cls);
276 bool methodNeedsRti(FunctionElement function); 276 bool methodNeedsRti(FunctionElement function);
277 277
278 /// Called during codegen when [constant] has been used. 278 /// Called during codegen when [constant] has been used.
279 void registerCompileTimeConstant(Constant constant, Registry registry) {} 279 void registerCompileTimeConstant(Constant constant, Registry registry) {}
280 280
281 /// Called during resolution when a metadata [constant] for [annotatedElement] 281 /// Called during resolution when a constant value for [metadata] on
282 /// has been evaluated. 282 /// [annotatedElement] has been evaluated.
283 void registerMetadataConstant(Constant constant, 283 void registerMetadataConstant(MetadataAnnotation metadata,
284 Element annotatedElement, 284 Element annotatedElement,
285 Registry registry) {} 285 Registry registry) {}
286 286
287 /// Called during resolution to notify to the backend that a class is 287 /// Called during resolution to notify to the backend that a class is
288 /// being instantiated. 288 /// being instantiated.
289 void registerInstantiatedClass(ClassElement cls, 289 void registerInstantiatedClass(ClassElement cls,
290 Enqueuer enqueuer, 290 Enqueuer enqueuer,
291 Registry registry) {} 291 Registry registry) {}
292 292
293 /// Register an is check to the backend. 293 /// Register an is check to the backend.
(...skipping 1830 matching lines...) Expand 10 before | Expand all | Expand 10 after
2124 int warnings = 0; 2124 int warnings = 0;
2125 int hints = 0; 2125 int hints = 0;
2126 } 2126 }
2127 2127
2128 class GenericTask extends CompilerTask { 2128 class GenericTask extends CompilerTask {
2129 final String name; 2129 final String name;
2130 2130
2131 GenericTask(this.name, Compiler compiler) 2131 GenericTask(this.name, Compiler compiler)
2132 : super(compiler); 2132 : super(compiler);
2133 } 2133 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698