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

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

Issue 18156006: Fix minified signature generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Restrict use of fixed names to this-elements. Created 7 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 | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index e8abbb2a97ff4ae40ef4b5d1c29886b1c66cf337..396d510c88a60adda396d87cb337a4fdd8e4b79f 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -1367,7 +1367,9 @@ class CodeEmitterTask extends CompilerTask {
Element thisElement =
closureData.freeVariableMapping[closureData.thisElement];
if (thisElement != null) {
- String thisName = backend.namer.getName(thisElement);
+ String thisName = thisElement.hasFixedBackendName()
karlklose 2013/07/04 09:54:09 Is that always the case? Add an assert then?
Johnni Winther 2013/07/04 12:10:38 It seems so.
+ ? thisElement.fixedBackendName()
+ : backend.namer.getName(thisElement);
thisAccess = 'this.$thisName';
}
}
« no previous file with comments | « no previous file | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698