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

Side by Side Diff: test/mjsunit/harmony/do-expressions.js

Issue 2655223003: Revert of [tests] Make assertOptimized()/assertUnoptimized() great again. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « test/mjsunit/field-type-tracking.js ('k') | test/mjsunit/keyed-load-hole-to-undefined.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --harmony-do-expressions --allow-natives-syntax --no-always-opt 5 // Flags: --harmony-do-expressions --allow-natives-syntax
6
7 assertFalse(isAlwaysOptimize());
8 6
9 function returnValue(v) { return v; } 7 function returnValue(v) { return v; }
10 function MyError() {} 8 function MyError() {}
11 var global = this; 9 var global = this;
12 10
13 function TestBasic() { 11 function TestBasic() {
14 // Looping and lexical declarations 12 // Looping and lexical declarations
15 assertEquals(512, returnValue(do { 13 assertEquals(512, returnValue(do {
16 let n = 2; 14 let n = 2;
17 for (let i = 0; i < 4; i++) n <<= 2; 15 for (let i = 0; i < 4; i++) n <<= 2;
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 let nums = []; 296 let nums = [];
299 for (let i = 0; i < 1000; ++i) { 297 for (let i = 0; i < 1000; ++i) {
300 let value = (Math.random() * 100) | 0; 298 let value = (Math.random() * 100) | 0;
301 nums.push(value === 0 ? 1 : value), nums; 299 nums.push(value === 0 ? 1 : value), nums;
302 } 300 }
303 }; 301 };
304 assertEquals(numbers.length, 1000); 302 assertEquals(numbers.length, 1000);
305 } 303 }
306 304
307 for (var i = 0; i < 64; ++i) TestOSR(); 305 for (var i = 0; i < 64; ++i) TestOSR();
OLDNEW
« no previous file with comments | « test/mjsunit/field-type-tracking.js ('k') | test/mjsunit/keyed-load-hole-to-undefined.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698