Commit a3a20bd9 authored by Igor Sheludko's avatar Igor Sheludko Committed by Commit Bot

[sparkplug][arm64] Remake a recent change in Regexp assembler

... introduced in https://chromium-review.googlesource.com/c/v8/v8/+/2727502

Bug: v8:11527, v8:11421
Change-Id: I97d8711ad946789f8a39de5fcca41e77f20cde79
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2767019Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73467}
parent 8b9d0138
...@@ -1407,7 +1407,16 @@ void RegExpMacroAssemblerARM64::CallCheckStackGuardState(Register scratch) { ...@@ -1407,7 +1407,16 @@ void RegExpMacroAssemblerARM64::CallCheckStackGuardState(Register scratch) {
ExternalReference::re_check_stack_guard_state(isolate()); ExternalReference::re_check_stack_guard_state(isolate());
__ Mov(scratch, check_stack_guard_state); __ Mov(scratch, check_stack_guard_state);
__ CallBuiltin(Builtins::kDirectCEntry); {
UseScratchRegisterScope temps(masm_);
Register scratch = temps.AcquireX();
EmbeddedData d = EmbeddedData::FromBlob(isolate());
Address entry = d.InstructionStartOfBuiltin(Builtins::kDirectCEntry);
__ Ldr(scratch, Operand(entry, RelocInfo::OFF_HEAP_TARGET));
__ Call(scratch);
}
// The input string may have been moved in memory, we need to reload it. // The input string may have been moved in memory, we need to reload it.
__ Peek(input_start(), kSystemPointerSize); __ Peek(input_start(), kSystemPointerSize);
......
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