Wednesday, December 21, 2011

Design Elements - V8 JavaScript Engine - Google Code

Design Elements - V8 JavaScript Engine - Google Code: "Executing the second statement in Point (this.y = y;) creates a new property, y, in the Point object. In this case, V8:
creates another hidden class C2, based on C1, then adds information to C2 that describes the object as also having property y stored at offset 1 (one) in the Point object.
updates C1 with a class transition indicating that if a property y is added to an object described by C1 then the hidden class C2 should be used instead of C1. At this stage the Point object's hidden class is C2."

'via Blog this'