Sign in
webkit
/
WebKit
/
89027dcc652c693d29500c0d5964ba5e90f48e0b
/
.
/
JSTests
/
microbenchmarks
/
direct-construct.js
blob: e4268616529e351c6f79e3977b603b05327b94b6 [
file
] [
log
] [
blame
]
function
Foo
()
{
this
.
f
=
42
;
}
function
bar
()
{
return
new
Foo
();
}
noInline
(
Foo
);
noInline
(
bar
);
(
function
()
{
for
(
var
i
=
0
;
i
<
10000000
;
++
i
)
{
var
result
=
bar
();
if
(
result
.
f
!=
42
)
throw
"Error: bad result: "
+
result
;
}
})();