Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: src/objects-inl.h

Issue 1108373002: Fix JSArrayBuffer for big endian. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698