diff --git a/tools/v8_gypfiles/features.gypi b/tools/v8_gypfiles/features.gypi index 53886830721..15bcb05dc55 100644 --- a/tools/v8_gypfiles/features.gypi +++ b/tools/v8_gypfiles/features.gypi @@ -166,6 +166,9 @@ 'v8_enable_pointer_compression_shared_cage%': 0, 'v8_enable_31bit_smis_on_64bit_arch%': 0, + # Size of the contiguous read-only space reservation in the shared cage. + 'v8_contiguous_compressed_ro_space_size_mb%': 16, + # Sets -dV8_SHORT_BUILTIN_CALLS 'v8_enable_short_builtin_calls%': 0, @@ -374,7 +377,11 @@ 'defines': ['V8_COMPRESS_POINTERS_IN_MULTIPLE_CAGES'], }], ['v8_enable_pointer_compression_shared_cage==1', { - 'defines': ['V8_COMPRESS_POINTERS_IN_SHARED_CAGE'], + 'defines': [ + 'V8_COMPRESS_POINTERS_IN_SHARED_CAGE', + 'V8_CONTIGUOUS_COMPRESSED_RO_SPACE', + 'V8_CONTIGUOUS_COMPRESSED_RO_SPACE_SIZE_MB=<(v8_contiguous_compressed_ro_space_size_mb)', + ], }], ['v8_enable_pointer_compression==1 or v8_enable_31bit_smis_on_64bit_arch==1', { 'defines': ['V8_31BIT_SMIS_ON_64BIT_ARCH',],