Chromium Code Reviews| 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() { |