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

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: array changes 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 c5d2014ec5c7fb68960c575142c4612656785779..c7b868fbefd26c18b371d776295b2f82b1cca6cc 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -1251,6 +1251,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);

Powered by Google App Engine
This is Rietveld 408576698