[gardening] Fix debug build for ARM64C.

4-byte ldar zero extends, so can just use kObjectBytes here.

TEST=ci

Change-Id: I3b3aa792350100fd24c474c85d8ea1613c9f197b
Cq-Include-Trybots: luci.dart.try:vm-ffi-android-debug-arm64c-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/273242
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
This commit is contained in:
Tess Strickland 2022-12-01 16:55:52 +00:00 committed by Commit Queue
parent ddbc111067
commit 5fd3d4b810

View file

@ -599,10 +599,8 @@ class Assembler : public AssemblerBase {
AddImmediate(TMP2, address, offset);
src = TMP2;
}
#if !defined(DART_COMPRESSED_POINTERS)
ldar(dst, src);
#else
ldar(dst, src, kUnsignedFourBytes); // Zero-extension.
ldar(dst, src, kObjectBytes); // ldar does zero extension for 4 bytes.
#if defined(DART_COMPRESSED_POINTERS)
add(dst, dst, Operand(HEAP_BITS, LSL, 32));
#endif
#if defined(USING_THREAD_SANITIZER)