[Webkit-unassigned] [Bug 184582] Add SetCallee as DFG-Operation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 20 07:47:06 PDT 2018


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

--- Comment #12 from Robin Morisset <rmorisset at apple.com> ---
I am not an official reviewer, so please wait for a review by someone more senior, but it looks good to me.

While reviewing your patch, I realized that the following lines:
```
// Currently we cannot do this optimisation for closures. The problem is that "emitFunctionChecks" which we use later is too coarse, only checking the executable
    // and not the value of captured variables.
    if (callVariant.isClosureCall())
        return false;
```
were wrong (not a source of crashes, but they disable the optimization in many cases for no good reason). The case I was trying to prevent was precisely the case where the callee needs to be changed (and I got it wrong, isClosureCall() does not do what I thought it would do).
You may either remove them in this patch, or I will make a separate patch that removes them.

-- 
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/20180420/66ff805c/attachment-0001.html>


More information about the webkit-unassigned mailing list