Index: sdk/lib/_internal/compiler/implementation/js_backend/namer.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/js_backend/namer.dart (revision 15381) |
+++ sdk/lib/_internal/compiler/implementation/js_backend/namer.dart (working copy) |
@@ -316,6 +316,14 @@ |
return name; |
} |
+ String getSpecializedName(Element element, Collection<ClassElement> classes) { |
+ StringBuffer buffer = new StringBuffer('${getName(element)}\$'); |
+ for (ClassElement cls in classes) { |
+ buffer.add(getName(cls)); |
+ } |
+ return getMappedGlobalName(buffer.toString()); |
+ } |
+ |
String getBailoutName(Element element) { |
String name = bailoutNames[element]; |
if (name != null) return name; |