<?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>123788</bug_id>
          
          <creation_ts>2013-11-04 22:37:14 -0800</creation_ts>
          <short_desc>GetById-&gt;GetByOffset and PutById-&gt;PutByOffset folding should mark haveStructures since it may result in structure transition watchpoints</short_desc>
          <delta_ts>2013-11-05 10:51:17 -0800</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>
          
          
          <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>947032</commentid>
    <comment_count>0</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-11-04 22:37:14 -0800</bug_when>
    <thetext>This is totally asymptomatic as far as I can tell even though it&apos;s a violation of IR semantics.  It just sort of &quot;works&quot; because this only arises if you already had a transition watchpoint for that structure, which usually ends up being good enough since watchpoints invalidate the whole function.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>947033</commentid>
    <comment_count>1</comment_count>
      <attachid>216005</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-11-04 22:44:03 -0800</bug_when>
    <thetext>Created attachment 216005
the patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>947248</commentid>
    <comment_count>2</comment_count>
      <attachid>216005</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2013-11-05 10:37:00 -0800</bug_when>
    <thetext>Comment on attachment 216005
the patch

r=me

The phrase &quot;have structures&quot; does not communicate this detail to me. I think by &quot;have&quot; you mean &quot;speculated about, in a way which is invalid after an operation that clobbers the world&quot;. Maybe a better name would be &quot;hasStructureSpeculations&quot; or &quot;hasStructuresToClobber&quot; or &quot;hasClobberableStructures&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>947252</commentid>
    <comment_count>3</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-11-05 10:45:47 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 216005 [details])
&gt; r=me
&gt; 
&gt; The phrase &quot;have structures&quot; does not communicate this detail to me. I think by &quot;have&quot; you mean &quot;speculated about, in a way which is invalid after an operation that clobbers the world&quot;. Maybe a better name would be &quot;hasStructureSpeculations&quot; or &quot;hasStructuresToClobber&quot; or &quot;hasClobberableStructures&quot;.

Fair point.  I&apos;ll try to think of a better name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>947256</commentid>
    <comment_count>4</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-11-05 10:51:17 -0800</bug_when>
    <thetext>Landed in http://trac.webkit.org/changeset/158680</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>216005</attachid>
            <date>2013-11-04 22:44:03 -0800</date>
            <delta_ts>2013-11-05 10:37:00 -0800</delta_ts>
            <desc>the patch</desc>
            <filename>blah.patch</filename>
            <type>text/plain</type>
            <size>2314</size>
            <attacher name="Filip Pizlo">fpizlo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTU4NjQ5KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDIxIEBA
CisyMDEzLTExLTA0ICBGaWxpcCBQaXpsbyAgPGZwaXpsb0BhcHBsZS5jb20+CisKKyAgICAgICAg
R2V0QnlJZC0+R2V0QnlPZmZzZXQgYW5kIFB1dEJ5SWQtPlB1dEJ5T2Zmc2V0IGZvbGRpbmcgc2hv
dWxkIG1hcmsgaGF2ZVN0cnVjdHVyZXMgc2luY2UgaXQgbWF5IHJlc3VsdCBpbiBzdHJ1Y3R1cmUg
dHJhbnNpdGlvbiB3YXRjaHBvaW50cworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9z
aG93X2J1Zy5jZ2k/aWQ9MTIzNzg4CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BT
ISkuCisgICAgICAgIAorICAgICAgICBoYXZlU3RydWN0dXJlcyBpcyB0cnVlIGlmIHRoZXJlIGFy
ZSBhbnkgY3VycmVudGx5S25vd25TdHJ1Y3R1cmVzIHRoYXQgaGF2ZQorICAgICAgICBpbnRlcmVz
dGluZyB2YWx1ZXMsIHNpbmNlIHRoYXQncyB0aGUgb25seSB0aW1lIHdoZW4gY2xvYmJlcmluZyBu
ZWVkcyB0byBkbyB0aGluZ3MuCisgICAgICAgIEl0J3MgYSByZWFsbHkgaW1wb3J0YW50IGNvbXBp
bGUtdGltZSBvcHRpbWl6YXRpb24uIEJ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SmF2YVNjcmlwdENvcmUvZGZn
L0RGR0Fic3RyYWN0SW50ZXJwcmV0ZXJJbmxpbmVzLmgJKHdvcmtpbmcgY29weSkKQEAgLTEyODIs
NiArMTI4Miw3IEBAIGJvb2wgQWJzdHJhY3RJbnRlcnByZXRlcjxBYnN0cmFjdFN0YXRlVHkKICAg
ICAgICAgICAgICAgICAgICAgZmlsdGVyKG5vZGUtPmNoaWxkMSgpLCBzdGF0dXMuc3RydWN0dXJl
U2V0KCkpOwogICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgbV9zdGF0
ZS5zZXRGb3VuZENvbnN0YW50cyh0cnVlKTsKKyAgICAgICAgICAgICAgICAgICAgbV9zdGF0ZS5z
ZXRIYXZlU3RydWN0dXJlcyh0cnVlKTsKICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAg
ICAgICAgICAgICAgfQogICAgICAgICAgICAgfQpAQCAtMTQ3OSw2ICsxNDgwLDcgQEAgYm9vbCBB
YnN0cmFjdEludGVycHJldGVyPEFic3RyYWN0U3RhdGVUeQogICAgICAgICAgICAgaWYgKHN0YXR1
cy5pc1NpbXBsZVJlcGxhY2UoKSkgewogICAgICAgICAgICAgICAgIGZpbHRlcihub2RlLT5jaGls
ZDEoKSwgc3RydWN0dXJlKTsKICAgICAgICAgICAgICAgICBtX3N0YXRlLnNldEZvdW5kQ29uc3Rh
bnRzKHRydWUpOworICAgICAgICAgICAgICAgIG1fc3RhdGUuc2V0SGF2ZVN0cnVjdHVyZXModHJ1
ZSk7CiAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICB9CiAgICAgICAgICAgICBp
ZiAoc3RhdHVzLmlzU2ltcGxlVHJhbnNpdGlvbigpKSB7Cg==
</data>
<flag name="review"
          id="238876"
          type_id="1"
          status="+"
          setter="ggaren"
    />
          </attachment>
      

    </bug>

</bugzilla>