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

Side by Side Diff: tests/compiler/dart2js_extra/bailout_test.dart

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart";
6
7 var myString; 5 var myString;
8 6
9 String ifBailout(test) { 7 String ifBailout(test) {
10 if (test) { 8 if (test) {
11 // Share the same variable for the type inference. 9 // Share the same variable for the type inference.
12 var o = myString; 10 var o = myString;
13 // Make sure the type inference wants an array. 11 // Make sure the type inference wants an array.
14 if (false) o[1] = 2; 12 if (false) o[1] = 2;
15 return '${o[0]} bailout'; 13 return '${o[0]} bailout';
16 } 14 }
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 Expect.equals('1234', doWhileBailout()); 210 Expect.equals('1234', doWhileBailout());
213 211
214 Expect.equals(102334155, fibonacci(40)); 212 Expect.equals(102334155, fibonacci(40));
215 213
216 phiBailout(); 214 phiBailout();
217 ifPhiBailout1(1); 215 ifPhiBailout1(1);
218 ifPhiBailout1(2); 216 ifPhiBailout1(2);
219 ifPhiBailout2(1); 217 ifPhiBailout2(1);
220 ifPhiBailout2(2); 218 ifPhiBailout2(2);
221 } 219 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js_extra/bailout_on_continue_test.dart ('k') | tests/compiler/dart2js_extra/break_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698