mirror of
https://github.com/nodejs/node.git
synced 2026-11-15 10:36:53 -05: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: https://github.com/v8/v8/commit/b1397772c70c7f76a4e922405e82b4895e9a5279
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:
2 files changed
+5
-4
No files matched your search
+1
-1
@@ -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 #####
|
||||
|
||||
|
||||
Vendored
+4
-3
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user