<?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>147101</bug_id>
          
          <creation_ts>2015-07-19 21:39:46 -0700</creation_ts>
          <short_desc>Unexpected ABI diffference between armv7 and armv7s in WebCore::GraphicsLayerCA::~GraphicsLayerCA()</short_desc>
          <delta_ts>2015-07-20 15:10:31 -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>Layout and Rendering</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="David Kilzer (:ddkilzer)">ddkilzer</assigned_to>
          <cc>achristensen</cc>
    
    <cc>benjamin</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dino</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1110563</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2015-07-19 21:39:46 -0700</bug_when>
    <thetext>Unexpected ABI diffference between armv7 and armv7s in WebCore::GraphicsLayerCA::~GraphicsLayerCA() results in two different symbols:

__ZThn568_N7WebCore15GraphicsLayerCAD0Ev
__ZThn576_N7WebCore15GraphicsLayerCAD0Ev

This is due to the following code in Source/WebCore/platform/graphics/transforms/TransformationMatrix.h:

#if CPU(APPLE_ARMV7S) || defined(TRANSFORMATION_MATRIX_USE_X86_64_SSE2)
#if COMPILER(MSVC)
    __declspec(align(16)) typedef double Matrix4[4][4];
#else
    typedef double Matrix4[4][4] __attribute__((aligned (16)));
#endif
#else
    typedef double Matrix4[4][4];
#endif

We should simply use the same alignment on armv7 to fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110564</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2015-07-19 21:40:06 -0700</bug_when>
    <thetext>&lt;rdar://problem/21867029&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110565</commentid>
    <comment_count>2</comment_count>
      <attachid>257078</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2015-07-19 21:56:28 -0700</bug_when>
    <thetext>Created attachment 257078
Patch v1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110694</commentid>
    <comment_count>3</comment_count>
      <attachid>257078</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-07-20 11:51:42 -0700</bug_when>
    <thetext>Comment on attachment 257078
Patch v1

TransformationMatrix.cpp has a corresponding #elif CPU(APPLE_ARMV7S) which should be changed with this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110719</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2015-07-20 12:49:26 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Comment on attachment 257078 [details]
&gt; Patch v1
&gt; 
&gt; TransformationMatrix.cpp has a corresponding #elif CPU(APPLE_ARMV7S) which
&gt; should be changed with this.

The assembly in TransformationMatrix.cpp in the #elif CPU(APPLE_ARMV7S) may use instructions that aren&apos;t available on non-armv7s platforms.  In that case, we fall back to the C code in the #else clause.

Ben Poulain needs to review this change.  Moving back to r?.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110736</commentid>
    <comment_count>5</comment_count>
      <attachid>257078</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2015-07-20 13:26:07 -0700</bug_when>
    <thetext>Comment on attachment 257078
Patch v1

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110739</commentid>
    <comment_count>6</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2015-07-20 13:31:50 -0700</bug_when>
    <thetext>+1 from me too.

The ARMV7S in TransformationMatrix.cpp has to stay.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110740</commentid>
    <comment_count>7</comment_count>
      <attachid>257078</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-07-20 13:32:44 -0700</bug_when>
    <thetext>Comment on attachment 257078
Patch v1

ok, makes sense.  I just thought it may have been overlooked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110756</commentid>
    <comment_count>8</comment_count>
      <attachid>257078</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-07-20 14:21:53 -0700</bug_when>
    <thetext>Comment on attachment 257078
Patch v1

Clearing flags on attachment: 257078

Committed r187034: &lt;http://trac.webkit.org/changeset/187034&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110757</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-07-20 14:21:56 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110775</commentid>
    <comment_count>10</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2015-07-20 15:10:31 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Comment on attachment 257078 [details]
&gt; Patch v1
&gt; 
&gt; ok, makes sense.  I just thought it may have been overlooked.

It was a good question!  I had overlooked it until you mentioned it, but it turns out we shouldn&apos;t change it as noted above.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>257078</attachid>
            <date>2015-07-19 21:56:28 -0700</date>
            <delta_ts>2015-07-20 14:21:53 -0700</delta_ts>
            <desc>Patch v1</desc>
            <filename>bug-147101-20150719215515.patch</filename>
            <type>text/plain</type>
            <size>1560</size>
            <attacher name="David Kilzer (:ddkilzer)">ddkilzer</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTg3MDE3CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggZTQwNDJlNGZiMDE0ZGUz
MTAwNTdjOWIyMDU3NDk5NDUyZjI4NmU2NS4uMTdhNWQ0MTdiOTQ2ZjA0ZDRmYjlmM2U2OGZhNjNm
OTA5YTY4MTllOSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSw1ICsxLDE1IEBACiAyMDE1LTA3LTE5ICBEYXZp
ZCBLaWx6ZXIgIDxkZGtpbHplckBhcHBsZS5jb20+CiAKKyAgICAgICAgVW5leHBlY3RlZCBBQkkg
ZGlmZmZlcmVuY2UgYmV0d2VlbiBhcm12NyBhbmQgYXJtdjdzIGluIFdlYkNvcmU6OkdyYXBoaWNz
TGF5ZXJDQTo6fkdyYXBoaWNzTGF5ZXJDQSgpCisgICAgICAgIDxodHRwOi8vd2Via2l0Lm9yZy9i
LzE0NzEwMT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAg
ICAqIHBsYXRmb3JtL2dyYXBoaWNzL3RyYW5zZm9ybXMvVHJ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