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

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

Issue 813873008: dart2js: Store mapTypeToInterceptor in embedded global. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 e57db6d69c23a474e257cdbdc6383e046327bd82..a60dda6186da8c76f2a84e07a1066c4d7b9ac825 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -182,14 +182,6 @@ class JavaScriptBackend extends Backend {
static const bool TRACE_CALLS = false;
Element traceHelper;
- /**
- * This element is a top-level variable (in generated output) that the
- * compiler initializes to a datastructure used to map from a Type to the
- * interceptor. See declaration of `mapTypeToInterceptor` in
- * `interceptors.dart`.
- */
- Element mapTypeToInterceptor;
-
TypeMask get stringType => compiler.typesTask.stringType;
TypeMask get doubleType => compiler.typesTask.doubleType;
TypeMask get intType => compiler.typesTask.intType;
@@ -1742,7 +1734,6 @@ class JavaScriptBackend extends Backend {
if (uri == DART_INTERCEPTORS) {
getInterceptorMethod = findMethod('getInterceptor');
interceptedNames = findVariable('interceptedNames');
- mapTypeToInterceptor = findVariable('mapTypeToInterceptor');
getNativeInterceptorMethod = findMethod('getNativeInterceptor');
List<ClassElement> classes = [

Powered by Google App Engine
This is Rietveld 408576698