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

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

Issue 1340093002: dart2js cps: Use more precise type inference for direct index access. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove unused field Created 5 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: 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 b637d3ea3bc9f1824f117a1e9dffcc6f316d7665..ec239d6add46e42be0be2a8c49e285182b64f123 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -332,6 +332,9 @@ class JavaScriptBackend extends Backend {
ClassElement jsInvocationMirrorClass;
+ ClassElement typedArrayClass;
+ ClassElement typedArrayOfIntClass;
+
/// If [true], the compiler will emit code that logs whenever a method is
/// called. When TRACE_METHOD is 'console' this will be logged
/// directly in the JavaScript console. When TRACE_METHOD is 'post' the
@@ -2155,6 +2158,9 @@ class JavaScriptBackend extends Backend {
htmlLibraryIsLoaded = true;
} else if (uri == PACKAGE_LOOKUP_MAP) {
lookupMapAnalysis.init(library);
+ } else if (uri == Uris.dart__native_typed_data) {
karlklose 2015/09/15 08:17:07 This is already done in Compiler.onLibraryScanned
asgerf 2015/09/15 10:46:14 NativeTypeData is not the same as NativeTypedArray
+ typedArrayClass = findClass('NativeTypedArray');
+ typedArrayOfIntClass = findClass('NativeTypedArrayOfInt');
}
annotations.onLibraryScanned(library);
});

Powered by Google App Engine
This is Rietveld 408576698