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

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

Issue 1642493002: Add type info to JSArray. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 c2ba50ca05f97c8092cfef4aba4e921047c60e9d..7407ef7a094f4b9a45eb6a160be0965e123c063e 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -1250,6 +1250,10 @@ class JavaScriptBackend extends Backend {
addInterceptors(helpers.jsFixedArrayClass, enqueuer, registry);
addInterceptors(helpers.jsExtendableArrayClass, enqueuer, registry);
addInterceptors(helpers.jsUnmodifiableArrayClass, enqueuer, registry);
+ // Literal lists can be translated into calls to these functions:
+ enqueueInResolution(helpers.jsArrayTypedConstructor, registry);
+ enqueueInResolution(helpers.setRuntimeTypeInfo, registry);
+ enqueueInResolution(helpers.getTypeArgumentByIndex, registry);
} else if (cls == coreClasses.intClass ||
cls == helpers.jsIntClass) {
addInterceptors(helpers.jsIntClass, enqueuer, registry);
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/compiler/lib/src/js_backend/backend_impact.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698