Commit 0028b6de authored by Andreas Haas's avatar Andreas Haas Committed by Commit Bot

[v8][wasm] Enable testing of trap handlers on Windows

The field trial should be turned on by http://cl/220249819.

R=mpearson@chromium.org

Change-Id: Ifa0b4c5d7c9850c304bc4d2ce5b4fb44328f85da
Reviewed-on: https://chromium-review.googlesource.com/c/1318910
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Reviewed-by: default avatarJesse Doherty <jwd@chromium.org>
Reviewed-by: default avatarMark Pearson <mpearson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607529}
parent c4412cb4
...@@ -18,10 +18,13 @@ ...@@ -18,10 +18,13 @@
namespace { namespace {
// |kIsTrapHandlerSupported| indicates whether the trap handler is supported // |kIsTrapHandlerSupported| indicates whether the trap handler is supported
// (i.e. allowed to be enabled) on the currently platform. Currently we only // (i.e. allowed to be enabled) on the currently platform. Currently we only
// support non-Android, Linux x64. In the future more platforms will be // support non-Android, Linux x64, and Windows x64. In the future more platforms
// supported. Though this file is a browser test that is not built on Android. // will be supported. Though this file is a browser test that is not built on
// Android.
#if defined(OS_LINUX) && defined(ARCH_CPU_X86_64) #if defined(OS_LINUX) && defined(ARCH_CPU_X86_64)
constexpr bool kIsTrapHandlerSupported = true; constexpr bool kIsTrapHandlerSupported = true;
#elif defined(OS_WIN) && defined(ARCH_CPU_X86_64)
constexpr bool kIsTrapHandlerSupported = true;
#else #else
constexpr bool kIsTrapHandlerSupported = false; constexpr bool kIsTrapHandlerSupported = false;
#endif #endif
......
...@@ -5149,7 +5149,8 @@ ...@@ -5149,7 +5149,8 @@
"V8WasmTrapHandler": [ "V8WasmTrapHandler": [
{ {
"platforms": [ "platforms": [
"linux" "linux",
"windows"
], ],
"experiments": [ "experiments": [
{ {
......
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