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

Unified Diff: compiler/java/com/google/dart/compiler/backend/js/DollarMangler.java

Issue 8845002: Function type checking: Part Deux (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Nits checked Created 9 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: compiler/java/com/google/dart/compiler/backend/js/DollarMangler.java
diff --git a/compiler/java/com/google/dart/compiler/backend/js/DollarMangler.java b/compiler/java/com/google/dart/compiler/backend/js/DollarMangler.java
index 08d55ace75430cb105aa578b47028ebccb653ae0..648a0d75d74271d649caaf063a123fcbdc671ace 100644
--- a/compiler/java/com/google/dart/compiler/backend/js/DollarMangler.java
+++ b/compiler/java/com/google/dart/compiler/backend/js/DollarMangler.java
@@ -54,7 +54,7 @@ public class DollarMangler implements DartMangler {
private static final String HOISTED_CONSTRUCTOR_SUFFIX = "$HoistedConstructor";
private static final String HOISTED_STATIC_SUFFIX = "$HoistedStatic";
private static final String DYNAMIC_CLASS_NAME = "$_Dynamic_";
-
+ private static final String RTT_LOOKUP_NAME = "_$lookupRTT";
private static final String NATIVE_PREFIX = "native_";
@@ -411,4 +411,14 @@ public class DollarMangler implements DartMangler {
String holderName = element.getEnclosingElement().getName();
return NATIVE_PREFIX + holderName + "_" + encodedName;
}
+
+ @Override
+ public String mangleRttLookupMethod(MethodElement method, LibraryElement currentLibrary) {
+ return mangleNamedMethod(method, currentLibrary) + RTT_LOOKUP_NAME;
+ }
+
+ @Override
+ public String mangleRttLookupMethod(String methodName, LibraryElement currentLibrary) {
+ return mangleNamedMethod(methodName, currentLibrary) + RTT_LOOKUP_NAME;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698