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
/
varargs-inline.js
blob
7e70b26fe0799e77efd572c76ff25501b2ec587b
1
function foo(a, b) {
2
return a + b;
3
}
4
5
function bar() {
6
return foo.apply(null, arguments);
7
}
8
9
function baz(a, b) {
10
return bar(a, b);
11
}
12
13
noInline(baz);
14
15
for (var i = 0; i < 1000000; ++i) {
16
var result = baz(1, 2);
17
if (result != 3)
18
throw "Error: bad result: " + result;
19
}
20