Commit 7b55fc09 authored by Seth Brenith's avatar Seth Brenith Committed by V8 LUCI CQ

[arm64] Implement jscvt feature check for Windows

Change-Id: I7cf964294304c380fb285eebf1e65b0f84dec1a7
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3384233Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Commit-Queue: Seth Brenith <seth.brenith@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#78603}
parent c73ab4ee
......@@ -50,6 +50,8 @@
#include "src/base/logging.h"
#include "src/base/platform/wrappers.h"
#if V8_OS_WIN
#include <windows.h>
#include "src/base/win32-headers.h"
#endif
......@@ -762,6 +764,13 @@ 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.
constexpr int PF_ARM_V83_JSCVT_INSTRUCTIONS_AVAILABLE = 44;
has_jscvt_ =
IsProcessorFeaturePresent(PF_ARM_V83_JSCVT_INSTRUCTIONS_AVAILABLE);
#elif V8_OS_LINUX
// Try to extract the list of CPU features from ELF hwcaps.
uint32_t hwcaps = ReadELFHWCaps();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment