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

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

Issue 14251021: Move invokeOn to InstanceMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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/ssa/builder.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index 971ccf8ba6f5a0e1efa19a749d9cfb2216368ab1..4778f2639376eecabd15a414b29dc818a13122da 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -3136,10 +3136,10 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
ClassElement cls = currentElement.getEnclosingClass();
Element element = cls.lookupSuperMember(Compiler.NO_SUCH_METHOD);
if (element.enclosingElement.declaration != compiler.objectClass) {
- // Register the call as dynamic if [:noSuchMethod:] on the super class
- // is _not_ the default implementation from [:Object:], in case
- // the [:noSuchMethod:] implementation does an [:invokeOn:] on
- // the invocation mirror.
+ // Register the call as dynamic if [noSuchMethod] on the super
+ // class is _not_ the default implementation from [Object], in
+ // case the [noSuchMethod] implementation calls
+ // [JSInvocationMirror._invokeOn].
compiler.enqueuer.codegen.registerSelectorUse(selector);
}
HStatic target = new HStatic(element);

Powered by Google App Engine
This is Rietveld 408576698