DFG JIT currently optimizes accesses to array.length the same way as the old JIT: it generates a stub on the fly when an array length access is detected after the code is already compiled. But the DFG has all the information it needs to inline a fast speculative array length access.
Created attachment 108895 [details]
Comment on attachment 108895 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=108895&action=review
> +#if ENABLE(DFG_DEBUG_PROPAGATION_VERBOSE)
> + printf(" @%u -> GetArrayLength", nodeIndex);
please add debug message macros
Created attachment 108903 [details]
Added debug message macro.
Comment on attachment 108903 [details]
I'd rather #define DFG_DEBUG_PROPAGATION(msg...) printf(msg);
But my suggestion was meant for a following patch
(In reply to comment #4)
> (From update of attachment 108903 [details])
> I'd rather #define DFG_DEBUG_PROPAGATION(msg...) printf(msg);
> But my suggestion was meant for a following patch
So you want me to commit the previous patch, and then do the refactoring separately?
Landed in r96184.