<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>216110</bug_id>
          
          <creation_ts>2020-09-02 17:33:26 -0700</creation_ts>
          <short_desc>Finish comment describing the various *Stack SSA nodes in DFG</short_desc>
          <delta_ts>2020-09-03 14:44:16 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Keith Miller">keith_miller</reporter>
          <assigned_to name="Keith Miller">keith_miller</assigned_to>
          <cc>ews-watchlist</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>saam</cc>
    
    <cc>sam</cc>
    
    <cc>tzagallo</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1685076</commentid>
    <comment_count>0</comment_count>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2020-09-02 17:33:26 -0700</bug_when>
    <thetext>Finish comment describing the various *Stack SSA nodes in DFG</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685077</commentid>
    <comment_count>1</comment_count>
      <attachid>407839</attachid>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2020-09-02 17:35:29 -0700</bug_when>
    <thetext>Created attachment 407839
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685336</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-09-03 10:39:12 -0700</bug_when>
    <thetext>Committed r266532: &lt;https://trac.webkit.org/changeset/266532&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 407839.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685337</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-09-03 10:40:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/68288007&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685395</commentid>
    <comment_count>4</comment_count>
      <attachid>407839</attachid>
    <who name="Saam Barati">saam</who>
    <bug_when>2020-09-03 12:29:36 -0700</bug_when>
    <thetext>Comment on attachment 407839
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=407839&amp;action=review

&gt; Source/JavaScriptCore/dfg/DFGNodeType.h:79
&gt; +    /* exits are rare this is preferable to representing availability directly in SSA. */\

why? Storing to the stack isn&apos;t free. If something is in a register, you don&apos;t also want to throw it onto the stack just for OSRs sake.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685396</commentid>
    <comment_count>5</comment_count>
      <attachid>407839</attachid>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2020-09-03 12:35:27 -0700</bug_when>
    <thetext>Comment on attachment 407839
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=407839&amp;action=review

&gt;&gt; Source/JavaScriptCore/dfg/DFGNodeType.h:79
&gt;&gt; +    /* exits are rare this is preferable to representing availability directly in SSA. */\
&gt; 
&gt; why? Storing to the stack isn&apos;t free. If something is in a register, you don&apos;t also want to throw it onto the stack just for OSRs sake.

I don&apos;t think that&apos;s what this comment says but maybe it could be more explicit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685415</commentid>
    <comment_count>6</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2020-09-03 13:49:57 -0700</bug_when>
    <thetext>(In reply to Keith Miller from comment #5)
&gt; Comment on attachment 407839 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=407839&amp;action=review
&gt; 
&gt; &gt;&gt; Source/JavaScriptCore/dfg/DFGNodeType.h:79
&gt; &gt;&gt; +    /* exits are rare this is preferable to representing availability directly in SSA. */\
&gt; &gt; 
&gt; &gt; why? Storing to the stack isn&apos;t free. If something is in a register, you don&apos;t also want to throw it onto the stack just for OSRs sake.
&gt; 
&gt; I don&apos;t think that&apos;s what this comment says but maybe it could be more
&gt; explicit.

&quot;this is preferable to representing availability directly in SSA&quot; is not right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685416</commentid>
    <comment_count>7</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2020-09-03 13:50:25 -0700</bug_when>
    <thetext>(In reply to Saam Barati from comment #6)
&gt; (In reply to Keith Miller from comment #5)
&gt; &gt; Comment on attachment 407839 [details]
&gt; &gt; Patch
&gt; &gt; 
&gt; &gt; View in context:
&gt; &gt; https://bugs.webkit.org/attachment.cgi?id=407839&amp;action=review
&gt; &gt; 
&gt; &gt; &gt;&gt; Source/JavaScriptCore/dfg/DFGNodeType.h:79
&gt; &gt; &gt;&gt; +    /* exits are rare this is preferable to representing availability directly in SSA. */\
&gt; &gt; &gt; 
&gt; &gt; &gt; why? Storing to the stack isn&apos;t free. If something is in a register, you don&apos;t also want to throw it onto the stack just for OSRs sake.
&gt; &gt; 
&gt; &gt; I don&apos;t think that&apos;s what this comment says but maybe it could be more
&gt; &gt; explicit.
&gt; 
&gt; &quot;this is preferable to representing availability directly in SSA&quot; is not
&gt; right.

Maybe you mean if both things were already the case? Like we happened to have a spill for another reason?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1685447</commentid>
    <comment_count>8</comment_count>
      <attachid>407839</attachid>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2020-09-03 14:44:16 -0700</bug_when>
    <thetext>Comment on attachment 407839
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=407839&amp;action=review

&gt;&gt;&gt;&gt;&gt; Source/JavaScriptCore/dfg/DFGNodeType.h:79
&gt;&gt;&gt;&gt;&gt; +    /* exits are rare this is preferable to representing availability directly in SSA. */\
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; why? Storing to the stack isn&apos;t free. If something is in a register, you don&apos;t also want to throw it onto the stack just for OSRs sake.
&gt;&gt;&gt; 
&gt;&gt;&gt; I don&apos;t think that&apos;s what this comment says but maybe it could be more explicit.
&gt;&gt; 
&gt;&gt; &quot;this is preferable to representing availability directly in SSA&quot; is not right.
&gt; 
&gt; Maybe you mean if both things were already the case? Like we happened to have a spill for another reason?

Correct, I&apos;m saying that the PutStacks are used to represent shadow data flow. We don&apos;t necessarily want B3 spend time register allocating that data if we could get it from the stack. That comment wasn&apos;t trying to say it&apos;s preferable to PutStack every OSR exit value.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>407839</attachid>
            <date>2020-09-02 17:35:29 -0700</date>
            <delta_ts>2020-09-03 10:39:12 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-216110-20200902173528.patch</filename>
            <type>text/plain</type>
            <size>1645</size>
            <attacher name="Keith Miller">keith_miller</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjY2NDk2CmRpZmYgLS1naXQgYS9Tb3VyY2UvSmF2YVNjcmlw
dENvcmUvQ2hhbmdlTG9nIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwppbmRleCBm
NzA1YjdmYjEwZDZlOTk4MWIwZWY4NGM5MmZhNWM1NGYwMGU1YjY1Li5hYTg5MWZhNGE4OTAyOWY5
ZjkzM2IzNGI0NmRmNjBlZDcxYjU1MGQ2I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