Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index cc264f6aef251d4680e4bb4b1621353a74f18483..6d0d4913b57861617c11eca5722fb5b1e8b1a8b4 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2812,13 +2812,22 @@ WriteBarrierMode HeapObject::GetWriteBarrierMode( |
bool HeapObject::NeedsToEnsureDoubleAlignment() { |
-#ifndef V8_HOST_ARCH_64_BIT |
+#ifdef V8_HOST_ARCH_32_BIT |
return (IsFixedFloat64Array() || IsFixedDoubleArray() || |
IsConstantPoolArray()) && |
FixedArrayBase::cast(this)->length() != 0; |
#else |
return false; |
-#endif // V8_HOST_ARCH_64_BIT |
+#endif // V8_HOST_ARCH_32_BIT |
+} |
+ |
+ |
+bool HeapObject::NeedsToEnsureDoubleUnalignment() { |
+#ifdef V8_HOST_ARCH_32_BIT |
+ return IsHeapNumber(); |
+#else |
+ return false; |
+#endif // V8_HOST_ARCH_32_BIT |
} |