RESOLVED FIXED 137242
DFG SSA should use PutLocal/KillLocal instead of SetLocal to communicate what is flushed to the stack and when
https://bugs.webkit.org/show_bug.cgi?id=137242
Summary DFG SSA should use PutLocal/KillLocal instead of SetLocal to communicate what...
Filip Pizlo
Reported 2014-09-29 19:48:39 PDT
...
Attachments
the patch (20.04 KB, patch)
2014-09-30 20:20 PDT, Filip Pizlo
ggaren: review+
Filip Pizlo
Comment 1 2014-09-29 19:49:47 PDT
Probably the best way to solve this problem is to have DFG SSA use some name other than "SetLocal" for this node. That way the SSA equivalent of the SetLocal NodeType can have NodeMustGenerate as a default flag. We could call this new node PutLocal.
Filip Pizlo
Comment 2 2014-09-30 20:20:29 PDT
Created attachment 238988 [details] the patch
Geoffrey Garen
Comment 3 2014-10-01 11:58:57 PDT
Comment on attachment 238988 [details] the patch View in context: https://bugs.webkit.org/attachment.cgi?id=238988&action=review r=me > Source/JavaScriptCore/ChangeLog:36 > + - PutLocal means that that a value is to be stored to the stack. It makes a flush available. > + - KillLocal means that the value stored to the stack is no longer available for the purposes > + of OSR (i.e. it no longer accurately corresponds to what that actual bytecode variable > + would have been, so you have to fall back on node availability). I wonder if we can get the flush logic into the names of these nodes. FlushLocal KillFlushLocal ?
Filip Pizlo
Comment 4 2014-10-01 13:07:53 PDT
(In reply to comment #3) > (From update of attachment 238988 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=238988&action=review > > r=me > > > Source/JavaScriptCore/ChangeLog:36 > > + - PutLocal means that that a value is to be stored to the stack. It makes a flush available. > > + - KillLocal means that the value stored to the stack is no longer available for the purposes > > + of OSR (i.e. it no longer accurately corresponds to what that actual bytecode variable > > + would have been, so you have to fall back on node availability). > > I wonder if we can get the flush logic into the names of these nodes. > > FlushLocal > KillFlushLocal > > ? FlushLocal is probably better than PutLocal KillFlushLocal is a mouthful! I'll land this patch as-is but I've filed: https://bugs.webkit.org/show_bug.cgi?id=137307
Filip Pizlo
Comment 5 2014-10-01 13:12:53 PDT
Note You need to log in before you can comment on or make changes to this bug.