From f5239795b51dbc894b3ddcd49cf183151f414cdf Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Fri, 24 Mar 2023 18:30:56 +0100 Subject: deps: V8: cherry-pick 215ccd593edb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message: Use FlagValue::value() in SLOW_DCHECK Previously SLOW_DCHECK used the non-constexpr bool() operator of FlagValue, which cannot be used in constexpr. Switch to FlagValue::value() instead for make it compile in constexpr. Change-Id: I3e4f70d82c0027cf56999b6c4639479606151696 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4341495 Reviewed-by: Jakob Linke Commit-Queue: Joyee Cheung Cr-Commit-Position: refs/heads/main@{#86611} Refs: https://github.com/v8/v8/commit/215ccd593edbf18170fa1aae109b6b1cccf0ccbf PR-URL: https://github.com/nodejs/node/pull/47212 Reviewed-By: Michaƫl Zasso Reviewed-By: Debadree Chatterjee Reviewed-By: Richard Lau --- deps/v8/src/common/checks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deps') diff --git a/deps/v8/src/common/checks.h b/deps/v8/src/common/checks.h index a82fb4159f..33d7a8458b 100644 --- a/deps/v8/src/common/checks.h +++ b/deps/v8/src/common/checks.h @@ -15,7 +15,7 @@ #ifdef ENABLE_SLOW_DCHECKS #define SLOW_DCHECK(condition) \ - CHECK(!v8::internal::v8_flags.enable_slow_asserts || (condition)) + CHECK(!v8::internal::v8_flags.enable_slow_asserts.value() || (condition)) #define SLOW_DCHECK_IMPLIES(lhs, rhs) SLOW_DCHECK(!(lhs) || (rhs)) #else #define SLOW_DCHECK(condition) ((void)0) -- cgit v1.2.1