mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 673850 - Fix YARR with Solaris Studio compiler. r=dmandelin.
This commit is contained in:
parent
cf8ba72652
commit
1b1a05797c
@ -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;"
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user