[ptr-compr] Fix broken ptr-compr build
Bug: v8:7703 Change-Id: I2fe68c54e59fd452ee724ce7fbd80eca6ab5e096 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1541106 Auto-Submit: Igor Sheludko <ishell@chromium.org> Commit-Queue: Ben Titzer <titzer@chromium.org> Reviewed-by: Ben Titzer <titzer@chromium.org> Cr-Commit-Position: refs/heads/master@{#60493}
This commit is contained in:
parent
613a1c2f3a
commit
b45518fe5a
@ -527,8 +527,14 @@ class WasmInstanceObject : public JSObject {
|
||||
DEFINE_FIELD_OFFSET_CONSTANTS(JSObject::kHeaderSize,
|
||||
WASM_INSTANCE_OBJECT_FIELDS)
|
||||
STATIC_ASSERT(IsAligned(kSize, kTaggedSize));
|
||||
#define ASSERT_FIELD_ALIGNED(offset, size) \
|
||||
STATIC_ASSERT(size == 0 || IsAligned(offset, size));
|
||||
// TODO(ishell, v8:8875): When pointer compression is enabled 8-byte size
|
||||
// fields (external pointers, doubles and BigInt data) are only kTaggedSize
|
||||
// aligned so checking for alignments of fields bigger than kTaggedSize
|
||||
// doesn't make sense until v8:8875 is fixed.
|
||||
#define ASSERT_FIELD_ALIGNED(offset, size) \
|
||||
STATIC_ASSERT(size == 0 || IsAligned(offset, size) || \
|
||||
(COMPRESS_POINTERS_BOOL && (size == kSystemPointerSize) && \
|
||||
IsAligned(offset, kTaggedSize)));
|
||||
WASM_INSTANCE_OBJECT_FIELDS(ASSERT_FIELD_ALIGNED)
|
||||
#undef ASSERT_FIELD_ALIGNED
|
||||
#undef WASM_INSTANCE_OBJECT_FIELDS
|
||||
|
Loading…
Reference in New Issue
Block a user