I've been searching the V8 source code for how the [[Prototype]] chain
is handled together with the hidden classes concept, I'm fully on
terms with how the hidden classes works for properties that exist
directly on the current object, but if I do this:
x = { y: "hello world" };
x.hasOwnProperty("y");
Then the property access to retrieve the hasOwnProperty function needs
to traverse the [[Property]] chain of the 'x'-object, until it hits
the Object.prototype object which contains the hasOwnProperty
function. Is this done dynamically each time if the property doesn't
exist on the object or is this also cached/inlined in some way?
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users