Bug 673850 - Fix YARR with Solaris Studio compiler. r=dmandelin.

This commit is contained in:
Ginn Chen 2011-07-28 11:35:30 +08:00
parent cf8ba72652
commit 1b1a05797c
3 changed files with 3 additions and 3 deletions

View File

@ -1319,7 +1319,7 @@ private:
: "%eax", "%ecx", "%edx"
);
#endif
#elif WTF_COMPILER_SUNPRO
#elif WTF_COMPILER_SUNCC
#if WTF_CPU_X86_64
asm (
"movl $0x1, %%eax;"

View File

@ -2305,7 +2305,7 @@ class YarrGenerator : private MacroAssembler {
push(X86Registers::edi);
push(X86Registers::esi);
// load output into edi (2 = saved ebp + return address).
#if WTF_COMPILER_MSVC
#if WTF_COMPILER_MSVC || WTF_COMPILER_SUNCC
loadPtr(Address(X86Registers::ebp, 2 * sizeof(void*)), input);
loadPtr(Address(X86Registers::ebp, 3 * sizeof(void*)), index);
loadPtr(Address(X86Registers::ebp, 4 * sizeof(void*)), length);

View File

@ -37,7 +37,7 @@
#include "assembler/assembler/MacroAssembler.h"
#include "YarrPattern.h"
#if WTF_CPU_X86 && !WTF_COMPILER_MSVC
#if WTF_CPU_X86 && !WTF_COMPILER_MSVC && !WTF_COMPILER_SUNCC
#define YARR_CALL __attribute__ ((regparm (3)))
#else
#define YARR_CALL