RESOLVED FIXED 133166
[ftlopt] DFG::clobberize should be blind to the effects of GC
https://bugs.webkit.org/show_bug.cgi?id=133166
Summary [ftlopt] DFG::clobberize should be blind to the effects of GC
Filip Pizlo
Reported 2014-05-21 20:47:33 PDT
Clobberization should only be used during the earlier parts of compilation, when it's fair game to insert allocations anywhere. This change will allow for hoisting of MakeRope's.
Attachments
the patch (20.70 KB, patch)
2014-05-21 20:55 PDT, Filip Pizlo
ggaren: review+
Filip Pizlo
Comment 1 2014-05-21 20:55:46 PDT
Created attachment 231851 [details] the patch
Geoffrey Garen
Comment 2 2014-05-21 20:58:45 PDT
Comment on attachment 231851 [details] the patch View in context: https://bugs.webkit.org/attachment.cgi?id=231851&action=review r=me > Source/JavaScriptCore/dfg/DFGDoesGC.cpp:37 > + switch (node->op()) { Might be nice to list all the ops here explicitly, and remove the default. That would make it impossible to add a new op without considering whether it does GC.
Filip Pizlo
Comment 3 2014-05-21 20:59:47 PDT
(In reply to comment #2) > (From update of attachment 231851 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=231851&action=review > > r=me > > > Source/JavaScriptCore/dfg/DFGDoesGC.cpp:37 > > + switch (node->op()) { > > Might be nice to list all the ops here explicitly, and remove the default. That would make it impossible to add a new op without considering whether it does GC. True. I'll do that.
Filip Pizlo
Comment 4 2014-05-21 21:11:59 PDT
Andreas Kling
Comment 5 2014-05-21 21:43:10 PDT
(In reply to comment #0) > This change will allow for hoisting of MakeRope's. I love you.
Note You need to log in before you can comment on or make changes to this bug.