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

Unified Diff: dart/frog/leg/native_handler.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/native_emitter.dart ('k') | dart/frog/leg/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/native_handler.dart
diff --git a/dart/frog/leg/native_handler.dart b/dart/frog/leg/native_handler.dart
index 47f79f7fb437f0579e434c54d54f2ac2d9ac6674..a54611b99a6499245331e84a1c00010f5a9caa27 100644
--- a/dart/frog/leg/native_handler.dart
+++ b/dart/frog/leg/native_handler.dart
@@ -134,7 +134,7 @@ void handleSsaNative(SsaBuilder builder, Send node) {
HInstruction thenInstruction;
void visitThen() {
SourceString jsCode = new SourceString(
- '$receiver${element.name}($foreignParameters)');
+ '$receiver${element.name.slowToString()}($foreignParameters)');
thenInstruction =
new HForeign(jsCode, const SourceString('Object'), inputs);
builder.add(thenInstruction);
« no previous file with comments | « dart/frog/leg/native_emitter.dart ('k') | dart/frog/leg/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698