repo.or.cz
/
qtwebkit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Update ReadMe.md
[qtwebkit.git]
/
JSTests
/
microbenchmarks
/
gcse-poly-get-less-obvious.js
blob
040bd4bf66f10a3bcff12f9dc0bce54e9e37ef37
1
(function(o, p) {
2
var result = 0;
3
var n = 1000000;
4
for (var i = 0 ; i < n; ++i) {
5
var a = o.f;
6
var b = o.f;
7
var c = o.f;
8
var d = o.f;
9
if (d) {
10
var e = o.f;
11
var f = o.f;
12
var g = o.f;
13
var h = o.f;
14
if (h) {
15
var j = o.f;
16
var k = o.f;
17
var l = o.f;
18
var m = o.f;
19
if (m) {
20
var q = o.f;
21
var r = o.f;
22
var s = o.f;
23
var t = o.f;
24
if (t)
25
result += r;
26
}
27
}
28
}
29
var tmp = o;
30
o = p;
31
p = tmp;
32
}
33
if (result != (n / 2) * o.f + (n / 2) * p.f)
34
throw "Error: bad result: " + result;
35
})({f:42, g:0}, {g:0, f:43});