<?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>150655</bug_id>
          
          <creation_ts>2015-10-28 18:42:56 -0700</creation_ts>
          <short_desc>we&apos;re incorrectly adjusting a stack location with respect to the localsOffset in FTLCompile</short_desc>
          <delta_ts>2015-10-29 12:15:46 -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>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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saam Barati">saam</reporter>
          <assigned_to name="Saam Barati">saam</assigned_to>
          <cc>benjamin</cc>
    
    <cc>commit-queue</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>gskachkov</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>oliver</cc>
    
    <cc>sukolsak</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1137412</commentid>
    <comment_count>0</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2015-10-28 18:42:56 -0700</bug_when>
    <thetext>we&apos;re recomputing this for a *OSRExitDescriptor* for every one of its *OSRExits*. This is having a multiplicative effect on offsets.
I&apos;m amazed this didn&apos;t break any of our tests.

I think I introduced this in:
https://bugs.webkit.org/show_bug.cgi?id=149970</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137424</commentid>
    <comment_count>1</comment_count>
      <attachid>264287</attachid>
    <who name="Saam Barati">saam</who>
    <bug_when>2015-10-28 19:12:06 -0700</bug_when>
    <thetext>Created attachment 264287
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137425</commentid>
    <comment_count>2</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2015-10-28 19:19:21 -0700</bug_when>
    <thetext>Nice catch!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137429</commentid>
    <comment_count>3</comment_count>
      <attachid>264287</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2015-10-28 19:29:04 -0700</bug_when>
    <thetext>Comment on attachment 264287
patch

Can haz regression test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137454</commentid>
    <comment_count>4</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2015-10-28 22:20:21 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Comment on attachment 264287 [details]
&gt; patch
&gt; 
&gt; Can haz regression test?
I&apos;ll try to see if I can come up with one before landing this.
We will definitely have one once FTL try/catch lands but 
it will be nice if I can come up with a small and simple
reproducible program. This might be a bit tricky
to get right. If I can&apos;t come up with a small program,
I think coming up with a small program for FTL try/catch
will be easier because of the nature of OSR exits from
from calls and get/put_by_ids.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137577</commentid>
    <comment_count>5</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2015-10-29 11:28:53 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Comment on attachment 264287 [details]
&gt; &gt; patch
&gt; &gt; 
&gt; &gt; Can haz regression test?
&gt; I&apos;ll try to see if I can come up with one before landing this.
&gt; We will definitely have one once FTL try/catch lands but 
&gt; it will be nice if I can come up with a small and simple
&gt; reproducible program. This might be a bit tricky
&gt; to get right. If I can&apos;t come up with a small program,
&gt; I think coming up with a small program for FTL try/catch
&gt; will be easier because of the nature of OSR exits from
&gt; from calls and get/put_by_ids.
I couldn&apos;t get a test case to reproduce this easily.
I&apos;m going to defer until FTL try/catch where we definitely
will have a test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137584</commentid>
    <comment_count>6</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2015-10-29 11:35:40 -0700</bug_when>
    <thetext>Okeedokee.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137607</commentid>
    <comment_count>7</comment_count>
      <attachid>264287</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-10-29 12:15:37 -0700</bug_when>
    <thetext>Comment on attachment 264287
patch

Clearing flags on attachment: 264287

Committed r191744: &lt;http://trac.webkit.org/changeset/191744&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137608</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-10-29 12:15:46 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>264287</attachid>
            <date>2015-10-28 19:12:06 -0700</date>
            <delta_ts>2015-10-29 12:15:37 -0700</delta_ts>
            <desc>patch</desc>
            <filename>a-backup.diff</filename>
            <type>text/plain</type>
            <size>2615</size>
            <attacher name="Saam Barati">saam</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTkxNzE4KQorKysgU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UmVjb3JkSW5kZXgpOwpAQCAtNTk0
LDExICs1OTksNiBAQCBzdGF0aWMgdm9pZCBmaXhGdW5jdGlvbkJhc2VkT25TdGFja01hcHMoCiAg
ICAgICAgICAgICBpbmZvLm1fdGh1bmtBZGRyZXNzID0gbGlua0J1ZmZlci0+bG9jYXRpb25PZihp
bmZvLm1fdGh1bmtMYWJlbCk7CiAgICAgICAgICAgICBleGl0Lm1fcGF0Y2hhYmxlQ29kZU9mZnNl
dCA9IGxpbmtCdWZmZXItPm9mZnNldE9mKGluZm8ubV90aHVua0p1bXApOwogICAgICAgICAgICAg
Ci0gICAgICAgICAgICBmb3IgKHVuc2lnbmVkIGogPSBleGl0Lm1fZGVzY3JpcHRvci5tX3ZhbHVl
cy5zaXplKCk7IGotLTspCi0gICAgICAgICAgICAgICAgZXhpdC5tX2Rlc2NyaXB0b3IubV92YWx1
ZXNbal0gPSBleGl0Lm1fZGVzY3JpcHRvci5tX3ZhbHVlc1tqXS53aXRoTG9jYWxzT2Zmc2V0KGxv
Y2Fsc09mZnNldCk7Ci0gICAgICAgICAgICBmb3IgKEV4aXRUaW1lT2JqZWN0TWF0ZXJpYWxpemF0
aW9uKiBtYXRlcmlhbGl6YXRpb24gOiBleGl0Lm1fZGVzY3JpcHRvci5tX21hdGVyaWFsaXphdGlv
bnMpCi0gICAgICAgICAgICAgICAgbWF0ZXJpYWxpemF0aW9uLT5hY2NvdW50Rm9yTG9jYWxzT2Zm
c2V0KGxvY2Fsc09mZnNldCk7Ci0gICAgICAgICAgICAKICAgICAgICAgICAgIGlmICh2ZXJib3Nl
Q29tcGlsYXRpb25FbmFibGVkKCkpIHsKICAgICAgICAgICAgICAgICBEdW1wQ29udGV4dCBjb250
ZXh0OwogICAgICAgICAgICAgICAgIGRhdGFMb2coIiAgICBFeGl0IHZhbHVlczogIiwgaW5Db250
ZXh0KGV4aXQubV9kZXNjcmlwdG9yLm1fdmFsdWVzLCAmY29udGV4dCksICJcbiIpOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>