Sign in
webkit
/
WebKit
/
4a12667b4cecb17e84375f8db50c9b2d39b06fe4
/
.
/
JSTests
/
microbenchmarks
/
vector-length-hint-array-constructor.js
blob: 36edecfb5a846d8e00e43f9e8b4430c5a9dfb0ff [
file
] [
log
] [
blame
]
function
test
(
constructor
)
{
var
array
=
new
constructor
(
1
,
2
);
for
(
var
i
=
0
;
i
<
20
;
++
i
)
array
.
push
(
i
);
return
array
;
}
noInline
(
test
);
for
(
var
i
=
0
;
i
<
1e5
;
++
i
)
var
result
=
test
(
Array
);