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

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

Issue 14049010: Take noSuchMethod into account when computing the potential targets of a call. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/compiler.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/compiler.dart (revision 21607)
+++ sdk/lib/_internal/compiler/implementation/compiler.dart (working copy)
@@ -383,6 +383,8 @@
new Selector.getter(const SourceString('current'), null);
final Selector moveNextSelector =
new Selector.call(const SourceString('moveNext'), null, 0);
+ final Selector noSuchMethodSelector = new Selector.call(
+ Compiler.NO_SUCH_METHOD, null, Compiler.NO_SUCH_METHOD_ARG_COUNT);
bool enabledNoSuchMethod = false;
bool enabledRuntimeType = false;
@@ -807,8 +809,7 @@
isolateHelperLibrary.find(Compiler.START_ROOT_ISOLATE));
}
if (enabledNoSuchMethod) {
- Selector selector = new Selector.noSuchMethod();
- enqueuer.codegen.registerInvocation(NO_SUCH_METHOD, selector);
+ enqueuer.codegen.registerInvocation(NO_SUCH_METHOD, noSuchMethodSelector);
enqueuer.codegen.addToWorkList(createInvocationMirrorElement);
}
processQueue(enqueuer.codegen, main);
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698