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

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

Issue 2023863002: Register deserialized lazy statics. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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/constant_handler_javascript.dart
diff --git a/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart b/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart
index da3efb5da069f94b0da1c6ec0462ab93b50783e3..36bd7685b5d775a19384dd664d992b539edb4680 100644
--- a/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart
+++ b/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart
@@ -132,11 +132,16 @@ class JavaScriptConstantCompiler extends ConstantCompilerBase
element, definitions,
isConst: isConst, checkType: checkType);
if (!isConst && value == null) {
- lazyStatics.add(element);
+ registerLazyStatic(element);
}
return value;
}
+ @override
+ void registerLazyStatic(FieldElement element) {
+ lazyStatics.add(element);
+ }
+
void addCompileTimeConstantForEmission(ConstantValue constant) {
compiledConstants.add(constant);
}

Powered by Google App Engine
This is Rietveld 408576698