mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
deps: V8: cherry-pick 97199f686e2f
Original commit message: aix: add work around for f16 type AIX builds started to fail after this commitd057564707
. Change-Id: I25a5c4ae3b4fe5c27a9fb9e35e2bcd2bbed40351 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5789180 Reviewed-by: Clemens Backes <clemensb@chromium.org> Reviewed-by: Nico Hartmann <nicohartmann@chromium.org> Commit-Queue: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/main@{#95952} Refs:97199f686e
PR-URL: https://github.com/nodejs/node/pull/54536 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
parent
1e16779fa1
commit
6e150f9527
@ -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.8',
|
||||
'v8_embedder_string': '-node.9',
|
||||
|
||||
##### V8 defaults for Node.js #####
|
||||
|
||||
|
9
deps/v8/src/utils/utils.h
vendored
9
deps/v8/src/utils/utils.h
vendored
@ -27,6 +27,8 @@
|
||||
|
||||
#if defined(V8_OS_AIX)
|
||||
#include <fenv.h> // NOLINT(build/c++11)
|
||||
|
||||
#include "src/wasm/float16.h"
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
@ -814,6 +816,13 @@ T FpOpWorkaround(T input, T value) {
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
template <>
|
||||
inline Float16 FpOpWorkaround(Float16 input, Float16 value) {
|
||||
float result = FpOpWorkaround(input.ToFloat32(), value.ToFloat32());
|
||||
return Float16::FromFloat32(result);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
V8_EXPORT_PRIVATE bool PassesFilter(base::Vector<const char> name,
|
||||
|
Loading…
Reference in New Issue
Block a user