Skip to content

Commit 3e82c8d

Browse files
targosCommit Bot
authored andcommitted
Fix check for V8_TARGET_OS_WIN macro
On Windows with MSVC, the current code triggers a fatal error C1017 (invalid integer constant expression). Change-Id: I41c371a1d7909737052c03c830bb62c41154a192 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1871918 Commit-Queue: Michaël Zasso <mic.besace@gmail.com> Commit-Queue: Jakob Gruber <jgruber@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#64418}
1 parent 48756fc commit 3e82c8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/codegen/turbo-assembler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class V8_EXPORT_PRIVATE TurboAssemblerBase : public Assembler {
102102
static bool IsAddressableThroughRootRegister(
103103
Isolate* isolate, const ExternalReference& reference);
104104

105-
#if V8_TARGET_OS_WIN
105+
#ifdef V8_TARGET_OS_WIN
106106
// Minimum page size. We must touch memory once per page when expanding the
107107
// stack, to avoid access violations.
108108
static constexpr int kStackPageSize = 4 * KB;

0 commit comments

Comments
 (0)