[Webkit-unassigned] [Bug 215974] Check whether the iterator is callable in spread

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 16 11:22:46 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=215974

--- Comment #27 from Saam Barati <sbarati at apple.com> ---
(In reply to Alexey Shvayka from comment #26)
> (In reply to Saam Barati from comment #25)
> > Do these extra checks cost us any perf?
> 
> No, the checks themselves are quick and, more importantly, they are on the
> slow path (!isJSArray) of the slow paths (slow_path_spread,
> operationSpreadGeneric).

Iterating something that's not an array is not the slow path. We want spread to be fast over all types.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200916/62cf7712/attachment.htm>


More information about the webkit-unassigned mailing list