We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b8f143 commit b30cf41Copy full SHA for b30cf41
2 files changed
src/llv8-constants.cc
@@ -501,7 +501,7 @@ void DescriptorArray::Load() {
501
kFirstIndex = LoadOptionalConstant({"prop_idx_first"}, 0);
502
kSize = LoadConstant({"prop_desc_size"});
503
kHeaderSize = LoadOptionalConstant(
504
- {"class_DescriptorArray__header_size__uintptr_t"}, 0);
+ {"class_DescriptorArray__header_size__uintptr_t"}, 24);
505
}
506
507
src/llv8-inl.h
@@ -889,7 +889,7 @@ inline T DescriptorArray::Get(int index, int64_t offset) {
889
if (v8()->descriptor_array()->kFirstIndex.Loaded()) {
890
return FixedArray::Get<T>(
891
*(v8()->descriptor_array()->kFirstIndex) + index + offset, err);
892
- } else if (v8()->descriptor_array()->kHeaderSize.Loaded()) {
+ } else if (v8()->descriptor_array()->kHeaderSize.Check()) {
893
index *= v8()->common()->kPointerSize;
894
index += *(v8()->descriptor_array()->kHeaderSize);
895
index += (v8()->common()->kPointerSize * offset);
0 commit comments