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

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

Issue 11413184: Create specialized versions of getInterceptor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
===================================================================
--- 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;

Powered by Google App Engine
This is Rietveld 408576698