33 lines
1.4 KiB
Diff
33 lines
1.4 KiB
Diff
diff --git a/deps/v8/src/base/macros.h b/deps/v8/src/base/macros.h
|
|
index 92d9af5a..3c5bd90a 100644
|
|
--- a/deps/v8/src/base/macros.h
|
|
+++ b/deps/v8/src/base/macros.h
|
|
@@ -176,7 +176,7 @@ V8_INLINE Dest bit_cast(Source const& source) {
|
|
// DISABLE_CFI_ICALL -- Disable Control Flow Integrity indirect call checks,
|
|
// useful because calls into JITed code can not be CFI verified. Same for
|
|
// UBSan's function pointer type checks.
|
|
-#ifdef V8_OS_WIN
|
|
+#ifdef V8_CC_MSVC
|
|
// On Windows, also needs __declspec(guard(nocf)) for CFG.
|
|
#define DISABLE_CFI_ICALL \
|
|
V8_CLANG_NO_SANITIZE("cfi-icall") \
|
|
diff --git a/deps/v8/src/profiler/heap-snapshot-generator.cc b/deps/v8/src/profiler/heap-snapshot-generator.cc
|
|
index b25e5955..b71d4386 100644
|
|
--- a/deps/v8/src/profiler/heap-snapshot-generator.cc
|
|
+++ b/deps/v8/src/profiler/heap-snapshot-generator.cc
|
|
@@ -422,11 +422,11 @@ HeapSnapshot::HeapSnapshot(HeapProfiler* profiler,
|
|
static_assert(kSystemPointerSize != 4 || sizeof(HeapGraphEdge) == 12);
|
|
static_assert(kSystemPointerSize != 8 || sizeof(HeapGraphEdge) == 24);
|
|
static_assert(kSystemPointerSize != 4 || sizeof(HeapEntry) == 32);
|
|
-#if V8_CC_MSVC
|
|
+#if V8_OS_WIN
|
|
static_assert(kSystemPointerSize != 8 || sizeof(HeapEntry) == 48);
|
|
-#else // !V8_CC_MSVC
|
|
+#else // !V8_OS_WIN
|
|
static_assert(kSystemPointerSize != 8 || sizeof(HeapEntry) == 40);
|
|
-#endif // !V8_CC_MSVC
|
|
+#endif // !V8_OS_WIN
|
|
memset(&gc_subroot_entries_, 0, sizeof(gc_subroot_entries_));
|
|
}
|
|
|