Commit 9861ce1d authored by Milad Fa's avatar Milad Fa Committed by V8 LUCI CQ

PPC: pass a scratch reg when using register_location

Change-Id: I43e4a4cadc60e958d6c9d80e725a49a3e36d8ba9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3797832Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
Commit-Queue: Milad Farazmand <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/main@{#82146}
parent 5903aa93
......@@ -1139,7 +1139,7 @@ void RegExpMacroAssemblerPPC::WriteStackPointerToRegister(int reg) {
__ mov(r4, Operand(ref));
__ LoadU64(r4, MemOperand(r4));
__ SubS64(r3, backtrack_stackpointer(), r4);
__ StoreU64(r3, register_location(reg));
__ StoreU64(r3, register_location(reg), r0);
}
void RegExpMacroAssemblerPPC::ReadStackPointerFromRegister(int reg) {
......@@ -1147,7 +1147,7 @@ void RegExpMacroAssemblerPPC::ReadStackPointerFromRegister(int reg) {
ExternalReference::address_of_regexp_stack_memory_top_address(isolate());
__ mov(r3, Operand(ref));
__ LoadU64(r3, MemOperand(r3));
__ LoadU64(backtrack_stackpointer(), register_location(reg));
__ LoadU64(backtrack_stackpointer(), register_location(reg), r0);
__ AddS64(backtrack_stackpointer(), backtrack_stackpointer(), r3);
}
......
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