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:
parent
415bc750a5
commit
bcc1e2716c
@ -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 #####
|
||||
|
||||
|
7
deps/v8/src/maglev/maglev-ir-inl.h
vendored
7
deps/v8/src/maglev/maglev-ir-inl.h
vendored
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user