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

Unified Diff: tests/language/recursive_calls_test.dart

Issue 19250002: Support for inlining small methods (independent of they're called inside a loop or not) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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/language/recursive_calls_test.dart
diff --git a/tests/compiler/dart2js_native/is_check_test.dart b/tests/language/recursive_calls_test.dart
similarity index 72%
copy from tests/compiler/dart2js_native/is_check_test.dart
copy to tests/language/recursive_calls_test.dart
index db045025b43c3a74fcc4bfe3f987650a3a66db7e..9a44ea6401adcd6a236707a360fca1218c00fd04 100644
--- a/tests/compiler/dart2js_native/is_check_test.dart
+++ b/tests/language/recursive_calls_test.dart
@@ -4,9 +4,10 @@
import "package:expect/expect.dart";
-class A native "A" {}
+int bar(x) => foo(x+1);
+int foo(x) => x > 9 ? x : bar(x);
main() {
- var a = [new Object()];
- Expect.isFalse(a[0] is A);
+ Expect.equals(foo(int.parse("1")), 10);
}
+

Powered by Google App Engine
This is Rietveld 408576698