mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
deps: V8: cherry-pick 37baecdd9479
Original commit message:
[base] Guard int8_t ReadUnalignedValue overload on Solaris
On Solaris, int8_t is a typedef for char, so this overload collides with
ReadUnalignedValue(const char*) and fails to compile. Guard it with
V8_OS_SOLARIS, as already used elsewhere in the platform code.
Introduced in:
https://chromium-review.googlesource.com/c/v8/v8/+/7900500
Change-Id: I87c65412f412b6cf4de1f53ccaca539c1ce8c033
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8409815
Reviewed-by: Maya Lekova <mslekova@chromium.org>
Reviewed-by: Anton Bikineev <bikineev@chromium.org>
Reviewed-by: Joyee Cheung <joyee@igalia.com>
Commit-Queue: Joyee Cheung <joyee@igalia.com>
Cr-Commit-Position: refs/heads/main@{#110014}
Refs: https://github.com/v8/v8/commit/37baecdd9479ce61a12494ef6fdd271ac721964d
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/65161
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
This commit is contained in:
1 parent
9e274db98a
commit
daf03c0361
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -44,7 +44,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.14',
|
||||
'v8_embedder_string': '-node.15',
|
||||
|
||||
##### V8 defaults for Node.js #####
|
||||
|
||||
|
||||
Vendored
+2
@@ -37,10 +37,12 @@ static inline V ReadUnalignedValue(const char p[sizeof(V)]) {
|
||||
return ReadUnalignedValue<V>(reinterpret_cast<Address>(p));
|
||||
}
|
||||
|
||||
#if !defined(V8_OS_SOLARIS)
|
||||
template <typename V>
|
||||
static inline V ReadUnalignedValue(const int8_t p[sizeof(V)]) {
|
||||
return ReadUnalignedValue<V>(reinterpret_cast<Address>(p));
|
||||
}
|
||||
#endif
|
||||
|
||||
template <typename V>
|
||||
static inline V ReadUnalignedValue(const uint8_t p[sizeof(V)]) {
|
||||
|
||||
Reference in new issue
Block a user