diff --git a/src/codegen/code-stub-assembler.cc b/src/codegen/code-stub-assembler.cc index cb2cd06c55..7093658769 100644 --- a/src/codegen/code-stub-assembler.cc +++ b/src/codegen/code-stub-assembler.cc @@ -2303,14 +2303,11 @@ TNode CodeStubAssembler::LoadFixedBigUint64ArrayElementAsTagged( #if defined(V8_TARGET_BIG_ENDIAN) TNode high = Load(data_pointer, offset); TNode low = Load( - data_pointer, Int32Add(TruncateIntPtrToInt32(offset), - Int32Constant(kSystemPointerSize))); + data_pointer, IntPtrAdd(offset, IntPtrConstant(kSystemPointerSize))); #else TNode low = Load(data_pointer, offset); - TNode high = UncheckedCast( - Load(MachineType::UintPtr(), data_pointer, - Int32Add(TruncateIntPtrToInt32(offset), - Int32Constant(kSystemPointerSize)))); + TNode high = Load( + data_pointer, IntPtrAdd(offset, IntPtrConstant(kSystemPointerSize))); #endif return BigIntFromUint32Pair(low, high); }