Commit 85e6d4c2 authored by Milad Farazmand's avatar Milad Farazmand Committed by Commit Bot

AIX/s390: [torque] check TNode return types of CSA macros

Port 20d29a36

Original Commit Message:

    This disallows using CSA macros from Torque that have a Node* return
    type instead of TNode<>. By enforcing CSA types at the boundary between
    CSA and Torque, we can ensure that the Torque types and the CSA types
    match.

    As a drive-by, this CL adds a bit more of CSA typing where it made sense.

R=tebbi@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=
LOG=N

Change-Id: I531531e9029875b7685a9d775410ec9f924f8b69
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1669827Reviewed-by: 's avatarJunliang Yan <jyan@ca.ibm.com>
Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Milad Farazmand <miladfar@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#62311}
parent 02892ad2
...@@ -2067,7 +2067,8 @@ TNode<BigInt> CodeStubAssembler::LoadFixedBigInt64ArrayElementAsTagged( ...@@ -2067,7 +2067,8 @@ TNode<BigInt> CodeStubAssembler::LoadFixedBigInt64ArrayElementAsTagged(
Load(MachineType::UintPtr(), data_pointer, offset)); Load(MachineType::UintPtr(), data_pointer, offset));
TNode<IntPtrT> low = UncheckedCast<IntPtrT>( TNode<IntPtrT> low = UncheckedCast<IntPtrT>(
Load(MachineType::UintPtr(), data_pointer, Load(MachineType::UintPtr(), data_pointer,
Int32Add(offset, Int32Constant(kSystemPointerSize)))); Int32Add(TruncateIntPtrToInt32(offset),
Int32Constant(kSystemPointerSize))));
#else #else
TNode<IntPtrT> low = UncheckedCast<IntPtrT>( TNode<IntPtrT> low = UncheckedCast<IntPtrT>(
Load(MachineType::UintPtr(), data_pointer, offset)); Load(MachineType::UintPtr(), data_pointer, offset));
...@@ -2200,7 +2201,8 @@ CodeStubAssembler::LoadFixedBigUint64ArrayElementAsTagged( ...@@ -2200,7 +2201,8 @@ CodeStubAssembler::LoadFixedBigUint64ArrayElementAsTagged(
Load(MachineType::UintPtr(), data_pointer, offset)); Load(MachineType::UintPtr(), data_pointer, offset));
TNode<UintPtrT> low = UncheckedCast<UintPtrT>( TNode<UintPtrT> low = UncheckedCast<UintPtrT>(
Load(MachineType::UintPtr(), data_pointer, Load(MachineType::UintPtr(), data_pointer,
Int32Add(offset, Int32Constant(kSystemPointerSize)))); Int32Add(TruncateIntPtrToInt32(offset),
Int32Constant(kSystemPointerSize))));
#else #else
TNode<UintPtrT> low = UncheckedCast<UintPtrT>( TNode<UintPtrT> low = UncheckedCast<UintPtrT>(
Load(MachineType::UintPtr(), data_pointer, offset)); Load(MachineType::UintPtr(), data_pointer, offset));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment