зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1024678 - Avoid pushing/popping floating point registers in regexp jitcode, r=jandem.
This commit is contained in:
Родитель
2afff3e115
Коммит
802ff38b55
|
@ -394,7 +394,7 @@ NativeRegExpMacroAssembler::GenerateCode(JSContext *cx)
|
|||
masm.movePtr(ImmPtr(runtime), temp1);
|
||||
|
||||
// Save registers before calling C function
|
||||
RegisterSet volatileRegs = RegisterSet::Volatile();
|
||||
GeneralRegisterSet volatileRegs = GeneralRegisterSet::Volatile();
|
||||
#if defined(JS_CODEGEN_ARM)
|
||||
volatileRegs.add(Register::FromCode(Registers::lr));
|
||||
#elif defined(JS_CODEGEN_MIPS)
|
||||
|
@ -733,7 +733,7 @@ NativeRegExpMacroAssembler::CheckNotBackReferenceIgnoreCase(int start_reg, Label
|
|||
JS_ASSERT(mode_ == JSCHAR);
|
||||
|
||||
// Note: temp1 needs to be saved/restored if it is volatile, as it is used after the call.
|
||||
RegisterSet volatileRegs = RegisterSet::Volatile();
|
||||
GeneralRegisterSet volatileRegs = GeneralRegisterSet::Volatile();
|
||||
volatileRegs.takeUnchecked(temp0);
|
||||
volatileRegs.takeUnchecked(temp2);
|
||||
masm.PushRegsInMask(volatileRegs);
|
||||
|
|
Загрузка…
Ссылка в новой задаче