<?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>119961</bug_id>
          
          <creation_ts>2013-08-17 14:43:45 -0700</creation_ts>
          <short_desc>REGRESSION(r154218): DFG::FixupPhase no longer turns GetById&apos;s child1 into CellUse</short_desc>
          <delta_ts>2013-08-18 21:46:07 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>119962</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Filip Pizlo">fpizlo</reporter>
          <assigned_to name="Filip Pizlo">fpizlo</assigned_to>
          <cc>barraclough</cc>
    
    <cc>ggaren</cc>
    
    <cc>mark.lam</cc>
    
    <cc>mhahnenberg</cc>
    
    <cc>msaboff</cc>
    
    <cc>oliver</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>918357</commentid>
    <comment_count>0</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-08-17 14:43:45 -0700</bug_when>
    <thetext>This isn&apos;t a huge deal but we should fix it.

Patch forthcoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>918358</commentid>
    <comment_count>1</comment_count>
      <attachid>209010</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-08-17 14:44:36 -0700</bug_when>
    <thetext>Created attachment 209010
the patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>918359</commentid>
    <comment_count>2</comment_count>
      <attachid>209010</attachid>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2013-08-17 14:45:08 -0700</bug_when>
    <thetext>Comment on attachment 209010
the patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>918387</commentid>
    <comment_count>3</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-08-17 22:45:34 -0700</bug_when>
    <thetext>Strangely enough, this leads to a slow-down on DSP tests.  That implies that (1) those tests are heavy users of GetById and (2) they want to be able to do GetById on things that aren&apos;t cells.  Weird.  I&apos;m investigating more.  I don&apos;t remember seeing a progression on those tests in http://trac.webkit.org/changeset/154218; I&apos;ll test that next.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>918453</commentid>
    <comment_count>4</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2013-08-18 10:05:11 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Strangely enough, this leads to a slow-down on DSP tests.  That implies that (1) those tests are heavy users of GetById and (2) they want to be able to do GetById on things that aren&apos;t cells.  Weird.  I&apos;m investigating more.  I don&apos;t remember seeing a progression on those tests in http://trac.webkit.org/changeset/154218; I&apos;ll test that next.

Calling number prototype methods perhaps?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>918454</commentid>
    <comment_count>5</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-08-18 10:12:15 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Strangely enough, this leads to a slow-down on DSP tests.  That implies that (1) those tests are heavy users of GetById and (2) they want to be able to do GetById on things that aren&apos;t cells.  Weird.  I&apos;m investigating more.  I don&apos;t remember seeing a progression on those tests in http://trac.webkit.org/changeset/154218; I&apos;ll test that next.

Yup, that was a speed-up, and I missed it.  OK, so we have some nastiness in our profiling, apparently.  It shouldn&apos;t be expensive to use more speculation if we have logic to use *less* speculation instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>918457</commentid>
    <comment_count>6</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-08-18 10:14:21 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Strangely enough, this leads to a slow-down on DSP tests.  That implies that (1) those tests are heavy users of GetById and (2) they want to be able to do GetById on things that aren&apos;t cells.  Weird.  I&apos;m investigating more.  I don&apos;t remember seeing a progression on those tests in http://trac.webkit.org/changeset/154218; I&apos;ll test that next.
&gt; 
&gt; Calling number prototype methods perhaps?

That would only explain it if we didn&apos;t also have the feature to disable cell speculation if profiling said that the input might not be a cell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>918499</commentid>
    <comment_count>7</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-08-18 20:37:10 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #4)
&gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; Strangely enough, this leads to a slow-down on DSP tests.  That implies that (1) those tests are heavy users of GetById and (2) they want to be able to do GetById on things that aren&apos;t cells.  Weird.  I&apos;m investigating more.  I don&apos;t remember seeing a progression on those tests in http://trac.webkit.org/changeset/154218; I&apos;ll test that next.
&gt; &gt; 
&gt; &gt; Calling number prototype methods perhaps?
&gt; 
&gt; That would only explain it if we didn&apos;t also have the feature to disable cell speculation if profiling said that the input might not be a cell.

OK, so this was the mother of all wild goose chases.

It was literally the case that on the computer I was using, you got a 3% overall speed-up on DSP if you were built in a directory called &quot;/Volumes/Data/pizlo/OpenSource&quot;.

Lol.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>918500</commentid>
    <comment_count>8</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-08-18 20:39:10 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; &gt; Strangely enough, this leads to a slow-down on DSP tests.  That implies that (1) those tests are heavy users of GetById and (2) they want to be able to do GetById on things that aren&apos;t cells.  Weird.  I&apos;m investigating more.  I don&apos;t remember seeing a progression on those tests in http://trac.webkit.org/changeset/154218; I&apos;ll test that next.
