Sign in
webkit
/
WebKit
/
e1a82001cfdab62c438e943f37ce20f74c8e0820
/
.
/
JSTests
/
microbenchmarks
/
in-by-id-removed.js
blob: 48a8278ceb687e7a250273b1ee590b75577b6d12 [
file
] [
log
] [
blame
]
function
test
(
object
)
{
if
(
"cocoa"
in object
)
return
object
.
cocoa
;
return
0
;
}
noInline
(
test
);
var
o1
=
{
cocoa
:
42
};
var
o2
=
{
cocoa
:
40
,
cappuccino
:
41
};
for
(
var
i
=
0
;
i
<
1e6
;
++
i
)
{
test
(
o1
);
test
(
o2
);
}