summaryrefslogtreecommitdiff
path: root/deps/v8/src
diff options
context:
space:
mode:
authorJiawen Geng <technicalcute@gmail.com>2021-09-06 02:34:08 +0000
committerNode.js GitHub Bot <github-bot@iojs.org>2021-09-09 06:36:50 +0000
commit513a979b4421490948b328ef2d36cfbbfbdd89ae (patch)
treeb57b135e96eece4682b60705627307776c23acf5 /deps/v8/src
parent8c905b81c1ea0d90bb8a11e09d26c1c3b5f3b950 (diff)
downloadnode-new-513a979b4421490948b328ef2d36cfbbfbdd89ae.tar.gz
deps: patch for v8 on windows
PR-URL: https://github.com/nodejs/node/pull/40010 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps/v8/src')
-rw-r--r--deps/v8/src/objects/fixed-array-inl.h2
-rw-r--r--deps/v8/src/objects/fixed-array.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/deps/v8/src/objects/fixed-array-inl.h b/deps/v8/src/objects/fixed-array-inl.h
index 3b450634a5..61ee533273 100644
--- a/deps/v8/src/objects/fixed-array-inl.h
+++ b/deps/v8/src/objects/fixed-array-inl.h
@@ -84,7 +84,7 @@ bool FixedArray::is_the_hole(Isolate* isolate, int index) {
return get(isolate, index).IsTheHole(isolate);
}
-#if !defined(_WIN32) || defined(_WIN64)
+#if !defined(_WIN32) || (defined(_WIN64) && _MSC_VER < 1930)
void FixedArray::set(int index, Smi value) {
DCHECK_NE(map(), GetReadOnlyRoots().fixed_cow_array_map());
DCHECK_LT(static_cast<unsigned>(index), static_cast<unsigned>(length()));
diff --git a/deps/v8/src/objects/fixed-array.h b/deps/v8/src/objects/fixed-array.h
index 23904b8196..8d6e4b1dfb 100644
--- a/deps/v8/src/objects/fixed-array.h
+++ b/deps/v8/src/objects/fixed-array.h
@@ -134,7 +134,9 @@ class FixedArray
inline bool is_the_hole(Isolate* isolate, int index);
// Setter that doesn't need write barrier.
-#if defined(_WIN32) && !defined(_WIN64)
+#if !defined(_WIN32) || (defined(_WIN64) && _MSC_VER < 1930)
+ inline void set(int index, Smi value);
+#else
inline void set(int index, Smi value) {
DCHECK_NE(map(), GetReadOnlyRoots().fixed_cow_array_map());
DCHECK_LT(static_cast<unsigned>(index), static_cast<unsigned>(length()));
@@ -142,8 +144,6 @@ class FixedArray
int offset = OffsetOfElementAt(index);
RELAXED_WRITE_FIELD(*this, offset, value);
}
-#else
- inline void set(int index, Smi value);
#endif
// Setter with explicit barrier mode.