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

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

Issue 14986002: Make static tear-off closures a class, like instance tear-off closures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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: sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/js_backend/namer.dart (revision 22664)
+++ sdk/lib/_internal/compiler/implementation/js_backend/namer.dart (working copy)
@@ -735,6 +735,11 @@
return getMappedGlobalName("$getterPrefix${getName(element)}");
}
+ String getStaticClosureName(Element element) {
+ assert(Elements.isStaticOrTopLevelFunction(element));
+ return getMappedGlobalName("${getName(element)}\$closure");
+ }
+
String isolatePropertiesAccess(Element element) {
return "$isolateName.$isolatePropertiesName.${getName(element)}";
}
@@ -752,6 +757,10 @@
return "$CURRENT_ISOLATE.${getLazyInitializerName(element)}";
}
+ String isolateStaticClosureAccess(Element element) {
+ return "$CURRENT_ISOLATE.${getStaticClosureName(element)}";
+ }
+
String operatorIsPrefix() => r'$is';
String operatorAsPrefix() => r'$as';

Powered by Google App Engine
This is Rietveld 408576698