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

Unified Diff: dart/frog/leg/ssa/closure.dart

Issue 9447100: Return null from stringValue and call slowToString() instead of toString(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: changes Created 8 years, 10 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 | « dart/frog/leg/ssa/builder.dart ('k') | dart/frog/leg/ssa/codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/ssa/closure.dart
diff --git a/dart/frog/leg/ssa/closure.dart b/dart/frog/leg/ssa/closure.dart
index 08fca6f28e46907659c1ef73459e2b296004e609..374cfac0179dd0e0675a553ad22342841b454896 100644
--- a/dart/frog/leg/ssa/closure.dart
+++ b/dart/frog/leg/ssa/closure.dart
@@ -241,7 +241,7 @@ class ClosureTranslator extends AbstractVisitor {
currentFunctionElement);
}
// TODO(floitsch): construct better boxed names.
- String elementName = element.name.toString();
+ String elementName = element.name.slowToString();
// We are currently using the name in an HForeign which could replace
// "$X" with something else.
String escaped = elementName.replaceAll("\$", "_");
« no previous file with comments | « dart/frog/leg/ssa/builder.dart ('k') | dart/frog/leg/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698