Sign in
webkit
/
WebKit
/
293423b2e3bc99a3b6b08c9e39c59d8eb89f00e1
/
.
/
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
();