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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 11368162: Fix for issue 6628: no need to use an interceptor if the send was resolved. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « no previous file | tests/language/runtime_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/builder.dart (revision 14723)
+++ sdk/lib/_internal/compiler/implementation/ssa/builder.dart (working copy)
@@ -2283,7 +2283,7 @@
assert(selector.isGetter());
SourceString getterName = selector.name;
Element staticInterceptor = null;
- if (methodInterceptionEnabled) {
+ if (elements[send] == null && methodInterceptionEnabled) {
staticInterceptor = interceptors.getStaticGetInterceptor(getterName);
}
bool hasGetter = compiler.world.hasAnyUserDefinedGetter(selector);
@@ -2346,7 +2346,7 @@
assert(selector.isSetter());
SourceString setterName = selector.name;
Element staticInterceptor = null;
- if (methodInterceptionEnabled) {
+ if (elements[send] == null && methodInterceptionEnabled) {
staticInterceptor = interceptors.getStaticSetInterceptor(setterName);
}
bool hasSetter = compiler.world.hasAnyUserDefinedSetter(selector);
@@ -2616,7 +2616,7 @@
}
Element interceptor = null;
- if (methodInterceptionEnabled && node.receiver != null) {
+ if (methodInterceptionEnabled && elements[node] == null) {
interceptor = interceptors.getStaticInterceptor(dartMethodName,
node.argumentCount());
}
« no previous file with comments | « no previous file | tests/language/runtime_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698