зеркало из https://github.com/mozilla/gecko-dev.git
Bug 998158 - SpiderMonkey: Use specific feature tests instead of calling getSSEState() r=sstangl
This commit is contained in:
Родитель
70c5783271
Коммит
f405c5abdb
|
@ -1412,6 +1412,7 @@ private:
|
|||
#endif
|
||||
}
|
||||
|
||||
public:
|
||||
#if WTF_CPU_X86
|
||||
#if WTF_OS_MAC_OS_X
|
||||
|
||||
|
@ -1509,6 +1510,7 @@ private:
|
|||
return s_sseCheckState >= HasSSE4_2;
|
||||
}
|
||||
|
||||
private:
|
||||
#ifdef DEBUG
|
||||
static bool s_floatingPointDisabled;
|
||||
static bool s_SSE3Disabled;
|
||||
|
|
|
@ -781,14 +781,16 @@ class AssemblerX86Shared
|
|||
masm.int3();
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
static bool HasSSE2() {
|
||||
return JSC::MacroAssembler::getSSEState() >= JSC::MacroAssembler::HasSSE2;
|
||||
return JSC::MacroAssembler::isSSE2Present();
|
||||
}
|
||||
#endif
|
||||
static bool HasSSE3() {
|
||||
return JSC::MacroAssembler::getSSEState() >= JSC::MacroAssembler::HasSSE3;
|
||||
return JSC::MacroAssembler::isSSE3Present();
|
||||
}
|
||||
static bool HasSSE41() {
|
||||
return JSC::MacroAssembler::getSSEState() >= JSC::MacroAssembler::HasSSE4_1;
|
||||
return JSC::MacroAssembler::isSSE41Present();
|
||||
}
|
||||
|
||||
// The below cmpl methods switch the lhs and rhs when it invokes the
|
||||
|
|
Загрузка…
Ссылка в новой задаче