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

Side by Side Diff: test/mjsunit/regress/regress-4121.js

Issue 2653753007: [tests] Cleanup tests that use assertOptimized()/assertUnoptimized(). (Closed)
Patch Set: Addressing comments Created 3 years, 10 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/regress/regress-410912.js ('k') | test/mjsunit/regress/regress-4380.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: --allow-natives-syntax 5 // Flags: --allow-natives-syntax --no-always-opt
6 6
7 function literals_sharing_test(warmup, optimize) { 7 function literals_sharing_test(warmup, optimize) {
8 function closure() { 8 function closure() {
9 // Ensure small array literals start in specific element kind mode. 9 // Ensure small array literals start in specific element kind mode.
10 assertTrue(%HasFastSmiElements([])); 10 assertTrue(%HasFastSmiElements([]));
11 assertTrue(%HasFastSmiElements([1])); 11 assertTrue(%HasFastSmiElements([1]));
12 assertTrue(%HasFastSmiElements([1,2])); 12 assertTrue(%HasFastSmiElements([1,2]));
13 assertTrue(%HasFastDoubleElements([1.1])); 13 assertTrue(%HasFastDoubleElements([1.1]));
14 assertTrue(%HasFastDoubleElements([1.1,2])); 14 assertTrue(%HasFastDoubleElements([1.1,2]));
15 15
(...skipping 16 matching lines...) Expand all
32 var warmup = true; 32 var warmup = true;
33 for (var i = 0; i < 3; i++) { 33 for (var i = 0; i < 3; i++) {
34 print("iter: " + i + ", warmup: "+ warmup); 34 print("iter: " + i + ", warmup: "+ warmup);
35 literals_sharing_test(warmup, false); 35 literals_sharing_test(warmup, false);
36 warmup = false; 36 warmup = false;
37 } 37 }
38 print("iter: " + i + ", opt: true"); 38 print("iter: " + i + ", opt: true");
39 literals_sharing_test(warmup, true); 39 literals_sharing_test(warmup, true);
40 } 40 }
41 41
42 42 test();
43 function stress_opt_test() {}
44 stress_opt_test();
45 if (%GetOptimizationStatus(stress_opt_test) == 2) {
46 // This test is not suitable for --always-opt mode.
47 test();
48 }
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-410912.js ('k') | test/mjsunit/regress/regress-4380.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698