diff --git a/tools/v8_gypfiles/d8.gyp b/tools/v8_gypfiles/d8.gyp index 1780e1ab0dbccf..46b415c2ed93f5 100644 --- a/tools/v8_gypfiles/d8.gyp +++ b/tools/v8_gypfiles/d8.gyp @@ -33,6 +33,7 @@ '<(V8_ROOT)/src/d8/d8-js.cc', '<(V8_ROOT)/src/d8/d8-platforms.cc', '<(V8_ROOT)/src/d8/d8-platforms.h', + '<(V8_ROOT)/src/d8/d8-test.cc', '<(V8_ROOT)/src/d8/d8.cc', '<(V8_ROOT)/src/d8/d8.h', ], diff --git a/tools/v8_gypfiles/features.gypi b/tools/v8_gypfiles/features.gypi index 6bb08bcebeca91..886d0a7ff4d861 100644 --- a/tools/v8_gypfiles/features.gypi +++ b/tools/v8_gypfiles/features.gypi @@ -103,6 +103,9 @@ # Sets -dENABLE_GDB_JIT_INTERFACE. 'v8_enable_gdbjit%': 0, + # Sets -dENABLE_HUGEPAGE + 'v8_enable_hugepage%': 0, + # Currently set for node by common.gypi, avoiding default because of gyp file bug. # Should be turned on only for debugging. #'v8_enable_handle_zapping%': 0, @@ -217,6 +220,13 @@ # Sets -DV8_DICT_PROPERTY_CONST_TRACKING 'v8_dict_property_const_tracking%': 0, + # Enable allocation folding globally (sets -dV8_ALLOCATION_FOLDING). + # When it's disabled, the --turbo-allocation-folding runtime flag will be ignored. + 'v8_enable_allocation_folding%': 1, + + # Enable global allocation site tracking. + 'v8_allocation_site_tracking%': 1, + # Variables from v8.gni # Enable ECMAScript Internationalization API. Enabling this feature will @@ -232,6 +242,10 @@ # will not be available, and embedder APIs to generate WebAssembly modules # will fail. 'v8_enable_webassembly%': 1, + + # Enable advanced BigInt algorithms, costing about 10-30 KB binary size + # depending on platform. + 'v8_advanced_bigint_algorithms%': 1 }, 'target_defaults': { @@ -257,6 +271,9 @@ ['v8_enable_gdbjit==1', { 'defines': ['ENABLE_GDB_JIT_INTERFACE',], }], + ['v8_enable_hugepage==1', { + 'defines': ['ENABLE_HUGEPAGE',], + }], ['v8_enable_minor_mc==1', { 'defines': ['ENABLE_MINOR_MC',], }], @@ -371,6 +388,12 @@ ['v8_dict_property_const_tracking==1', { 'defines': ['V8_DICT_PROPERTY_CONST_TRACKING',], }], + ['v8_enable_allocation_folding==1', { + 'defines': ['V8_ALLOCATION_FOLDING',], + }], + ['v8_allocation_site_tracking==1', { + 'defines': ['V8_ALLOCATION_SITE_TRACKING',], + }], ], # conditions 'defines': [ 'V8_GYP_BUILD', diff --git a/tools/v8_gypfiles/toolchain.gypi b/tools/v8_gypfiles/toolchain.gypi index 564f775f21f53a..d10525af57c7f2 100644 --- a/tools/v8_gypfiles/toolchain.gypi +++ b/tools/v8_gypfiles/toolchain.gypi @@ -996,6 +996,36 @@ }, }, }], + ['OS=="android"', { + 'defines': [ + 'V8_HAVE_TARGET_OS', + 'V8_TARGET_OS_ANDROID', + ] + }], + ['OS=="ios"', { + 'defines': [ + 'V8_HAVE_TARGET_OS', + 'V8_TARGET_OS_IOS', + ] + }], + ['OS=="linux"', { + 'defines': [ + 'V8_HAVE_TARGET_OS', + 'V8_TARGET_OS_LINUX', + ] + }], + ['OS=="mac"', { + 'defines': [ + 'V8_HAVE_TARGET_OS', + 'V8_TARGET_OS_MACOSX', + ] + }], + ['OS=="win"', { + 'defines': [ + 'V8_HAVE_TARGET_OS', + 'V8_TARGET_OS_WIN', + ] + }], ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ v8_target_arch=="ia32"', { diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index 18945be9313b6f..a0a90fc4da2e0b 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -580,100 +580,110 @@ ], 'direct_dependent_settings': { 'sources': [ - '