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
/
sink-huge-activation.js
blob
c6c66ad0ce90f8098ea7c5ad61396ac1700533a8
1
function bar() { }
2
3
function foo(alpha) {
4
var x0 = 0;
5
var x1 = 0;
6
var x2 = 0;
7
var x3 = 0;
8
var x4 = 0;
9
var x5 = 0;
10
var x6 = 0;
11
var x7 = 0;
12
var x8 = 0;
13
var x9 = 0;
14
var x10 = 0;
15
var x11 = 0;
16
var x12 = 0;
17
var x13 = 0;
18
var x14 = 0;
19
var x15 = 0;
20
var x16 = 0;
21
var x17 = 0;
22
var x18 = 0;
23
var x19 = 0;
24
if (alpha) {
25
bar(function () {
26
return (x0 + x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 + x10 +
27
x11 + x12 + x13 + x14 + x15 + x16 + x17 + x18 + x19);
28
});
29
return x17;
30
}
31
return x12;
32
}
33
34
noInline(bar);
35
noInline(foo);
36
37
for (var i = 0; i < 1000000; i++) {
38
var result = foo(!(i % 1000));
39
if (result !== 0)
40
throw "Error: expected undefined, got " + result;
41
}