diff options
Diffstat (limited to 'deps/v8/src/objects/fixed-array-inl.h')
-rw-r--r-- | deps/v8/src/objects/fixed-array-inl.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/deps/v8/src/objects/fixed-array-inl.h b/deps/v8/src/objects/fixed-array-inl.h index 9a768a0b56..413cd860e0 100644 --- a/deps/v8/src/objects/fixed-array-inl.h +++ b/deps/v8/src/objects/fixed-array-inl.h @@ -83,18 +83,16 @@ bool FixedArray::is_the_hole(Isolate* isolate, int index) { return get(isolate, index).IsTheHole(isolate); } -#if !defined(_WIN32) || (defined(_WIN64) && _MSC_VER < 1930 && __cplusplus < 201703L) void FixedArray::set(int index, Smi value) { - DCHECK_NE(map(), GetReadOnlyRoots().fixed_cow_array_map()); + DCHECK_NE(map(), EarlyGetReadOnlyRoots().unchecked_fixed_cow_array_map()); DCHECK_LT(static_cast<unsigned>(index), static_cast<unsigned>(length())); DCHECK(Object(value).IsSmi()); int offset = OffsetOfElementAt(index); RELAXED_WRITE_FIELD(*this, offset, value); } -#endif void FixedArray::set(int index, Object value) { - DCHECK_NE(GetReadOnlyRoots().fixed_cow_array_map(), map()); + DCHECK_NE(EarlyGetReadOnlyRoots().unchecked_fixed_cow_array_map(), map()); DCHECK(IsFixedArray()); DCHECK_LT(static_cast<unsigned>(index), static_cast<unsigned>(length())); int offset = OffsetOfElementAt(index); |