Bug 1024678 - Avoid pushing/popping floating point registers in regexp jitcode, r=jandem.

This commit is contained in:
Brian Hackett 2014-06-12 14:13:49 -06:00
Родитель 2afff3e115
Коммит 802ff38b55
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);