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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2060183002: Serialize metadata (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup and fixes Created 4 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index 68f11ff1a6c850f5e6f7c48332e52c50307320ed..1b0d551eff16e7ff944a5eab6c432698094280ca 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -2300,7 +2300,6 @@ class JavaScriptBackend extends Backend {
reporter.log('Retaining metadata.');
compiler.libraryLoader.libraries.forEach(retainMetadataOf);
-
if (enqueuer.isResolutionQueue) {
/// Register the constant value of [metadata] as live in resolution.
void registerMetadataConstant(MetadataAnnotation metadata) {
@@ -2350,7 +2349,8 @@ class JavaScriptBackend extends Backend {
// TODO(johnniwinther): We should have access to all recently processed
// elements and process these instead.
- compiler.enqueuer.resolution.processedElements.forEach(processElementMetadata);
+ compiler.enqueuer.resolution.processedElements
+ .forEach(processElementMetadata);
}
void onQueueClosed() {
@@ -3075,6 +3075,8 @@ class Dependency {
final Element annotatedElement;
const Dependency(this.constant, this.annotatedElement);
+
+ String toString() => '$annotatedElement:${constant.toStructuredText()}';
}
class JavaScriptImpactStrategy extends ImpactStrategy {

Powered by Google App Engine
This is Rietveld 408576698