diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc index 903bf88a7b..670430609f 100644 --- a/src/compiler/js-typed-lowering.cc +++ b/src/compiler/js-typed-lowering.cc @@ -1063,15 +1063,6 @@ Reduction JSTypedLowering::ReduceJSStoreProperty(Node* node) { frame_state_for_to_number, effect, control); } } - // For integer-typed arrays, convert to the integer type. - if (access.machine_type().semantic() == MachineSemantic::kInt32 && - !value_type->Is(Type::Signed32())) { - value = graph()->NewNode(simplified()->NumberToInt32(), value); - } else if (access.machine_type().semantic() == - MachineSemantic::kUint32 && - !value_type->Is(Type::Unsigned32())) { - value = graph()->NewNode(simplified()->NumberToUint32(), value); - } // Check if we can avoid the bounds check. if (key_type->Min() >= 0 && key_type->Max() < array->length_value()) { RelaxControls(node); diff --git a/test/unittests/compiler/js-typed-lowering-unittest.cc b/test/unittests/compiler/js-typed-lowering-unittest.cc index 5c6b52557d..c58c1cd490 100644 --- a/test/unittests/compiler/js-typed-lowering-unittest.cc +++ b/test/unittests/compiler/js-typed-lowering-unittest.cc @@ -782,13 +782,6 @@ TEST_F(JSTypedLoweringTest, JSStorePropertyToExternalTypedArrayWithConversion) { Matcher value_matcher = IsToNumber(value, context, effect, control); Matcher effect_matcher = value_matcher; - if (AccessBuilder::ForTypedArrayElement(type, true) - .type->Is(Type::Signed32())) { - value_matcher = IsNumberToInt32(value_matcher); - } else if (AccessBuilder::ForTypedArrayElement(type, true) - .type->Is(Type::Unsigned32())) { - value_matcher = IsNumberToUint32(value_matcher); - } ASSERT_TRUE(r.Changed()); EXPECT_THAT(