build: enable V8 undefined double support

V8 14.6 enables v8_enable_undefined_double by default in its GN
build, but the GYP configuration never set V8_ENABLE_UNDEFINED_DOUBLE,
so the default build ran V8 in a non-default configuration. Enabling
it eliminates the repeated wrong-map deoptimizations in big.js
reported in #66717.

Align the GYP configuration with V8's default, matching the change
made on main in 8394db37d8.

Refs: https://github.com/nodejs/node/commit/8394db37d8004219fa30985675d5e6a4cac63556
Fixes: https://github.com/nodejs/node/issues/66717
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
Assisted-by: Codex
Assisted-by: Claude Code
PR-URL: https://github.com/nodejs/node/pull/66733
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
Yuya Inoue authored and Antoine du Hamel committed 2026-11-21 15:16:29 +01:00
1 parent a9e2af0aad
commit 767fdc82bc
1 file changed
+6
+6
View File
@@ -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',],
}],