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

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

Issue 17389003: interceptedNames should include all interceptor method generated, not just the ones called. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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: dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index 5afa2a075d9e2a7a706fc45843a160c024fce8ef..8567adb1d0d08ac55742a1b4016569174eb74638 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -98,13 +98,6 @@ class JavaScriptBackend extends Backend {
ClassElement jsIndexingBehaviorInterface;
/**
- * A collection of selectors of intercepted method calls. The
- * emitter uses this set to generate the [:ObjectInterceptor:] class
- * whose members just forward the call to the intercepted receiver.
- */
- final Set<Selector> usedInterceptors;
-
- /**
* A collection of selectors that must have a one shot interceptor
* generated.
*/
@@ -165,7 +158,6 @@ class JavaScriptBackend extends Backend {
JavaScriptBackend(Compiler compiler, bool generateSourceMap, bool disableEval)
: namer = determineNamer(compiler),
- usedInterceptors = new Set<Selector>(),
oneShotInterceptors = new Map<String, Selector>(),
interceptedElements = new Map<SourceString, Set<Element>>(),
rti = new RuntimeTypes(compiler),
@@ -193,10 +185,6 @@ class JavaScriptBackend extends Backend {
return false;
}
- void addInterceptedSelector(Selector selector) {
- usedInterceptors.add(selector);
- }
-
String registerOneShotInterceptor(Selector selector) {
Set<ClassElement> classes = getInterceptedClassesOn(selector.name);
String name = namer.getOneShotInterceptorName(selector, classes);

Powered by Google App Engine
This is Rietveld 408576698