From f0273edb9e9ffa291dc4450948dcfe2ec4a6e676 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Tue, 29 Sep 2026 12:06:25 +0200 Subject: [PATCH] deps: V8: cherry-pick b2fc93f37507 Original commit message: Avoid backslash at the end of the comments This triggers -Wcomment in GCC. Switch to a different diagram style to avoid it. Change-Id: Iaadabdecb76de21937def43cbac817470a90c735 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8480492 Commit-Queue: Andreas Haas Reviewed-by: Andreas Haas Cr-Commit-Position: refs/heads/main@{#110151} Refs: https://github.com/v8/v8/commit/b2fc93f3750779f42fb83f3d51ae8817c2ae931d Signed-off-by: Joyee Cheung Signed-off-by: Joyee Cheung PR-URL: https://github.com/nodejs/node/pull/66537 Reviewed-By: Richard Lau Reviewed-By: Chengzhong Wu Reviewed-By: Filip Skokan Reviewed-By: Yagiz Nizipli --- common.gypi | 2 +- deps/v8/include/v8-internal.h | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/common.gypi b/common.gypi index e817872ca51..565cd0a7535 100644 --- a/common.gypi +++ b/common.gypi @@ -44,7 +44,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.0', + 'v8_embedder_string': '-node.1', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/include/v8-internal.h b/deps/v8/include/v8-internal.h index 43b598c4a0c..0115dc9454c 100644 --- a/deps/v8/include/v8-internal.h +++ b/deps/v8/include/v8-internal.h @@ -467,11 +467,14 @@ constexpr size_t kMaxCppHeapPointers = 0; // // As an example, consider the following type hierarchy: // -// A F -// / \ -// B E -// / \ -// C D +// A +// +-- B +// | +-- C +// | +-- D +//. | +// +-- E +// +// F // // A potential type id assignment for range-based type checks is // {A: 0, B: 1, C: 2, D: 3, E: 4, F: 5}. With that, the type check for type A