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

Unified Diff: frog/tests/leg_only/src/BailoutTest.dart

Issue 9668029: Fix a long-standing bug in the computation of the live environments for bailouts. When visiting a l… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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/leg/ssa/nodes.dart ('k') | tests/corelib/corelib-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg_only/src/BailoutTest.dart
===================================================================
--- frog/tests/leg_only/src/BailoutTest.dart (revision 5318)
+++ frog/tests/leg_only/src/BailoutTest.dart (working copy)
@@ -42,6 +42,17 @@
return res;
}
+void forInBailout() {
+ var n = myString.length;
+ var res = '';
+ for (int i in myString.charCodes()) {
+ var o = myString;
+ if (false) o[1] = 2;
+ res += new String.fromCharCodes([i]);
+ }
+ return res;
+}
+
void innerForBailout() {
var n = myString.length;
var res = '';
@@ -192,6 +203,7 @@
myString = '1234';
Expect.equals('1234', forBailout());
+ Expect.equals('1234', forInBailout());
Expect.equals('12341234', innerForBailout());
Expect.equals('1234', whileBailout());
« no previous file with comments | « frog/leg/ssa/nodes.dart ('k') | tests/corelib/corelib-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698