Changeset 90425 in webkit


Ignore:
Timestamp:
Jul 5, 2011, 6:20:27 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2011-07-05 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>

Make "Add optimised paths for a few maths functions" work on Qt
https://bugs.webkit.org/show_bug.cgi?id=63893

Reviewed by Oliver Hunt.

Move the generated code to the .text section instead of .data section.
Fix alignment for the 32 bit thunk code.

  • jit/ThunkGenerators.cpp:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r90423 r90425  
     12011-07-05  Zoltan Herczeg  <zherczeg@inf.u-szeged.hu>
     2
     3        Make "Add optimised paths for a few maths functions" work on Qt
     4        https://bugs.webkit.org/show_bug.cgi?id=63893
     5
     6        Reviewed by Oliver Hunt.
     7
     8        Move the generated code to the .text section instead of .data section.
     9        Fix alignment for the 32 bit thunk code.
     10
     11        * jit/ThunkGenerators.cpp:
     12
    1132011-07-05  Filip Pizlo  <fpizlo@apple.com>
    214
  • trunk/Source/JavaScriptCore/jit/ThunkGenerators.cpp

    r90237 r90425  
    133133}
    134134   
    135 #if CPU(X86_64) && COMPILER(GCC) && PLATFORM(MAC)
     135#if CPU(X86_64) && COMPILER(GCC) && (PLATFORM(MAC) || OS(LINUX))
    136136
    137137#define defineUnaryDoubleOpWrapper(function) \
    138138    asm( \
     139        ".text\n" \
    139140        ".globl " SYMBOL_STRING(function##Thunk) "\n" \
    140141        SYMBOL_STRING(function##Thunk) ":" "\n" \
     
    147148    static MathThunk UnaryDoubleOpWrapper(function) = &function##Thunk;
    148149
    149 #elif CPU(X86) && COMPILER(GCC) && PLATFORM(MAC)
     150#elif CPU(X86) && COMPILER(GCC) && (PLATFORM(MAC) || OS(LINUX))
    150151#define defineUnaryDoubleOpWrapper(function) \
    151152    asm( \
    152          ".globl " SYMBOL_STRING(function##Thunk) "\n" \
    153          SYMBOL_STRING(function##Thunk) ":" "\n" \
    154          "subl $8, %esp\n" \
    155          "movsd %xmm0, (%esp) \n" \
    156          "call " SYMBOL_STRING_RELOCATION(function) "\n" \
    157          "fstpl (%esp) \n" \
    158          "movsd (%esp), %xmm0 \n" \
    159          "addl $8, %esp\n" \
    160          "ret\n" \
     153        ".text\n" \
     154        ".globl " SYMBOL_STRING(function##Thunk) "\n" \
     155        SYMBOL_STRING(function##Thunk) ":" "\n" \
     156        "subl $8, %esp\n" \
     157        "movsd %xmm0, (%esp) \n" \
     158        "call " SYMBOL_STRING_RELOCATION(function) "\n" \
     159        "fstpl (%esp) \n" \
     160        "movsd (%esp), %xmm0 \n" \
     161        "addl $8, %esp\n" \
     162        "ret\n" \
    161163    );\
    162164    extern "C" { \
Note: See TracChangeset for help on using the changeset viewer.