From 01baaf5c8ec1e5293f7b4231d1195b4e4672846d Mon Sep 17 00:00:00 2001 From: inoway46 Date: Thu, 15 Oct 2026 00:35:29 +0900 Subject: [PATCH] build: enable V8 undefined double support Enable V8_ENABLE_UNDEFINED_DOUBLE in the V8 GYP configuration, matching the setting added on main by 8394db37d800. This is a candidate for the repeated wrong-map deoptimizations in big.js reported in #66717. Preserve the existing v26 GYP settings and apply only the undefined double feature configuration. Refs: https://github.com/nodejs/node/commit/8394db37d8004219fa30985675d5e6a4cac63556 Refs: https://github.com/nodejs/node/issues/66717 Signed-off-by: inoway46 Assisted-by: Codex --- tools/v8_gypfiles/features.gypi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/v8_gypfiles/features.gypi b/tools/v8_gypfiles/features.gypi index 95717992bcab..444998321d43 100644 --- a/tools/v8_gypfiles/features.gypi +++ b/tools/v8_gypfiles/features.gypi @@ -294,6 +294,9 @@ # ReadOnlySpace. 'v8_enable_extensible_ro_snapshot%': 1, + # Use the encoding of undefined in double values. + 'v8_enable_undefined_double%': 1, + # Variables from v8.gni # Enable ECMAScript Internationalization API. Enabling this feature will @@ -524,6 +527,9 @@ ['v8_enable_extensible_ro_snapshot==1', { 'defines': ['V8_ENABLE_EXTENSIBLE_RO_SNAPSHOT',], }], + ['v8_enable_undefined_double==1', { + 'defines': ['V8_ENABLE_UNDEFINED_DOUBLE',], + }], ['v8_enable_leaptiering==1', { 'defines': ['V8_ENABLE_LEAPTIERING',], }],