git://git.webkit.org
/
WebKit-https.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
FixupPhase should be more eager to demote bit math to untyped
[WebKit-https.git]
/
LayoutTests
/
js
/
regress
/
script-tests
/
object-or.js
1
(function() {
2
var m = 1000;
3
var n = 1000;
4
var o = {valueOf: function() { return 42; }};
5
var result = 0;
6
for (var i = 0; i < m; ++i) {
7
result += o | 1;
8
for (var j = 0; j < n; ++j)
9
result *= 1.1;
10
for (var j = 0; j < n; ++j)
11
result /= 2;
12
}
13
14
if (result != 9.911923689829635e-259)
15
throw "Error: bad result: " + result;
16
})();
17