diff --git a/common.gypi b/common.gypi index 9d4d89afcd5fbc..56c79543a5c35a 100644 --- a/common.gypi +++ b/common.gypi @@ -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 ##### diff --git a/deps/v8/src/utils/utils.h b/deps/v8/src/utils/utils.h index c578ab2a3f7481..4d8ef55942ceab 100644 --- a/deps/v8/src/utils/utils.h +++ b/deps/v8/src/utils/utils.h @@ -27,6 +27,8 @@ #if defined(V8_OS_AIX) #include // 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 name,