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