<?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>153955</bug_id>
          
          <creation_ts>2016-02-06 15:08:14 -0800</creation_ts>
          <short_desc>FTL must store the call site index before runtime calls, even if it&apos;s the tail call slow path</short_desc>
          <delta_ts>2016-02-06 17:51:26 -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>WebKit 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>commit-queue</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>saam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1162667</commentid>
    <comment_count>0</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2016-02-06 15:08:14 -0800</bug_when>
    <thetext>Patch forthcoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162670</commentid>
    <comment_count>1</comment_count>
      <attachid>270807</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2016-02-06 15:14:00 -0800</bug_when>
    <thetext>Created attachment 270807
the patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162674</commentid>
    <comment_count>2</comment_count>
      <attachid>270807</attachid>
    <who name="Saam Barati">saam</who>
    <bug_when>2016-02-06 15:23:07 -0800</bug_when>
    <thetext>Comment on attachment 270807
the patch

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

&gt; Source/JavaScriptCore/ftl/FTLLowerDFGToLLVM.cpp:5216
&gt; +                // with the call site index of our frame. Bad things happen if it&apos;s not set.

Might be worth adding a test for this if it&apos;s not too difficult to write one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162675</commentid>
    <comment_count>3</comment_count>
      <attachid>270807</attachid>
    <who name="Saam Barati">saam</who>
    <bug_when>2016-02-06 15:24:04 -0800</bug_when>
    <thetext>Comment on attachment 270807
the patch

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

&gt; Source/JavaScriptCore/ChangeLog:9
&gt; +        The reasoning is explained in a comment in compileTailCall().

It&apos;s probably worth writing out the comment in the change log for posterity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162683</commentid>
    <comment_count>4</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2016-02-06 17:40:42 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Comment on attachment 270807 [details]
&gt; the patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=270807&amp;action=review
&gt; 
&gt; &gt; Source/JavaScriptCore/ftl/FTLLowerDFGToLLVM.cpp:5216
&gt; &gt; +                // with the call site index of our frame. Bad things happen if it&apos;s not set.
&gt; 
&gt; Might be worth adding a test for this if it&apos;s not too difficult to write one.

I&apos;ll try. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162684</commentid>
    <comment_count>5</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2016-02-06 17:40:49 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Comment on attachment 270807 [details]
&gt; the patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=270807&amp;action=review
&gt; 
&gt; &gt; Source/JavaScriptCore/ChangeLog:9
&gt; &gt; +        The reasoning is explained in a comment in compileTailCall().
&gt; 
&gt; It&apos;s probably worth writing out the comment in the change log for posterity.

Will do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162686</commentid>
    <comment_count>6</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2016-02-06 17:51:26 -0800</bug_when>
    <thetext>Landed in http://trac.webkit.org/changeset/196232</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>270807</attachid>
            <date>2016-02-06 15:14:00 -0800</date>
            <delta_ts>2016-02-06 15:23:07 -0800</delta_ts>
            <desc>the patch</desc>
            <filename>blah.patch</filename>
            <type>text/plain</type>
            <size>2292</size>
            <attacher name="Filip Pizlo">fpizlo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTk2MjIyKQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBA
CisyMDE2LTAyLTA2ICBGaWxpcCBQaXpsbyAgPGZwaXpsb0BhcHBsZS5jb20+CisKKyAgICAgICAg
RlRMIG11c3Qgc3RvcmUgdGhlIGNhbGwgc2l0ZSBpbmRleCBiZWZvcmUgcnVudGltZSBjYWxscywg
ZXZlbiBpZiBpdCdzIHRoZSB0YWlsIGNhbGwgc2xvdyBwYXRoCisgICAgICAgIGh0dHBzOi8vYnVn
cy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0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YWNrOjpBcmd1bWVudENvdW50KSkpOworCiAgICAgICAgICAgICAgICAgQ2FsbEZyYW1lU2h1
ZmZsZXIgc2xvd1BhdGhTaHVmZmxlcihqaXQsIHNodWZmbGVEYXRhKTsKICAgICAgICAgICAgICAg
ICBzbG93UGF0aFNodWZmbGVyLnNldENhbGxlZUpTVmFsdWVSZWdzKEpTVmFsdWVSZWdzKEdQUklu
Zm86OnJlZ1QwKSk7CiAgICAgICAgICAgICAgICAgc2xvd1BhdGhTaHVmZmxlci5wcmVwYXJlRm9y
U2xvd1BhdGgoKTsK
</data>
<flag name="review"
          id="295644"
          type_id="1"
          status="+"
          setter="saam"
    />
          </attachment>
      

    </bug>

</bugzilla>