mirror of
https://github.com/nodejs/node.git
synced 2024-11-27 22:16:50 +01:00
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: 9861ce1dea
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
parent
b697160256
commit
90c758c59e
@ -36,7 +36,7 @@
|
||||
|
||||
# Reset this number to 0 on major V8 upgrades.
|
||||
# Increment by one for each non-official patch applied to deps/v8.
|
||||
'v8_embedder_string': '-node.10',
|
||||
'v8_embedder_string': '-node.11',
|
||||
|
||||
##### V8 defaults for Node.js #####
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user