diff --git a/common.gypi b/common.gypi index d4d64a90f56a6c..0dcf428002c4c7 100644 --- a/common.gypi +++ b/common.gypi @@ -36,7 +36,7 @@ # Reset this number to 0 on major V8 upgrades. # Increment by one for each non-official patch applied to deps/v8. - 'v8_embedder_string': '-node.2', + 'v8_embedder_string': '-node.3', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/src/execution/arm64/simulator-arm64.cc b/deps/v8/src/execution/arm64/simulator-arm64.cc index 829638b871bcf7..02768bd64a5987 100644 --- a/deps/v8/src/execution/arm64/simulator-arm64.cc +++ b/deps/v8/src/execution/arm64/simulator-arm64.cc @@ -35,6 +35,11 @@ #include "src/trap-handler/trap-handler-simulator.h" #endif // V8_ENABLE_WEBASSEMBLY +#if defined(_MSC_VER) +// define full memory barrier for msvc +#define __sync_synchronize _ReadWriteBarrier +#endif + namespace v8 { namespace internal { diff --git a/deps/v8/src/trap-handler/trap-handler-simulator.h b/deps/v8/src/trap-handler/trap-handler-simulator.h index 0ab80d202eee07..627f8e8dad4fcb 100644 --- a/deps/v8/src/trap-handler/trap-handler-simulator.h +++ b/deps/v8/src/trap-handler/trap-handler-simulator.h @@ -34,8 +34,10 @@ uintptr_t ProbeMemory(uintptr_t address, uintptr_t pc) // "ProbeMemory", but we want something more expressive on stack traces. #if V8_OS_DARWIN asm("_v8_internal_simulator_ProbeMemory"); -#else +#elif !defined(_MSC_VER) asm("v8_internal_simulator_ProbeMemory"); +#else // MSVC + ; #endif } // namespace v8::internal::trap_handler