Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 03aea64736d818f456c748f76a31d583593dc664..b05de472e9c81f8b1225d0d5f5448e7868779f26 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2758,6 +2758,17 @@ WriteBarrierMode HeapObject::GetWriteBarrierMode( |
} |
+bool HeapObject::NeedsToEnsureDoubleAlignment() { |
+#ifndef V8_HOST_ARCH_64_BIT |
+ return (IsFixedFloat64Array() || IsFixedDoubleArray() || |
+ IsConstantPoolArray()) && |
+ FixedArrayBase::cast(this)->length() != 0; |
+#else |
+ return false; |
+#endif // V8_HOST_ARCH_64_BIT |
+} |
+ |
+ |
void FixedArray::set(int index, |
Object* value, |
WriteBarrierMode mode) { |