<?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>115215</bug_id>
          
          <creation_ts>2013-04-25 17:58:07 -0700</creation_ts>
          <short_desc>Use push and pop for iOS math function thunks</short_desc>
          <delta_ts>2013-04-29 16:53:29 -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>New Bugs</component>
          <version>528+ (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>
          <dependson>115144</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Benjamin Poulain">benjamin</reporter>
          <assigned_to name="Benjamin Poulain">benjamin</assigned_to>
          <cc>fpizlo</cc>
    
    <cc>msaboff</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>881638</commentid>
    <comment_count>0</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2013-04-25 17:58:07 -0700</bug_when>
    <thetext>Use push and pop for iOS math function thunks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>881639</commentid>
    <comment_count>1</comment_count>
      <attachid>199770</attachid>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2013-04-25 18:00:36 -0700</bug_when>
    <thetext>Created attachment 199770
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>882242</commentid>
    <comment_count>2</comment_count>
      <attachid>199770</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-04-27 15:17:00 -0700</bug_when>
    <thetext>Comment on attachment 199770
Patch

Did you test that calling printf() or similar from jsRound() for example, and then calling Math.round(), works without crashing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>882243</commentid>
    <comment_count>3</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2013-04-27 15:20:10 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 199770 [details])
&gt; Did you test that calling printf() or similar from jsRound() for example, and then calling Math.round(), works without crashing?

I&apos;ll try that on Monday.

I am pretty sure of the alignment on 4 bytes because I already accidentally ran into that when I wrote TransformationMatrix&apos;s optimizations. I assumed the stack would be at least aligned to 8 bytes when writing the VFP code, and that happily crashed in the tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>882244</commentid>
    <comment_count>4</comment_count>
      <attachid>199770</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-04-27 15:21:08 -0700</bug_when>
    <thetext>Comment on attachment 199770
Patch

Would be good to do that test before landing.  Otherwise, r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>882827</commentid>
    <comment_count>5</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2013-04-29 16:49:50 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 199770 [details])
&gt; Would be good to do that test before landing.  Otherwise, r=me.

I just tried on an Apple A5, no problem with printf called from jsRound.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>882830</commentid>
    <comment_count>6</comment_count>
      <attachid>199770</attachid>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2013-04-29 16:53:27 -0700</bug_when>
    <thetext>Comment on attachment 199770
Patch

Clearing flags on attachment: 199770

Committed r149331: &lt;http://trac.webkit.org/changeset/149331&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>882831</commentid>
    <comment_count>7</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2013-04-29 16:53:29 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>199770</attachid>
            <date>2013-04-25 18:00:36 -0700</date>
            <delta_ts>2013-04-29 16:53:27 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-115215-20130425175957.patch</filename>
            <type>text/plain</type>
            <size>1889</size>
            <attacher name="Benjamin Poulain">benjamin</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTQ5MTU3CmRpZmYgLS1naXQgYS9Tb3VyY2UvSmF2YVNjcmlw
dENvcmUvQ2hhbmdlTG9nIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwppbmRleCAx
YWJkYTM3YjA4NjBkNzU5ODc3OGNjNGMxZGRlMDIxZmM0MzhmY2Y3Li43MmUwMThjNDJhOGUzMzQ4
ZTJlOGFmNWI0Y2FjOTdlOTZiYzYyMTE2IDEwMDY0NAotLS0gYS9Tb3VyY2UvSmF2YVNjcmlwdENv
cmUvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKQEAgLTEs
MyArMSwxOSBAQAorMjAxMy0wNC0yNSAgQmVuamFtaW4gUG91bGFpbiAgPGJwb3VsYWluQGFwcGxl
LmNvbT4KKworICAgICAgICBVc2UgcHVzaCBhbmQgcG9wIGZvciBpT1MgbWF0aCBmdW5jdGlvbiB0
aHVua3MKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTEx
NTIxNQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFRo
ZSBpT1MgQUJJIGlzIGEgbGl0dGxlIGRpZmZlcmVudCB0aGFuIHJlZ3Vs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ppdC9UaHVua0dlbmVyYXRvcnMuY3BwCkBA
IC01NTUsMTMgKzU1NSwxMSBAQCBkb3VibGUganNSb3VuZChkb3VibGUgZCkKICAgICAgICAgIi50
aHVtYlxuIiBcCiAgICAgICAgICIudGh1bWJfZnVuYyAiIFRIVU1CX0ZVTkNfUEFSQU0oZnVuY3Rp
b24jI1RodW5rKSAiXG4iIFwKICAgICAgICAgU1lNQk9MX1NUUklORyhmdW5jdGlvbiMjVGh1bmsp
ICI6IiAiXG4iIFwKLSAgICAgICAgInN1YiBzcCwgc3AsICMxNlxuIiBcCi0gICAgICAgICJzdHIg
bHIsIFtzcCwgIzBdXG4iIFwKKyAgICAgICAgInB1c2gge2xyfVxuIiBcCiAgICAgICAgICJ2bW92
IHIwLCByMSwgZDBcbiIgXAogICAgICAgICAiYmx4ICIgR0xPQkFMX1JFRkVSRU5DRShmdW5jdGlv
bikgIlxuIiBcCiAgICAgICAgICJ2bW92IGQwLCByMCwgcjFcbiIgXAotICAgICAgICAibGRyIGxy
LCBbc3AsICMwXVxuIiBcCi0gICAgICAgICJhZGQgc3AsIHNwLCAjMTZcbiIgXAorICAgICAgICAi
cG9wIHtscn1cbiIgXAogICAgICAgICAiYnggbHJcbiIgXAogICAgICk7IFwKICAgICBleHRlcm4g
IkMiIHsgXAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>