Commit 14f07a8b authored by Junliang Yan's avatar Junliang Yan Committed by Commit Bot

[ptr-compr] Define kTaggedPayloadOffset correctly on Big Endian

smi size is sill 8 bytes when V8_COMPRESS_POINTERS is undefined.

Bug: v8:7703
Change-Id: I0d1e757e42e8b1e6b10960420135245e24553175
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1508572
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Auto-Submit: Junliang Yan <jyan@ca.ibm.com>
Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60097}
parent 41aa8a60
...@@ -36,10 +36,10 @@ class EmbedderDataSlot ...@@ -36,10 +36,10 @@ class EmbedderDataSlot
V8_INLINE EmbedderDataSlot(EmbedderDataArray array, int entry_index); V8_INLINE EmbedderDataSlot(EmbedderDataArray array, int entry_index);
V8_INLINE EmbedderDataSlot(JSObject object, int embedder_field_index); V8_INLINE EmbedderDataSlot(JSObject object, int embedder_field_index);
#ifdef V8_TARGET_LITTLE_ENDIAN #if defined(V8_TARGET_BIG_ENDIAN) && defined(V8_COMPRESS_POINTERS)
static constexpr int kTaggedPayloadOffset = 0;
#else
static constexpr int kTaggedPayloadOffset = kTaggedSize; static constexpr int kTaggedPayloadOffset = kTaggedSize;
#else
static constexpr int kTaggedPayloadOffset = 0;
#endif #endif
#ifdef V8_COMPRESS_POINTERS #ifdef V8_COMPRESS_POINTERS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment