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

Unified Diff: tests/compiler/dart2js/generate_at_use_site_test.dart

Issue 10873025: Inlining of static functions: applying Florian's CL. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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: tests/compiler/dart2js/generate_at_use_site_test.dart
===================================================================
--- tests/compiler/dart2js/generate_at_use_site_test.dart (revision 11216)
+++ tests/compiler/dart2js/generate_at_use_site_test.dart (working copy)
@@ -15,7 +15,11 @@
// for the result of recursively calling fib
// which introduces new variables because we
// now have multiple users.
-add(x, y) => x + y;
+// The 'if' has been added to avoid inlining of add.
+add(x, y) {
kasperl 2012/08/23 09:18:51 How hard would it be to use an annotation for this
ngeoffray 2012/08/23 12:19:03 I'll make sure we have that annotation once the an
+ if (x == -1) return x;
+ return x + y;
+}
""";
main() {

Powered by Google App Engine
This is Rietveld 408576698