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
/
hard-overflow-check.js
blob
d86e4c36007c6375e12105d85ce76fff7dcbbe89
1
function foo(o) {
2
var result = 0;
3
for (var i = 0; i < 100; ++i) // ++i still has an overflow check in the emitted code
4
result += o.f;
5
return result;
6
}
7
8
noInline(foo);
9
10
var p = {f:42};
11
var o = Object.create(p);
12
13
for (var i = 0; i < 500000; ++i) {
14
p.f = i;
15
foo(o);
16
}
17