Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index b0a50daf05d6b8305cf062d04860e9707194441d..a44c1026584cf3bcd1efcaf921ee6f4150133fa8 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -1138,11 +1138,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); |
} |
@@ -1150,12 +1146,7 @@ void StoreRegistersStateStub::Generate(MacroAssembler* masm) { |
void RestoreRegistersStateStub::Generate(MacroAssembler* masm) { |
__ mov(t9, ra); |
__ pop(ra); |
- __ StoreToSafepointRegisterSlot(t9, t9); |
- if (save_doubles_ == kSaveFPRegs) { |
- __ PopSafepointRegistersAndDoubles(); |
- } else { |
- __ PopSafepointRegisters(); |
- } |
+ __ PopSafepointRegisters(); |
__ Jump(t9); |
} |
@@ -1421,23 +1412,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(); |
} |