From c168cbfbb3e820a7c6b33d4faf8c196be09803c7 Mon Sep 17 00:00:00 2001 From: Shi Pujin Date: Tue, 8 Nov 2022 22:26:48 +0800 Subject: [PATCH] deps: V8: cherry-pick 56816d76c121 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message: [loong64] Supplement a LoongArch support in include/v8config.h Change-Id: I658c1b781163bcd3ca39bfceb74aef9d255247b8 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3894795 Reviewed-by: Toon Verwaest Commit-Queue: Liu Yu Cr-Commit-Position: refs/heads/main@{#83374} PR-URL: https://github.com/nodejs/node/pull/45353 Refs: https://github.com/v8/v8/commit/56816d76c121c8dd5b406dc6019350eee05f4abd Reviewed-By: Michaƫl Zasso Reviewed-By: Jiawen Geng --- common.gypi | 2 +- deps/v8/include/v8config.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index 0df1792137febf..da2e7b0462dfa9 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.18', + 'v8_embedder_string': '-node.19', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/include/v8config.h b/deps/v8/include/v8config.h index 6753eb083b3c1c..207afac8b0adeb 100644 --- a/deps/v8/include/v8config.h +++ b/deps/v8/include/v8config.h @@ -703,6 +703,8 @@ V8 shared library set USING_V8_SHARED. #define V8_TARGET_ARCH_ARM 1 #elif defined(__mips64) #define V8_TARGET_ARCH_MIPS64 1 +#elif defined(__loongarch64) +#define V8_TARGET_ARCH_LOONG64 1 #elif defined(_ARCH_PPC64) #define V8_TARGET_ARCH_PPC64 1 #elif defined(_ARCH_PPC)