You asked about hidden classes in V8, @ecampver
-
Show this thread
-
In the code base they are called "map" (which is confusing now that JS has maps). I talk about them herehttps://youtu.be/sloddfX9jLE?t=563 …
1 reply 2 retweets 5 likesShow this thread -
You can actually check right in your code if two objects have the same hidden class. The function is `%HaveSameMap(obj1, obj2)`. Since `%` is not regular JavaScript, you have to start Node with `--allowNativesSyntax`
2 replies 3 retweets 17 likesShow this thread -
It's described in more detail here:https://stackoverflow.com/a/32337770/835611 …
1 reply 0 retweets 5 likesShow this thread -
Abstractly, the maps describe the shape or type or memory layout or behavior of objects. For many types of ICs (Incline Caches), maps are the keys of the Inline Cache.
1 reply 0 retweets 2 likesShow this thread -
If you want to find out more, search for articles on Inline Cache and Type Feedback Vectors
Keep in mind that those are very specific implementation details that we're often changing and not necessary how it will always be in the future.1 reply 0 retweets 5 likesShow this thread
FWIW @bmeurer and I wrote https://mathiasbynens.be/notes/shapes-ics … which seems relevant.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.