From 599e9ce759517043ea8ec212759559a603d1bca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Mon, 11 Jul 2022 17:04:28 +0200 Subject: [PATCH] deps: patch V8 to 9.4.146.26 Refs: https://github.com/v8/v8/compare/9.4.146.24...9.4.146.26 PR-URL: https://github.com/nodejs/node/pull/43778 Reviewed-By: Richard Lau Reviewed-By: Jiawen Geng --- deps/v8/include/v8-version.h | 2 +- .../src/compiler/backend/ia32/instruction-selector-ia32.cc | 5 ++++- deps/v8/src/compiler/simplified-operator-reducer.cc | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/deps/v8/include/v8-version.h b/deps/v8/include/v8-version.h index a4ef2015e02a3d..7f77900fb9bba6 100644 --- a/deps/v8/include/v8-version.h +++ b/deps/v8/include/v8-version.h @@ -11,7 +11,7 @@ #define V8_MAJOR_VERSION 9 #define V8_MINOR_VERSION 4 #define V8_BUILD_NUMBER 146 -#define V8_PATCH_LEVEL 24 +#define V8_PATCH_LEVEL 26 // Use 1 for candidates and 0 otherwise. // (Boolean macro values are not supported by all preprocessors.) diff --git a/deps/v8/src/compiler/backend/ia32/instruction-selector-ia32.cc b/deps/v8/src/compiler/backend/ia32/instruction-selector-ia32.cc index b4714408e83f2d..5d45fcd46b4b84 100644 --- a/deps/v8/src/compiler/backend/ia32/instruction-selector-ia32.cc +++ b/deps/v8/src/compiler/backend/ia32/instruction-selector-ia32.cc @@ -99,11 +99,14 @@ class IA32OperandGenerator final : public OperandGenerator { bool CanBeImmediate(Node* node) { switch (node->opcode()) { case IrOpcode::kInt32Constant: - case IrOpcode::kNumberConstant: case IrOpcode::kExternalConstant: case IrOpcode::kRelocatableInt32Constant: case IrOpcode::kRelocatableInt64Constant: return true; + case IrOpcode::kNumberConstant: { + const double value = OpParameter(node->op()); + return bit_cast(value) == 0; + } case IrOpcode::kHeapConstant: { // TODO(bmeurer): We must not dereference handles concurrently. If we // really have to this here, then we need to find a way to put this diff --git a/deps/v8/src/compiler/simplified-operator-reducer.cc b/deps/v8/src/compiler/simplified-operator-reducer.cc index ea9e9f4ba5dbc8..33edd66b4ff43e 100644 --- a/deps/v8/src/compiler/simplified-operator-reducer.cc +++ b/deps/v8/src/compiler/simplified-operator-reducer.cc @@ -77,7 +77,7 @@ Reduction SimplifiedOperatorReducer::Reduce(Node* node) { case IrOpcode::kChangeInt32ToTagged: { Int32Matcher m(node->InputAt(0)); if (m.HasResolvedValue()) return ReplaceNumber(m.ResolvedValue()); - if (m.IsChangeTaggedToInt32() || m.IsChangeTaggedSignedToInt32()) { + if (m.IsChangeTaggedSignedToInt32()) { return Replace(m.InputAt(0)); } break;