3 ms·
>Looking at it naively, it seems to follow the rules for the arguments object in Crankshaft I've never managed to find a good source on the V8 internals and ho
by wisebit 10y ago
>Looking at it naively, it seems to follow the rules for the arguments object in Crankshaft
I've never managed to find a good source on the V8 internals and how to target these optimizations (the "rules for the arguments object" the author alludes to).
Any recommendations?
- cwmma 10y agothis [1] is probably what you want 1. https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments https://github.com/petkaantonov/bluebird/wiki/Optimization-k...
- wisebit 10y agoThanks! The linked repo [1] is also great: [1] https://github.com/vhf/v8-bailout-reasons https://github.com/vhf/v8-bailout-reasons
- vhf 10y agoThey are complementary resources, "Optimization killers" helps you avoid pitfalls in practice, "v8-bailout-reasons" tries to document and explain the various Crankshaft bailouts.