deps: V8: cherry-pick 97199f686e2f

Original commit message:

    aix: add work around for f16 type

    AIX builds started to fail after this commit d057564707.

    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:
Michaël Zasso 2024-09-05 07:22:42 +02:00 committed by Node.js GitHub Bot
parent 1e16779fa1
commit 6e150f9527
2 changed files with 10 additions and 1 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.8',
'v8_embedder_string': '-node.9',
##### V8 defaults for Node.js #####

View File

@ -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,