Index: src/mips64/code-stubs-mips64.cc |
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc |
index 4ae802724e120a2991dd44010b2e7720b49a7c1d..bdbffc5f8095db0beac99a519cdc630e7f76a8a8 100644 |
--- a/src/mips64/code-stubs-mips64.cc |
+++ b/src/mips64/code-stubs-mips64.cc |
@@ -1133,11 +1133,7 @@ void ICCompareStub::GenerateGeneric(MacroAssembler* masm) { |
void StoreRegistersStateStub::Generate(MacroAssembler* masm) { |
__ mov(t9, ra); |
__ pop(ra); |
- if (save_doubles_ == kSaveFPRegs) { |
- __ PushSafepointRegistersAndDoubles(); |
- } else { |
- __ PushSafepointRegisters(); |
- } |
+ __ PushSafepointRegisters(); |
__ Jump(t9); |
} |
@@ -1145,11 +1141,7 @@ void StoreRegistersStateStub::Generate(MacroAssembler* masm) { |
void RestoreRegistersStateStub::Generate(MacroAssembler* masm) { |
__ mov(t9, ra); |
__ pop(ra); |
- if (save_doubles_ == kSaveFPRegs) { |
- __ PopSafepointRegistersAndDoubles(); |
- } else { |
- __ PopSafepointRegisters(); |
- } |
+ __ PopSafepointRegisters(); |
__ Jump(t9); |
} |
@@ -1415,23 +1407,15 @@ void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { |
} |
-void StoreRegistersStateStub::GenerateAheadOfTime( |
- Isolate* isolate) { |
- StoreRegistersStateStub stub1(isolate, kDontSaveFPRegs); |
- stub1.GetCode(); |
- // Hydrogen code stubs need stub2 at snapshot time. |
- StoreRegistersStateStub stub2(isolate, kSaveFPRegs); |
- stub2.GetCode(); |
+void StoreRegistersStateStub::GenerateAheadOfTime(Isolate* isolate) { |
+ StoreRegistersStateStub stub(isolate); |
+ stub.GetCode(); |
} |
-void RestoreRegistersStateStub::GenerateAheadOfTime( |
- Isolate* isolate) { |
- RestoreRegistersStateStub stub1(isolate, kDontSaveFPRegs); |
- stub1.GetCode(); |
- // Hydrogen code stubs need stub2 at snapshot time. |
- RestoreRegistersStateStub stub2(isolate, kSaveFPRegs); |
- stub2.GetCode(); |
+void RestoreRegistersStateStub::GenerateAheadOfTime(Isolate* isolate) { |
+ RestoreRegistersStateStub stub(isolate); |
+ stub.GetCode(); |
} |