Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 4c50e7c62b464abe530827fe1e343ee8e3954736..899f278f42374d2004fce21dccdd77a76ce162f9 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -1081,20 +1081,10 @@ void RestoreRegistersStateStub::GenerateAheadOfTime(Isolate* isolate) { |
void CodeStub::GenerateFPStubs(Isolate* isolate) { |
+ // Generate if not already in cache. |
SaveFPRegsMode mode = kSaveFPRegs; |
- CEntryStub save_doubles(isolate, 1, mode); |
- StoreBufferOverflowStub stub(isolate, mode); |
- // These stubs might already be in the snapshot, detect that and don't |
- // regenerate, which would lead to code stub initialization state being messed |
- // up. |
- Code* save_doubles_code; |
- if (!save_doubles.FindCodeInCache(&save_doubles_code)) { |
- save_doubles_code = *save_doubles.GetCode(); |
- } |
- Code* store_buffer_overflow_code; |
- if (!stub.FindCodeInCache(&store_buffer_overflow_code)) { |
- store_buffer_overflow_code = *stub.GetCode(); |
- } |
+ CEntryStub(isolate, 1, mode).GetCode(); |
+ StoreBufferOverflowStub(isolate, mode).GetCode(); |
isolate->set_fp_stubs_generated(true); |
} |