Index: src/ia32/stub-cache-ia32.cc |
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
index 5ea6d851c1735af826215de16c8e9afd54bfd2b6..aa8f47a880fced25832dfb4feb8270027f3fd943 100644 |
--- a/src/ia32/stub-cache-ia32.cc |
+++ b/src/ia32/stub-cache-ia32.cc |
@@ -3392,8 +3392,7 @@ void KeyedLoadStubCompiler::GenerateLoadExternalArray( |
// If we fail allocation of the HeapNumber, we still have a value on |
// top of the FPU stack. Remove it. |
__ bind(&failed_allocation); |
- __ ffree(); |
- __ fincstp(); |
+ __ fstp(0); |
// Fall through to slow case. |
// Slow case: Jump to runtime. |
@@ -3710,8 +3709,7 @@ void KeyedLoadStubCompiler::GenerateLoadFastDoubleElement( |
// A value was pushed on the floating point stack before the allocation, if |
// the allocation fails it needs to be removed. |
if (!CpuFeatures::IsSupported(SSE2)) { |
- __ ffree(); |
- __ fincstp(); |
+ __ fstp(0); |
} |
Handle<Code> slow_ic = |
masm->isolate()->builtins()->KeyedLoadIC_Slow(); |