From 77ad5dd0ff180c796724c7c57e9e96b734136008 Mon Sep 17 00:00:00 2001 From: Lu Yahan Date: Mon, 17 Jan 2022 15:51:37 +0800 Subject: [PATCH] deps: V8: cherry-pick 471f862954f3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message: [riscv64] Link should greater and equal zero Change-Id: Ieeb5888efc068707766aef6ba6fc842c5deaaf9c Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3146673 Commit-Queue: Yahan Lu Auto-Submit: Yahan Lu Reviewed-by: Ji Qiu Cr-Commit-Position: refs/heads/main@{#76784} Refs: v8/v8@471f862954f3 PR-URL: https://github.com/nodejs/node/pull/41566 Refs: https://github.com/v8/v8/commit/d8dc66f Refs: https://github.com/v8/v8/commit/3cab84c Refs: https://github.com/v8/v8/commit/471f862 Refs: https://github.com/v8/v8/commit/77599ff Reviewed-By: Jiawen Geng Reviewed-By: Michaƫl Zasso --- common.gypi | 2 +- deps/v8/src/codegen/riscv64/assembler-riscv64.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common.gypi b/common.gypi index 4e938b15d6cbfa..88033804f1f291 100644 --- a/common.gypi +++ b/common.gypi @@ -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.16', + 'v8_embedder_string': '-node.17', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/src/codegen/riscv64/assembler-riscv64.cc b/deps/v8/src/codegen/riscv64/assembler-riscv64.cc index 0c322542a9440b..3534559fd5ff97 100644 --- a/deps/v8/src/codegen/riscv64/assembler-riscv64.cc +++ b/deps/v8/src/codegen/riscv64/assembler-riscv64.cc @@ -699,7 +699,7 @@ void Assembler::next(Label* L, bool is_internal) { if (link == kEndOfChain) { L->Unuse(); } else { - DCHECK_GT(link, 0); + DCHECK_GE(link, 0); DEBUG_PRINTF("next: %p to %p (%d)\n", L, reinterpret_cast(buffer_start_ + link), link); L->link_to(link);