0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-24 03:07:54 +01:00

deps: V8: cherry-pick b1397772c70c

Original commit message:

    Use std::conditional_t for dependent types

    It otherwise doesn't compile on Apple Clang 14

    Change-Id: I8b2f4bfdc25557fab568456f669c440fb4e31d29
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5771471
    Commit-Queue: Joyee Cheung <joyee@igalia.com>
    Reviewed-by: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#95556}

Refs: b1397772c7
PR-URL: https://github.com/nodejs/node/pull/54077
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
Michaël Zasso 2024-08-09 16:33:17 +02:00
parent 415bc750a5
commit bcc1e2716c
No known key found for this signature in database
GPG Key ID: 770F7A9A5AE15600
2 changed files with 5 additions and 4 deletions

View File

@ -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.10',
'v8_embedder_string': '-node.11',
##### V8 defaults for Node.js #####

View File

@ -30,11 +30,12 @@ enum class DeoptFrameVisitMode {
template <DeoptFrameVisitMode mode, typename T>
using const_if_default =
std::conditional<mode == DeoptFrameVisitMode::kDefault, const T, T>::type;
std::conditional_t<mode == DeoptFrameVisitMode::kDefault, const T, T>;
template <DeoptFrameVisitMode mode>
using ValueNodeT = std::conditional<mode == DeoptFrameVisitMode::kDefault,
ValueNode*, ValueNode*&>::type;
using ValueNodeT =
std::conditional_t<mode == DeoptFrameVisitMode::kDefault, ValueNode*,
ValueNode*&>;
template <DeoptFrameVisitMode mode, typename Function>
void DeepForEachInputSingleFrameImpl(