<?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>150688</bug_id>
          
          <creation_ts>2015-10-29 13:01:26 -0700</creation_ts>
          <short_desc>Air::handleCalleeSaves shouldn&apos;t save/restore the frame pointer</short_desc>
          <delta_ts>2015-10-29 18:47:20 -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>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>150279</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Filip Pizlo">fpizlo</reporter>
          <assigned_to name="Filip Pizlo">fpizlo</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1137623</commentid>
    <comment_count>0</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2015-10-29 13:01:26 -0700</bug_when>
    <thetext>Patch forthcoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137717</commentid>
    <comment_count>1</comment_count>
      <attachid>264366</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2015-10-29 16:55:03 -0700</bug_when>
    <thetext>Created attachment 264366
the patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137728</commentid>
    <comment_count>2</comment_count>
      <attachid>264366</attachid>
    <who name="Saam Barati">saam</who>
    <bug_when>2015-10-29 17:27:31 -0700</bug_when>
    <thetext>Comment on attachment 264366
the patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137729</commentid>
    <comment_count>3</comment_count>
      <attachid>264366</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2015-10-29 17:31:40 -0700</bug_when>
    <thetext>Comment on attachment 264366
the patch

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

r-

&gt; Source/JavaScriptCore/b3/air/AirHandleCalleeSaves.cpp:55
&gt;      usedCalleeSaves.filter(RegisterSet::calleeSaveRegisters());
&gt; +    usedCalleeSaves.exclude(RegisterSet::stackRegisters()); // We don&apos;t need to save FP here.

RegisterSet::calleeSaveRegisters() already contains the frame pointer.  In all cases, it uses the native register name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137731</commentid>
    <comment_count>4</comment_count>
      <attachid>264366</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2015-10-29 17:33:38 -0700</bug_when>
    <thetext>Comment on attachment 264366
the patch

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

r+

&gt;&gt; Source/JavaScriptCore/b3/air/AirHandleCalleeSaves.cpp:55
&gt;&gt;      usedCalleeSaves.filter(RegisterSet::calleeSaveRegisters());
&gt;&gt; +    usedCalleeSaves.exclude(RegisterSet::stackRegisters()); // We don&apos;t need to save FP here.
&gt; 
&gt; RegisterSet::calleeSaveRegisters() already contains the frame pointer.  In all cases, it uses the native register name.

Sorry, didn&apos;t see the .filter for RegisterSet::calleeSaveRegisters().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137745</commentid>
    <comment_count>5</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2015-10-29 18:47:20 -0700</bug_when>
    <thetext>Landed in http://trac.webkit.org/changeset/191771</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>264366</attachid>
            <date>2015-10-29 16:55:03 -0700</date>
            <delta_ts>2015-10-29 17:33:38 -0700</delta_ts>
            <desc>the patch</desc>
            <filename>blah.patch</filename>
            <type>text/plain</type>
            <size>1338</size>
            <attacher name="Filip Pizlo">fpizlo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTkxNzY0KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBA
CisyMDE1LTEwLTI5ICBGaWxpcCBQaXpsbyAgPGZwaXpsb0BhcHBsZS5jb20+CisKKyAgICAgICAg
QWlyOjpoYW5kbGVDYWxsZWVTYXZlcyBzaG91bGRuJ3Qgc2F2ZS9yZXN0b3JlIHRoZSBmcmFtZSBw
b2ludGVyCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0x
NTA2ODgKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBX
ZSBzYXZlL3Jlc3RvcmUgdGhlIEZQIGluc2lkZSBBaXI6OmdlbmVyYXRlKCkuCisKKyAgICAgICAg
KiBiMy9haXIvQWlySGFuZGxlQ2FsbGVlU2F2ZXMuY3BwOgorICAgICAgICAoSlNDOjpCMzo6QWly
OjpoYW5kbGVDYWxsZWVTYXZlcyk6CisKIDIwMTUtMTAtMjkgIEZpbGlwIFBpemxvICA8ZnBpemxv
QGFwcGxlLmNvbT4KIAogICAgICAgICBCMzo6TG93ZXJUb0Fpcjo6aW1tKCkgc2hvdWxkIHdvcmsg
Zm9yIGJvdGggMzItYml0IGFuZCA2NC1iaXQgaW1tZWRpYXRlcwpJbmRleDogU291cmNlL0phdmFT
Y3JpcHRDb3JlL2IzL2Fpci9BaXJIYW5kbGVDYWxsZWVTYXZlcy5jcHAKPT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0g
U291cmNlL0phdmFTY3JpcHRDb3JlL2IzL2Fpci9BaXJIYW5kbGVDYWxsZWVTYXZlcy5jcHAJKHJl
dmlzaW9uIDE5MTc2MykKKysrIFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9iMy9haXIvQWlySGFuZGxl
Q2FsbGVlU2F2ZXMuY3BwCSh3b3JraW5nIGNvcHkpCkBAIC01Miw2ICs1Miw3IEBAIHZvaWQgaGFu
ZGxlQ2FsbGVlU2F2ZXMoQ29kZSYgY29kZSkKIAogICAgIC8vIE5vdyB3ZSBmaWx0ZXIgdG8gcmVh
bGx5IGdldCB0aGUgY2FsbGVlIHNhdmVzLgogICAgIHVzZWRDYWxsZWVTYXZlcy5maWx0ZXIoUmVn
aXN0ZXJTZXQ6OmNhbGxlZVNhdmVSZWdpc3RlcnMoKSk7CisgICAgdXNlZENhbGxlZVNhdmVzLmV4
Y2x1ZGUoUmVnaXN0ZXJTZXQ6OnN0YWNrUmVnaXN0ZXJzKCkpOyAvLyBXZSBkb24ndCBuZWVkIHRv
IHNhdmUgRlAgaGVyZS4KIAogICAgIGlmICghdXNlZENhbGxlZVNhdmVzLm51bWJlck9mU2V0UmVn
aXN0ZXJzKCkpCiAgICAgICAgIHJldHVybjsK
</data>
<flag name="review"
          id="289490"
          type_id="1"
          status="+"
          setter="msaboff"
    />
          </attachment>
      

    </bug>

</bugzilla>