Sign in
webkit
/
WebKit
/
410be4ca7055be9179c217c85d9a7735750cf16d
/
.
/
JSTests
/
microbenchmarks
/
generator-function-create.js
blob: ae4eb9eec6827e1e42686486fee0f5faad2ea240 [
file
] [
log
] [
blame
]
function
createGeneratorFunction
()
{
function
*
gen
()
{
yield
20
;
yield
30
;
}
return
gen
;
}
function
test
()
{
for
(
var
i
=
0
;
i
<
500
;
++
i
)
createGeneratorFunction
();
}
noInline
(
test
);
for
(
var
i
=
0
;
i
<
1e4
;
++
i
)
test
();