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

Unified Diff: lib/compiler/implementation/js_backend/emitter.dart

Issue 10825337: Add name and library to selectors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge from master. Created 8 years, 4 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: lib/compiler/implementation/js_backend/emitter.dart
diff --git a/lib/compiler/implementation/js_backend/emitter.dart b/lib/compiler/implementation/js_backend/emitter.dart
index 43a43ae399641664fd5889888b53e383bbd88762..f407ae2d0ea9c3ddedec7f5fec2c1919f3cf1eab 100644
--- a/lib/compiler/implementation/js_backend/emitter.dart
+++ b/lib/compiler/implementation/js_backend/emitter.dart
@@ -621,11 +621,12 @@ function(collectedClasses) {
// class. If so, we let the native emitter deal with it.
if (compiler.enabledNoSuchMethod) {
SourceString noSuchMethodName = Compiler.NO_SUCH_METHOD;
+ Selector noSuchMethodSelector = new Selector.noSuchMethod();
for (ClassElement element in sortedClasses) {
if (!element.isNative()) continue;
Element member = element.lookupLocalMember(noSuchMethodName);
if (member === null) continue;
- if (Selector.INVOCATION_2.applies(member, compiler)) {
+ if (noSuchMethodSelector.applies(member, compiler)) {
nativeEmitter.handleNoSuchMethod = true;
break;
}
@@ -1052,8 +1053,8 @@ $classesCollector.$mangledName = {'':
// Since we pass the closurized version of the main method to
// the isolate method, we must make sure that it exists.
if (!compiler.codegenWorld.staticFunctionsNeedingGetter.contains(appMain)) {
- String invocationName =
- "${namer.closureInvocationName(Selector.INVOCATION_0)}";
+ Selector selector = new Selector.callAny(0);
+ String invocationName = "${namer.closureInvocationName(selector)}";
mainEnsureGetter = "$mainAccess.$invocationName = $mainAccess";
}

Powered by Google App Engine
This is Rietveld 408576698