Status: New
Owner: ----
New issue 2472 by [email protected]: Optimize hasOwnProperty
http://code.google.com/p/v8/issues/detail?id=2472
This is an assumption so it might be an invalid RFE.
Given:
function Point(x, y) {
this.x = x;
this.y = y;
}
var p = new Point(1, 2);
We should be able to use the hidden class to speed up hasOwnProperty (given
that the expression in hop is a string literal)
p.hasOwnProperty('x')
(Same thing applies to the in operator of course.)
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev