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

Side by Side Diff: test/mjsunit/random-bit-correlations.js

Issue 1683043003: Implement symbol @@hasInstance for ES6 instanceof support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix broken test. Created 4 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/es6/symbols.js ('k') | test/test262/test262.status » ('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: --random-seed=12 --nostress-opt --noalways-opt --predictable 5 // Flags: --random-seed=20 --nostress-opt --noalways-opt --predictable
6 6
7 (function() { 7 (function() {
8 var kHistory = 2; 8 var kHistory = 2;
9 var kRepeats = 100; 9 var kRepeats = 100;
10 var history = new Uint32Array(kHistory); 10 var history = new Uint32Array(kHistory);
11 11
12 function random() { 12 function random() {
13 return (Math.random() * Math.pow(2, 32)) >>> 0; 13 return (Math.random() * Math.pow(2, 32)) >>> 0;
14 } 14 }
15 15
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // For 1 degree of freedom this corresponds to 1 in a million. We are 60 // For 1 degree of freedom this corresponds to 1 in a million. We are
61 // running ~8000 tests, so that would be surprising. 61 // running ~8000 tests, so that would be surprising.
62 assertTrue(chi_squared <= 24); 62 assertTrue(chi_squared <= 24);
63 // If the predictor bit is a fixed 0 or 1 then it makes no sense to 63 // If the predictor bit is a fixed 0 or 1 then it makes no sense to
64 // repeat the test with a different age. 64 // repeat the test with a different age.
65 if (predictor_bit < 0) break; 65 if (predictor_bit < 0) break;
66 } 66 }
67 } 67 }
68 } 68 }
69 })(); 69 })();
OLDNEW
« no previous file with comments | « test/mjsunit/es6/symbols.js ('k') | test/test262/test262.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698