Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index e9f30952118d3291f464895735d176c55ba6041d..e3d05266922e3f27b5788b7309a42d864d2b9b9f 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -989,20 +989,10 @@ void CodeStub::GenerateStubsAheadOfTime(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); |
} |