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

Unified Diff: lib/compiler/implementation/emitter.dart

Issue 10539104: Give static functions that have a getter a name. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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
« no previous file with comments | « no previous file | lib/compiler/implementation/namer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/emitter.dart
diff --git a/lib/compiler/implementation/emitter.dart b/lib/compiler/implementation/emitter.dart
index 99270ca09c8785cfe88e254b3574be63d1f1129b..9b20b8ca757dae611ea87b89c4985625f08d6bf6 100644
--- a/lib/compiler/implementation/emitter.dart
+++ b/lib/compiler/implementation/emitter.dart
@@ -650,6 +650,10 @@ function(collectedClasses) {
addParameterStubs(callElement, (String name, String value) {
buffer.add('$fieldAccess.$name = $value;\n');
});
+ // If a static function is used as a closure we need to add its name
+ // in case it is used in spawnFunction.
+ String fieldName = Namer.STATIC_CLOSURE_NAME_NAME;
+ buffer.add('$fieldAccess.$fieldName = "$staticName";\n');
}
}
« no previous file with comments | « no previous file | lib/compiler/implementation/namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698