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

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

Issue 10171007: Reapply "Only emit typeguards if we think they are valuable." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « frog/tests/leg/src/BuiltinInterceptorTest.dart ('k') | frog/tests/leg/src/GVNTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg/src/CodeMotionTest.dart
diff --git a/frog/tests/leg/src/CodeMotionTest.dart b/frog/tests/leg/src/CodeMotionTest.dart
index f201a295855bb6bc679924dca46a7b5f0987761d..141348d358595ba8a570d3eb9e26e2c13f69c8a0 100644
--- a/frog/tests/leg/src/CodeMotionTest.dart
+++ b/frog/tests/leg/src/CodeMotionTest.dart
@@ -6,11 +6,13 @@
final String TEST_ONE = @"""
foo(int param0, int param1, bool param2) {
- var x = param0 + 5; // '+' is now GVNed.
- if (param2) {
- print(param0 + param1);
- } else {
- print(param0 + param1);
+ for (int i = 0; i < 1; i++) {
+ var x = param0 + 5; // '+' is now GVNed.
+ if (param2) {
+ print(param0 + param1);
+ } else {
+ print(param0 + param1);
+ }
}
}
""";
« no previous file with comments | « frog/tests/leg/src/BuiltinInterceptorTest.dart ('k') | frog/tests/leg/src/GVNTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698