[riscv64] Fix mjsunit/regexp-global fatal error
Change-Id: Ic36d34ca928b2dbc7427f60818dbd612b386e7a2 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2967709 Reviewed-by: Ji Qiu <qiuji@iscas.ac.cn> Commit-Queue: Ji Qiu <qiuji@iscas.ac.cn> Cr-Commit-Position: refs/heads/master@{#75211}
This commit is contained in:
parent
79b16f8254
commit
2dfe4236b5
@ -797,7 +797,7 @@ Handle<HeapObject> RegExpMacroAssemblerRISCV::GetCode(Handle<String> source) {
|
||||
// output registers is reduced by the number of stored captures.
|
||||
__ Sub64(a1, a1, num_saved_registers_);
|
||||
// Check whether we have enough room for another set of capture results.
|
||||
__ BranchShort(&return_a0, lt, a1, Operand(num_saved_registers_));
|
||||
__ Branch(&return_a0, lt, a1, Operand(num_saved_registers_));
|
||||
|
||||
__ Sd(a1, MemOperand(frame_pointer(), kNumOutputRegisters));
|
||||
// Advance the location for output.
|
||||
|
Loading…
Reference in New Issue
Block a user