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

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

Issue 9418045: Support for native in leg, and start moving native tests to a specific test suite. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
Index: frog/leg/ssa/codegen.dart
===================================================================
--- frog/leg/ssa/codegen.dart (revision 4390)
+++ frog/leg/ssa/codegen.dart (working copy)
@@ -536,7 +536,11 @@
}
code = code.replaceAll('\$$i', name);
}
- buffer.add('($code)');
+ if (node.generateAtUseSite()) {
+ buffer.add('($code)');
+ } else {
+ buffer.add('$code');
+ }
}
visitForeignNew(HForeignNew node) {

Powered by Google App Engine
This is Rietveld 408576698