summaryrefslogtreecommitdiff
path: root/deps/v8/src
diff options
context:
space:
mode:
authorMilad Fa <mfarazma@redhat.com>2022-08-03 09:21:52 -0400
committerRichard Lau <rlau@redhat.com>2022-08-05 18:41:31 -0400
commit90c758c59e6c4f3b2300270a904792a471404db3 (patch)
treee68605bb3760a227aa4f6445bd5f7a85f2a0b2c6 /deps/v8/src
parentb6971602564fc93c536ad469947536b487c968ea (diff)
downloadnode-new-90c758c59e6c4f3b2300270a904792a471404db3.tar.gz
deps: V8: cherry-pick 9861ce1deae2
Original commit message: PPC: pass a scratch reg when using register_location Change-Id: I43e4a4cadc60e958d6c9d80e725a49a3e36d8ba9 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3797832 Reviewed-by: Junliang Yan <junyan@redhat.com> Commit-Queue: Milad Farazmand <mfarazma@redhat.com> Cr-Commit-Position: refs/heads/main@{#82146} Fixes: https://github.com/nodejs/node/issues/44055 PR-URL: https://github.com/nodejs/node/pull/44115 Refs: https://github.com/v8/v8/commit/9861ce1deae2fc52a7c1fb251b70401a728e44f4 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'deps/v8/src')
-rw-r--r--deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc b/deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc
index da81f89320..aee833d148 100644
--- a/deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc
+++ b/deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc
@@ -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);
}