@@ -2522,20 +2522,21 @@ void FlowGraphCompiler::EmitNativeMove(
2522
2522
src_container_size >= dst_container_size) {
2523
2523
// The upper bits of the source are already properly sign or zero
2524
2524
// extended, so just copy the required amount of bits.
2525
- return EmitNativeMove (
2526
- destination. WithOtherRep ( dst_container_type, dst_container_type,
2527
- zone_),
2528
- source. WithOtherRep ( dst_container_type, dst_container_type, zone_),
2529
- temp);
2525
+ return EmitNativeMove (destination. WithOtherNativeType (
2526
+ dst_container_type, dst_container_type, zone_) ,
2527
+ source. WithOtherNativeType (
2528
+ dst_container_type, dst_container_type, zone_),
2529
+ temp);
2530
2530
}
2531
2531
if (src_payload_size >= dst_payload_size &&
2532
2532
dst_container_size > dst_payload_size) {
2533
2533
// The upper bits of the source are not properly sign or zero extended
2534
2534
// to be copied to the target, so regard the source as smaller.
2535
2535
return EmitNativeMove (
2536
- destination.WithOtherRep (dst_container_type, dst_container_type,
2537
- zone_),
2538
- source.WithOtherRep (dst_payload_type, dst_payload_type, zone_), temp);
2536
+ destination.WithOtherNativeType (dst_container_type,
2537
+ dst_container_type, zone_),
2538
+ source.WithOtherNativeType (dst_payload_type, dst_payload_type, zone_),
2539
+ temp);
2539
2540
}
2540
2541
UNREACHABLE ();
2541
2542
}
@@ -2578,7 +2579,7 @@ void FlowGraphCompiler::EmitNativeMove(
2578
2579
if (sign_or_zero_extend && destination.IsStack ()) {
2579
2580
ASSERT (source.IsRegisters ());
2580
2581
const auto & intermediate =
2581
- source.WithOtherRep (dst_payload_type, dst_container_type, zone_);
2582
+ source.WithOtherNativeType (dst_payload_type, dst_container_type, zone_);
2582
2583
EmitNativeMove (intermediate, source, temp);
2583
2584
EmitNativeMove (destination, intermediate, temp);
2584
2585
return ;
@@ -2588,8 +2589,8 @@ void FlowGraphCompiler::EmitNativeMove(
2588
2589
// Arm does not support sign extending from a memory location, x86 does.
2589
2590
if (sign_or_zero_extend && source.IsStack ()) {
2590
2591
ASSERT (destination.IsRegisters ());
2591
- const auto & intermediate =
2592
- destination. WithOtherRep ( src_payload_type, src_container_type, zone_);
2592
+ const auto & intermediate = destination. WithOtherNativeType (
2593
+ src_payload_type, src_container_type, zone_);
2593
2594
EmitNativeMove (intermediate, source, temp);
2594
2595
EmitNativeMove (destination, intermediate, temp);
2595
2596
return ;
0 commit comments