Skip to content

Commit b30cf41

Browse files
committed
src: use 24 as default for kHeaderSize
PR-URL: #330 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 1b8f143 commit b30cf41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/llv8-constants.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ void DescriptorArray::Load() {
501501
kFirstIndex = LoadOptionalConstant({"prop_idx_first"}, 0);
502502
kSize = LoadConstant({"prop_desc_size"});
503503
kHeaderSize = LoadOptionalConstant(
504-
{"class_DescriptorArray__header_size__uintptr_t"}, 0);
504+
{"class_DescriptorArray__header_size__uintptr_t"}, 24);
505505
}
506506

507507

src/llv8-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ inline T DescriptorArray::Get(int index, int64_t offset) {
889889
if (v8()->descriptor_array()->kFirstIndex.Loaded()) {
890890
return FixedArray::Get<T>(
891891
*(v8()->descriptor_array()->kFirstIndex) + index + offset, err);
892-
} else if (v8()->descriptor_array()->kHeaderSize.Loaded()) {
892+
} else if (v8()->descriptor_array()->kHeaderSize.Check()) {
893893
index *= v8()->common()->kPointerSize;
894894
index += *(v8()->descriptor_array()->kHeaderSize);
895895
index += (v8()->common()->kPointerSize * offset);

0 commit comments

Comments
 (0)