Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2022-04-12 12:11:51 +0300
committerMichaël Zasso <targos@protonmail.com>2022-04-12 23:10:14 +0300
commita052c030333faa36fdad2340c67b3dc25012538c (patch)
tree3ce67b1eb1c7aaa1969fcd06c1c3d5cb1329ac83 /deps
parent01cea9a8d8f322b792df42b0eb6ce6d522124cf4 (diff)
deps: V8: cherry-pick ca2a787a0b49
Original commit message: Fix build with Windows 10 20348 SDK Bug: chromium:1292528 Change-Id: If4da2ec92afb7b4fe9942778eca385344b9b6409 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3563539 Auto-Submit: Yuly Novikov <ynovikov@chromium.org> Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/main@{#79709} Refs: https://github.com/v8/v8/commit/ca2a787a0b49045a675b83f3f1a3ca9e2b426967 PR-URL: https://github.com/nodejs/node/pull/42657 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'deps')
-rw-r--r--deps/v8/src/base/cpu.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/src/base/cpu.cc b/deps/v8/src/base/cpu.cc
index dc61f4bf11e..571a1b6a2c2 100644
--- a/deps/v8/src/base/cpu.cc
+++ b/deps/v8/src/base/cpu.cc
@@ -764,9 +764,11 @@ CPU::CPU()
// user-space.
has_non_stop_time_stamp_counter_ = true;
- // Defined in winnt.h, but in a newer version of the Windows SDK than the one
- // that V8 requires, so we must copy the value here.
+ // Defined in winnt.h, but only in 10.0.20348.0 version of the Windows SDK.
+ // Copy the value here to support older versions as well.
+#if !defined(PF_ARM_V83_JSCVT_INSTRUCTIONS_AVAILABLE)
constexpr int PF_ARM_V83_JSCVT_INSTRUCTIONS_AVAILABLE = 44;
+#endif
has_jscvt_ =
IsProcessorFeaturePresent(PF_ARM_V83_JSCVT_INSTRUCTIONS_AVAILABLE);