Sign in
webkit
/
WebKit
/
36168652e4948b4e847a9c1caf1fabcf1810968f
/
.
/
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
);
}