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

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

Issue 9035008: Do not generate at use site loop phis. It requires live analysis that we currently don't implement. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years 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/SsaPhiEliminatorTest.dart ('k') | frog/tests/leg_only/leg_only.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg/src/TypeInferenceTest.dart
===================================================================
--- frog/tests/leg/src/TypeInferenceTest.dart (revision 2800)
+++ frog/tests/leg/src/TypeInferenceTest.dart (working copy)
@@ -12,12 +12,14 @@
}
""";
+String anyIdentifier = "[a-zA-Z][a-zA-Z0-9]*";
+
main() {
String generated = compile(TEST_ONE, 'sum');
- RegExp regexp = const RegExp("i = \\(i \\+ 1\\)");
+ RegExp regexp = new RegExp("i = \\($anyIdentifier \\+ 1\\)");
Expect.isTrue(regexp.hasMatch(generated));
- regexp = const RegExp("sum = \\(sum \\+ i\\)");
+ regexp = new RegExp("sum = \\($anyIdentifier \\+ $anyIdentifier\\)");
Expect.isTrue(regexp.hasMatch(generated));
regexp = const RegExp('guard\\\$num\\(param0\\)');
« no previous file with comments | « frog/tests/leg/src/SsaPhiEliminatorTest.dart ('k') | frog/tests/leg_only/leg_only.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698