&gt; &gt; &gt; 
&gt; &gt; &gt; Calling number prototype methods perhaps?
&gt; &gt; 
&gt; &gt; That would only explain it if we didn&apos;t also have the feature to disable cell speculation if profiling said that the input might not be a cell.
&gt; 
&gt; OK, so this was the mother of all wild goose chases.
&gt; 
&gt; It was literally the case that on the computer I was using, you got a 3% overall speed-up on DSP if you were built in a directory called &quot;/Volumes/Data/pizlo/OpenSource&quot;.
&gt; 
&gt; Lol.

I&apos;m still retesting this ... sadly it&apos;ll take a bit of time since I have to build all of WebKit to run those benchmarks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>918513</commentid>
    <comment_count>9</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-08-18 21:44:57 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; (In reply to comment #6)
&gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; &gt; &gt; Strangely enough, this leads to a slow-down on DSP tests.  That implies that (1) those tests are heavy users of GetById and (2) they want to be able to do GetById on things that aren&apos;t cells.  Weird.  I&apos;m investigating more.  I don&apos;t remember seeing a progression on those tests in http://trac.webkit.org/changeset/154218; I&apos;ll test that next.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Calling number prototype methods perhaps?
&gt; &gt; &gt; 
&gt; &gt; &gt; That would only explain it if we didn&apos;t also have the feature to disable cell speculation if profiling said that the input might not be a cell.
&gt; &gt; 
&gt; &gt; OK, so this was the mother of all wild goose chases.
&gt; &gt; 
&gt; &gt; It was literally the case that on the computer I was using, you got a 3% overall speed-up on DSP if you were built in a directory called &quot;/Volumes/Data/pizlo/OpenSource&quot;.
&gt; &gt; 
&gt; &gt; Lol.
&gt; 
&gt; I&apos;m still retesting this ... sadly it&apos;ll take a bit of time since I have to build all of WebKit to run those benchmarks.

Yeah.  Total fluke.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>918514</commentid>
    <comment_count>10</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-08-18 21:46:07 -0700</bug_when>
    <thetext>Landed in http://trac.webkit.org/changeset/154261</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>209010</attachid>
            <date>2013-08-17 14:44:36 -0700</date>
            <delta_ts>2013-08-17 14:45:07 -0700</delta_ts>
            <desc>the patch</desc>
            <filename>blah.patch</filename>
            <type>text/plain</type>
            <size>1125</size>
            <attacher name="Filip Pizlo">fpizlo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTU0MjQwKQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBA
CisyMDEzLTA4LTE3ICBGaWxpcCBQaXpsbyAgPGZwaXpsb0BhcHBsZS5jb20+CisKKyAgICAgICAg
UkVHUkVTU0lPTihyMTU0MjE4KTogREZHOjpGaXh1cFBoYXNlIG5vIGxvbmdlciB0dXJucyBHZXRC
eUlkJ3MgY2hpbGQxIGludG8gQ2VsbFVzZQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9y
Zy9zaG93X2J1Zy5jZ2k/aWQ9MTE5OTYxCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChP
T1BTISkuCisKKyAgICAgICAgKiBkZmcvREZHRml4dXBQaGFzZS5jcHA6CisgICAgICAgIChKU0M6
OkRGRzo6Rml4dXBQaGFzZTo6Zml4dXBOb2RlKToKKwogMjAxMy0wOC0xNiAgRmlsaXAgUGl6bG8g
IDxmcGl6bG9AYXBwbGUuY29tPgogCiAgICAgICAgIERGRyBzaG91bGQgb3B0aW1pemUgdHlwZWRB
cnJheS5ieXRlTGVuZ3RoCkluZGV4OiBTb3VyY2UvSmF2YVNjcmlwdENvcmUvZGZnL0RGR0ZpeHVw
UGhhc2UuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9kZmcvREZHRml4
dXBQaGFzZS5jcHAJKHJldmlzaW9uIDE1NDIzOSkKKysrIFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9k
ZmcvREZHRml4dXBQaGFzZS5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTczNyw2ICs3MzcsNyBAQCBw
cml2YXRlOgogICAgICAgICAgICAgICAgIGF0dGVtcHRUb01ha2VHZXRCeXRlTGVuZ3RoKG5vZGUp
OwogICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgfQorICAgICAgICAgICAgc2V0
VXNlS2luZEFuZFVuYm94SWZQcm9maXRhYmxlPENlbGxVc2U+KG5vZGUtPmNoaWxkMSgpKTsKICAg
ICAgICAgICAgIGJyZWFrOwogICAgICAgICB9CiAgICAgICAgICAgICAK
</data>
<flag name="review"
          id="231003"
          type_id="1"
          status="+"
          setter="mhahnenberg"
    />
          </attachment>
      

    </bug>

</bugzilla>