Index: src/register-configuration.cc |
diff --git a/src/register-configuration.cc b/src/register-configuration.cc |
index 084e735af1e9c2346af612984f4b9cdb2ac769e5..197ce35fec8a1f23c3b1c3fefd93a4140e290523 100644 |
--- a/src/register-configuration.cc |
+++ b/src/register-configuration.cc |
@@ -44,7 +44,9 @@ class ArchDefaultRegisterConfiguration : public RegisterConfiguration { |
kMaxAllocatableDoubleRegisterCount, |
kMaxAllocatableDoubleRegisterCount, |
#elif V8_TARGET_ARCH_X87 |
- kMaxAllocatableGeneralRegisterCount, 1, 1, |
+ kMaxAllocatableGeneralRegisterCount, |
+ compiler == TURBOFAN ? 1 : kMaxAllocatableDoubleRegisterCount, |
+ compiler == TURBOFAN ? 1 : kMaxAllocatableDoubleRegisterCount, |
#elif V8_TARGET_ARCH_X64 |
kMaxAllocatableGeneralRegisterCount, |
kMaxAllocatableDoubleRegisterCount, |