Well, no. That explains only how V8 deals with properties defined directly on object currently being de-referenced (that would return true for hasOwnProperty), my query was about how V8 deals with properties defined on the [[Prototype]] of an object, such as accessing the .length property of the Function.prototype object on a defined function.
On 16 Apr, 18:06, Stephan Beal <[email protected]> wrote: > 2010/4/16 Fredrik Holmström <[email protected]> > > > 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? > > i believe that's described in detail here: > > http://code.google.com/apis/v8/design.html > > See the "Fast Property Access" section. > > -- > ----- stephan bealhttp://wanderinghorse.net/home/stephan/ > > -- > v8-users mailing list > [email protected]http://groups.google.com/group/v8-users -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
