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

Unified Diff: frog/tests/leg/src/BuiltinInterceptorTest.dart

Issue 10165004: Only emit typeguards if we think they are valuable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 8 years, 8 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 | « no previous file | frog/tests/leg/src/CodeMotionTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg/src/BuiltinInterceptorTest.dart
diff --git a/frog/tests/leg/src/BuiltinInterceptorTest.dart b/frog/tests/leg/src/BuiltinInterceptorTest.dart
index df8a3745be31ae7bd716eb9b82f1ebe3e0c8d7d0..02fa66857a09bfb46f7093229d4cef7e208537ca 100644
--- a/frog/tests/leg/src/BuiltinInterceptorTest.dart
+++ b/frog/tests/leg/src/BuiltinInterceptorTest.dart
@@ -6,8 +6,11 @@
final String TEST_ONE = @"""
foo(String a) {
- // index into the parameter to make sure we'll get a type guard.
- print(a[0]);
+ // index into the parameter and move into a loop to make sure we'll get a
+ // type guard.
+ for (int i = 0; i < 1; i++) {
+ print(a[0]);
+ }
return a.length;
}
""";
« no previous file with comments | « no previous file | frog/tests/leg/src/CodeMotionTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698