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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 23819039: Create type masks lazily. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update cf. comment Created 7 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 9591e18d0b00bd6d6bddc063a50d3ac362a11f4c..6d32001cb0a370a711e4981779f0a1706432fb77 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -878,7 +878,10 @@ class JavaScriptBackend extends Backend {
enqueueInResolution(getCyclicThrowHelper(), elements);
}
- void registerTypeLiteral(Element element, TreeElements elements) {
+ void registerTypeLiteral(Element element,
+ Enqueuer enqueuer,
+ TreeElements elements) {
+ enqueuer.registerInstantiatedClass(typeImplementation, elements);
enqueueInResolution(getCreateRuntimeType(), elements);
// TODO(ahe): Might want to register [element] as an instantiated class
// when reflection is used. However, as long as we disable tree-shaking

Powered by Google App Engine
This is Rietveld 408576698