Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 33846196314ec1560306d475a4c977a8d242f0aa..61dfa44a3ff0abdef8dcaa232ef0f7c9eb53a043 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -6428,7 +6428,11 @@ ACCESSORS(JSArrayBuffer, byte_length, Object, kByteLengthOffset) |
void JSArrayBuffer::set_bit_field(uint32_t bits) { |
if (kInt32Size != kPointerSize) { |
- WRITE_UINT32_FIELD(this, kBitFieldOffset + kInt32Size, 0); |
+#if V8_TARGET_LITTLE_ENDIAN |
+ WRITE_UINT32_FIELD(this, kBitFieldSlot + kInt32Size, 0); |
+#else |
+ WRITE_UINT32_FIELD(this, kBitFieldSlot, 0); |
+#endif |
} |
WRITE_UINT32_FIELD(this, kBitFieldOffset, bits); |
} |