Commit c2374f90 authored by Liu Yu's avatar Liu Yu Committed by V8 LUCI CQ

[loong64][mips] Only save clobbered registers when calling RecordWrite

Port commit b8b32f6b

Change-Id: I5592b4027715d5d3544435718c9e1161cf69f3e2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3482480
Auto-Submit: Yu Liu <liuyu@loongson.cn>
Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79223}
parent 30756f21
......@@ -224,7 +224,8 @@ constexpr RegList WriteBarrierDescriptor::ComputeSavedRegisters(
if (slot_address != no_reg && slot_address != SlotAddressRegister()) {
saved_registers |= SlotAddressRegister().bit();
}
#elif V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_ARM
#elif V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_LOONG64 || \
V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_MIPS
if (object != ObjectRegister()) saved_registers |= ObjectRegister().bit();
// The slot address is always clobbered.
saved_registers |= SlotAddressRegister().bit();
......
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