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
/
int8-out-of-bounds.js
blob
e5f9bd12f8d2b90b7491a84630b7203f0600d53d
1
function foo(a, inBounds) {
2
a[0] = 1;
3
if (!inBounds) {
4
a[1] = 2;
5
a[2] = 3;
6
}
7
}
8
9
noInline(foo);
10
11
var array = new Int8Array(1);
12
13
for (var i = 0; i < 100000; ++i)
14
foo(array, true);
15
16
for (var i = 0; i < 100000; ++i)
17
foo(array, false);