Index: src/ia32/code-stubs-ia32.h |
diff --git a/src/ia32/code-stubs-ia32.h b/src/ia32/code-stubs-ia32.h |
index 9d5c0beeaef428eb047aeaf42e87cf51c336e7c6..c2ae5f0faed566d6f36bcbe871e65a11cd2d7523 100644 |
--- a/src/ia32/code-stubs-ia32.h |
+++ b/src/ia32/code-stubs-ia32.h |
@@ -64,7 +64,9 @@ class TranscendentalCacheStub: public PlatformCodeStub { |
class StoreBufferOverflowStub: public PlatformCodeStub { |
public: |
explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) |
- : save_doubles_(save_fp) { } |
+ : save_doubles_(save_fp) { |
+ ASSERT(CpuFeatures::IsSafeForSnapshot(SSE2) || save_fp == kDontSaveFPRegs); |
+ } |
void Generate(MacroAssembler* masm); |
@@ -397,6 +399,7 @@ class RecordWriteStub: public PlatformCodeStub { |
regs_(object, // An input reg. |
address, // An input reg. |
value) { // One scratch reg. |
+ ASSERT(CpuFeatures::IsSafeForSnapshot(SSE2) || fp_mode == kDontSaveFPRegs); |
} |
enum Mode { |