Index: test/unittests/compiler/js-typed-lowering-unittest.cc |
diff --git a/test/unittests/compiler/js-typed-lowering-unittest.cc b/test/unittests/compiler/js-typed-lowering-unittest.cc |
index 3da4bc71683a75e82c19ee7dedeadfd066c5d3c5..8db40dc75e0eb9195811ebed532aec5da3c08468 100644 |
--- a/test/unittests/compiler/js-typed-lowering-unittest.cc |
+++ b/test/unittests/compiler/js-typed-lowering-unittest.cc |
@@ -102,8 +102,8 @@ TEST_F(JSTypedLoweringTest, JSLoadPropertyFromExternalTypedArray) { |
r.replacement(), |
IsLoadElement(AccessBuilder::ForTypedArrayElement(type, true), |
IsIntPtrConstant(bit_cast<intptr_t>(&backing_store[0])), |
- key, IsInt32Constant(static_cast<int>(kLength)), effect, |
- control)); |
+ key, IsNumberConstant(static_cast<double>(kLength)), |
+ effect, control)); |
} |
} |
@@ -142,8 +142,8 @@ TEST_F(JSTypedLoweringTest, JSStorePropertyToExternalTypedArray) { |
IsStoreElement( |
AccessBuilder::ForTypedArrayElement(type, true), |
IsIntPtrConstant(bit_cast<intptr_t>(&backing_store[0])), |
- key, IsInt32Constant(static_cast<int>(kLength)), value, |
- effect, control)); |
+ key, IsNumberConstant(static_cast<double>(kLength)), |
+ value, effect, control)); |
} |
} |
} |