Changeset 96347 in webkit


Ignore:
Timestamp:
Sep 29, 2011 12:37:53 PM (13 years ago)
Author:
barraclough@apple.com
Message:

DFG operation calls should be stdcall in Linux JSVALUE32_64 DFG JIT
https://bugs.webkit.org/show_bug.cgi?id=69058

Patch by Yuqiang Xian <yuqiang.xian@intel.com> on 2011-09-29
Reviewed by Gavin Barraclough.

Also Fixed the stdcall FunctionPtr constructors to make them compiled correctly on Linux

  • assembler/MacroAssemblerCodeRef.h:

(JSC::FunctionPtr::FunctionPtr):

Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r96346 r96347  
     12011-09-29  Yuqiang Xian  <yuqiang.xian@intel.com>
     2
     3        DFG operation calls should be stdcall in Linux JSVALUE32_64 DFG JIT
     4        https://bugs.webkit.org/show_bug.cgi?id=69058
     5
     6        Reviewed by Gavin Barraclough.
     7
     8        Also Fixed the stdcall FunctionPtr constructors to make them compiled correctly on Linux
     9
     10        * assembler/MacroAssemblerCodeRef.h:
     11        (JSC::FunctionPtr::FunctionPtr):
     12
    1132011-09-29  Mark Hahnenberg  <mhahnenberg@apple.com>
    214
  • trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj

    r96175 r96347  
    10631063                86880F1A14328BB900B08D42 /* DFGJITCompilerInlineMethods.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DFGJITCompilerInlineMethods.h; path = dfg/DFGJITCompilerInlineMethods.h; sourceTree = "<group>"; };
    10641064                86880F1B14328BB900B08D42 /* DFGSpeculativeJIT32_64.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = DFGSpeculativeJIT32_64.cpp; path = dfg/DFGSpeculativeJIT32_64.cpp; sourceTree = "<group>"; };
     1065                86880F311434FFAF00B08D42 /* ChangeLog */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ChangeLog; sourceTree = "<group>"; };
    10651066                868BFA00117CEFD100B908B1 /* AtomicString.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AtomicString.cpp; path = text/AtomicString.cpp; sourceTree = "<group>"; };
    10661067                868BFA01117CEFD100B908B1 /* AtomicString.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AtomicString.h; path = text/AtomicString.h; sourceTree = "<group>"; };
     
    15321533                        isa = PBXGroup;
    15331534                        children = (
     1535                                86880F311434FFAF00B08D42 /* ChangeLog */,
    15341536                                651122E5140469BA002B101D /* testRegExp.cpp */,
    15351537                                A718F8211178EB4B002465A7 /* create_regex_tables */,
  • trunk/Source/JavaScriptCore/assembler/MacroAssemblerCodeRef.h

    r96293 r96347  
    5353#endif
    5454
    55 #if CPU(X86) && PLATFORM(MAC)
     55#if CPU(X86) && !PLATFORM(WINDOWS)
    5656#define CALLING_CONVENTION_IS_CDECL 1
    5757#else
     
    110110#define STDCALL __attribute__ ((stdcall))
    111111    template<typename returnType>
    112     FunctionPtr(returnType STDCALL(*value)())
     112    FunctionPtr(returnType (STDCALL *value)())
    113113        : m_value((void*)value)
    114114    {
     
    117117
    118118    template<typename returnType, typename argType1>
    119     FunctionPtr(returnType STDCALL(*value)(argType1))
     119    FunctionPtr(returnType (STDCALL *value)(argType1))
    120120        : m_value((void*)value)
    121121    {
     
    124124
    125125    template<typename returnType, typename argType1, typename argType2>
    126     FunctionPtr(returnType STDCALL(*value)(argType1, argType2))
     126    FunctionPtr(returnType (STDCALL *value)(argType1, argType2))
    127127        : m_value((void*)value)
    128128    {
     
    131131
    132132    template<typename returnType, typename argType1, typename argType2, typename argType3>
    133     FunctionPtr(returnType STDCALL(*value)(argType1, argType2, argType3))
     133    FunctionPtr(returnType (STDCALL *value)(argType1, argType2, argType3))
    134134        : m_value((void*)value)
    135135    {
     
    138138
    139139    template<typename returnType, typename argType1, typename argType2, typename argType3, typename argType4>
    140     FunctionPtr(returnType STDCALL(*value)(argType1, argType2, argType3, argType4))
     140    FunctionPtr(returnType (STDCALL *value)(argType1, argType2, argType3, argType4))
    141141        : m_value((void*)value)
    142142    {
Note: See TracChangeset for help on using the changeset viewer.