Sign in
webkit
/
WebKit
/
d5bc8626ff9394ad3cac4aff99be89e91a8d2265
/
.
/
JSTests
/
microbenchmarks
/
construct-poly-proto-object.js
blob: 8a6a1dad53c6fd5ee4e8dfd807fa8e9840a2f61d [
file
] [
log
] [
blame
]
function
foo
()
{
class
A
{
constructor
()
{
this
.
x
=
25
;
this
.
y
=
30
;
}
};
return
A
;
}
let A
=
foo
();
let B
=
foo
();
noInline
(
A
);
noInline
(
B
);
for
(
let i
=
0
;
i
<
400000
;
++
i
)
{
let b
=
!!(
i
%
2
);
if
(
b
)
new
A
;
else
new
B
;
}