From a60db31f4bb8f3cc76d106afd009f5bf74aa976e Mon Sep 17 00:00:00 2001 From: Lu Yahan Date: Fri, 11 Mar 2022 07:24:09 +0800 Subject: [PATCH] deps: V8: cherry-pick c6f6626deb14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message: [riscv64] Fix segmentation fault of webpack-make from cockpit issue: https://github.com/riscv-collab/v8/issues/520 Change-Id: I7fe298ad16a2f599805929db0f084a81c4eb7f7a Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3503170 Auto-Submit: Yahan Lu Reviewed-by: ji qiu Reviewed-by: Yahan Lu Commit-Queue: Yahan Lu Cr-Commit-Position: refs/heads/main@{#79376} Refs: https://github.com/v8/v8/commit/c6f6626deb147fccc8bb5c32f96481efd9aaad0a PR-URL: https://github.com/nodejs/node/pull/42240 Reviewed-By: Michaƫl Zasso Reviewed-By: Jiawen Geng Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Michael Dawson --- deps/v8/src/regexp/riscv64/regexp-macro-assembler-riscv64.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/v8/src/regexp/riscv64/regexp-macro-assembler-riscv64.cc b/deps/v8/src/regexp/riscv64/regexp-macro-assembler-riscv64.cc index 6c8ef4260ba80a..459162bb557048 100644 --- a/deps/v8/src/regexp/riscv64/regexp-macro-assembler-riscv64.cc +++ b/deps/v8/src/regexp/riscv64/regexp-macro-assembler-riscv64.cc @@ -816,8 +816,8 @@ Handle RegExpMacroAssemblerRISCV::GetCode(Handle source) { __ Branch(&load_char_start_regexp, ne, current_input_offset(), Operand(s3)); // Offset from the end is zero if we already reached the end. - __ BranchShort(&exit_label_, eq, current_input_offset(), - Operand(zero_reg)); + __ Branch(&exit_label_, eq, current_input_offset(), + Operand(zero_reg)); // Advance current position after a zero-length match. Label advance; __ bind(&advance);