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

Unified Diff: lib/compiler/implementation/resolver.dart

Issue 10917254: Move registering of interceptors to the JsBackend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address Kasper's comment. Created 8 years, 2 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
« no previous file with comments | « lib/compiler/implementation/js_backend/backend.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/resolver.dart
diff --git a/lib/compiler/implementation/resolver.dart b/lib/compiler/implementation/resolver.dart
index d08b6f60ca5ce0cc308a54015c56b5e351805294..ce3fac13c6da86e37f64c6ad9de0bba00c79a2e9 100644
--- a/lib/compiler/implementation/resolver.dart
+++ b/lib/compiler/implementation/resolver.dart
@@ -1719,17 +1719,7 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
world.registerStaticUse(target.declaration);
}
}
-
- if (target == null) {
ngeoffray 2012/10/08 13:50:39 Where is that check now?
karlklose 2012/10/08 13:59:36 I added it back. Thanks for catching that.
- // If we haven't found an element for this send, it might be a
- // dynamic send on a primitive value. If there is an interceptor
- // for that send, register it.
- var interceptor =
- new Interceptors(compiler).getStaticInterceptorBySelector(selector);
- if (interceptor !== null) {
- world.registerStaticUse(interceptor);
- }
- }
+ world.registerUsedSelector(selector);
}
visitLiteralInt(LiteralInt node) {
« no previous file with comments | « lib/compiler/implementation/js_backend/backend.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698