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

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

Issue 11447008: invocation_mirror_test passed (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: co19 status updated Created 8 years 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: sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
index c4888b24b616c74b3b8c6622b1573bead56fc366..913ef4586ad6f4ce600665e57eeaeaea4a75f3c2 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
@@ -165,6 +165,21 @@ class Namer {
return '${privateName(lib, name)}\$${selector.argumentCount}$buffer';
}
+ /**
+ * Returns the internal name used for an invocation mirror of this selector.
+ */
+ String invocationMirrorInternalName(Selector selector) {
+ String nameString = selector.name.slowToString();
ngeoffray 2012/12/06 22:51:54 Remove this line.
Johnni Winther 2012/12/11 14:23:04 Removed in https://codereview.chromium.org/1141528
+ if (selector.isGetter()) {
+ return getterName(selector.library, selector.name);
+ } else if (selector.isSetter()) {
+ return setterName(selector.library, selector.name);
+ } else {
+ return instanceMethodInvocationName(
+ selector.library, selector.name, selector);
+ }
+ }
+
String instanceFieldName(LibraryElement libraryElement, SourceString name) {
String proposedName = privateName(libraryElement, name);
return safeName(proposedName);

Powered by Google App Engine
This is Rietveld 408576698