Bug 755869 - [3] Re-apply bug 689069 - Patch to get arm opts to build with frame pointers enabled. r=mattwoodrow
authorGeorge Wright <gwright@mozilla.com>
Fri, 18 May 2012 13:58:59 -0400
changeset 99198 c3f8b85b916b44e6249a1dae59943b1e07cbb94a
parent 99197 477b8a5a716904dba4a86ab89c77505b6ea80670
child 99199 b4eef6c71672cd89de7b3f022e5a482cec32adeb
push idunknown
push userunknown
push dateunknown
reviewersmattwoodrow
bugs755869, 689069
milestone15.0a1
Bug 755869 - [3] Re-apply bug 689069 - Patch to get arm opts to build with frame pointers enabled. r=mattwoodrow
gfx/skia/src/opts/SkBlitRow_opts_arm.cpp
--- a/gfx/skia/src/opts/SkBlitRow_opts_arm.cpp
+++ b/gfx/skia/src/opts/SkBlitRow_opts_arm.cpp
@@ -549,17 +549,17 @@ static void S32A_Opaque_BlitRow32_neon(S
 #define	S32A_Opaque_BlitRow32_PROC	S32A_Opaque_BlitRow32_neon
 
 #else
 
 #ifdef TEST_SRC_ALPHA
 #error The ARM asm version of S32A_Opaque_BlitRow32 does not support TEST_SRC_ALPHA
 #endif
 
-static void S32A_Opaque_BlitRow32_arm(SkPMColor* SK_RESTRICT dst,
+static void  __attribute((noinline,optimize("-fomit-frame-pointer"))) S32A_Opaque_BlitRow32_arm(SkPMColor* SK_RESTRICT dst,
                                   const SkPMColor* SK_RESTRICT src,
                                   int count, U8CPU alpha) {
 
     SkASSERT(255 == alpha);
 
     /* Does not support the TEST_SRC_ALPHA case */
     asm volatile (
                   "cmp    %[count], #0               \n\t" /* comparing count with 0 */
@@ -646,17 +646,17 @@ static void S32A_Opaque_BlitRow32_arm(Sk
                   );
 }
 #define	S32A_Opaque_BlitRow32_PROC	S32A_Opaque_BlitRow32_arm
 #endif
 
 /*
  * ARM asm version of S32A_Blend_BlitRow32
  */
-static void S32A_Blend_BlitRow32_arm(SkPMColor* SK_RESTRICT dst,
+static void __attribute((noinline,optimize("-fomit-frame-pointer"))) S32A_Blend_BlitRow32_arm(SkPMColor* SK_RESTRICT dst,
                                  const SkPMColor* SK_RESTRICT src,
                                  int count, U8CPU alpha) {
     asm volatile (
                   "cmp    %[count], #0               \n\t" /* comparing count with 0 */
                   "beq    3f                         \n\t" /* if zero exit */
 
                   "mov    r12, #0xff                 \n\t" /* load the 0xff mask in r12 */
                   "orr    r12, r12, r12, lsl #16     \n\t" /* convert it to 0xff00ff in r12 */