3 ms·
I think they do this on the JS side: http://www.jayconrod.com/posts/52/a-tour-of-v8-object-representation http://www.jayconrod.com/posts/52/a-tour-of-v8-object-
by fulafel 8y ago
I think they do this on the JS side: http://www.jayconrod.com/posts/52/a-tour-of-v8-object-representation http://www.jayconrod.com/posts/52/a-tour-of-v8-object-repres...
For example, an array can be specialized to hold just one datatype, or just a couple of fields, based on how it seems to be used, and then de-optimized later if the assumption is broken.