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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index 377b470171758ba408a636c7d28eae9dd66b94b5..34e776c58f379804411e2a64bab82864391e973d 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -726,10 +726,11 @@ class JavaScriptBackend extends Backend {
}
}
- void registerMetadataConstant(Constant constant,
+ void registerMetadataConstant(MetadataAnnotation metadata,
Element annotatedElement,
Registry registry) {
assert(registry.isForResolution);
+ Constant constant = constants.getConstantForMetadata(metadata);
registerCompileTimeConstant(constant, registry);
metadataConstants.add(new Dependency(constant, annotatedElement));
}

Powered by Google App Engine
This is Rietveld 408576698