cppgc: Assumption of stack location doesn't hold on Mac

Bug: v8:12067
Change-Id: I69cfde8aa37c687cd1daffffc54e6de166ea65dc
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3085277
Commit-Queue: Omer Katz <omerkatz@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Auto-Submit: Omer Katz <omerkatz@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#76205}
This commit is contained in:
Omer Katz 2021-08-10 16:36:18 +02:00 committed by V8 LUCI CQ
parent 82f7b654b8
commit 8d12fa96c3

View File

@ -153,11 +153,11 @@ V8_EXPORT void Abort();
// static
constexpr bool Platform::StackAddressesSmallerThanHeapAddresses() {
#if V8_OS_WIN || V8_OS_FUCHSIA
#if V8_OS_WIN || V8_OS_FUCHSIA || V8_OS_MACOSX
return false;
#else
return true;
#endif // V8_OS_WIN || V8_OS_FUCHSIA
#endif // V8_OS_WIN || V8_OS_FUCHSIA || V8_OS_MACOSX
}
} // namespace cppgc