Sign in
webkit
/
WebKit
/
e1a82001cfdab62c438e943f37ce20f74c8e0820
/
.
/
JSTests
/
microbenchmarks
/
int8-out-of-bounds.js
blob: e5f9bd12f8d2b90b7491a84630b7203f0600d53d [
file
] [
log
] [
blame
]
function
foo
(
a
,
inBounds
)
{
a
[
0
]
=
1
;
if
(!
inBounds
)
{
a
[
1
]
=
2
;
a
[
2
]
=
3
;
}
}
noInline
(
foo
);
var
array
=
new
Int8Array
(
1
);
for
(
var
i
=
0
;
i
<
100000
;
++
i
)
foo
(
array
,
true
);
for
(
var
i
=
0
;
i
<
100000
;
++
i
)
foo
(
array
,
false
);