| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 62e6275 commit 40bc080
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1446,6 +1446,7 @@ def configure_library(lib, output, pkgname=None): | |||
| 1446 | 1446 | ||
| 1447 | 1447 | def configure_v8(o): | |
| 1448 | 1448 | o['variables']['v8_enable_webassembly'] = 1 | |
| 1449 | + o['variables']['v8_enable_javascript_promise_hooks'] = 1 | ||
| 1449 | 1450 | o['variables']['v8_enable_lite_mode'] = 1 if options.v8_lite_mode else 0 | |
| 1450 | 1451 | o['variables']['v8_enable_gdbjit'] = 1 if options.gdb else 0 | |
| 1451 | 1452 | o['variables']['v8_no_strict_aliasing'] = 1 # Work around compiler bugs. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -160,9 +160,9 @@ | |||
| 160 | 160 | # Enables various testing features. | |
| 161 | 161 | 'v8_enable_test_features%': 0, | |
| 162 | 162 | ||
| 163 | - # Enables raw heap snapshots containing internals. Used for debugging memory | ||
| 164 | - # on platform and embedder level. | ||
| 165 | - 'v8_enable_raw_heap_snapshots%': 0, | ||
| 163 | + # Enable the Maglev compiler. | ||
| 164 | + # Sets -dV8_ENABLE_MAGLEV | ||
| 165 | + 'v8_enable_maglev%': 0, | ||
| 166 | 166 | ||
| 167 | 167 | # With post mortem support enabled, metadata is embedded into libv8 that | |
| 168 | 168 | # describes various parameters of the VM for use by debuggers. See | |
@@ -179,9 +179,6 @@ | |||
| 179 | 179 | # Controls the threshold for on-heap/off-heap Typed Arrays. | |
| 180 | 180 | 'v8_typed_array_max_size_in_heap%': 64, | |
| 181 | 181 | ||
| 182 | - # Enable minor mark compact. | ||
| 183 | - 'v8_enable_minor_mc%': 1, | ||
| 184 | - | ||
| 185 | 182 | # Enable lazy source positions by default. | |
| 186 | 183 | 'v8_enable_lazy_source_positions%': 1, | |
| 187 | 184 | ||
@@ -217,26 +214,50 @@ | |||
| 217 | 214 | # Sets -DV8_COMPRESS_ZONES. | |
| 218 | 215 | 'v8_enable_zone_compression%': 0, | |
| 219 | 216 | ||
| 217 | + # Enable the experimental V8 sandbox. | ||
| 218 | + # Sets -DV8_SANDBOX. | ||
| 219 | + 'v8_enable_sandbox%': 0, | ||
| 220 | + | ||
| 221 | + # Enable external pointer sandboxing. Requires v8_enable_sandbox. | ||
| 222 | + # Sets -DV8_SANDBOXED_EXTERNAL_POINRTERS. | ||
| 223 | + 'v8_enable_sandboxed_external_pointers%': 0, | ||
| 224 | + | ||
| 225 | + # Enable sandboxed pointers. Requires v8_enable_sandbox. | ||
| 226 | + # Sets -DV8_SANDBOXED_POINTERS. | ||
| 227 | + 'v8_enable_sandboxed_pointers%': 0, | ||
| 228 | + | ||
| 220 | 229 | # Experimental feature for collecting per-class zone memory stats. | |
| 221 | 230 | # Requires use_rtti = true | |
| 222 | 231 | 'v8_enable_precise_zone_stats%': 0, | |
| 223 | 232 | ||
| 233 | + # Experimental feature that uses SwissNameDictionary instead of NameDictionary | ||
| 234 | + # as the backing store for all dictionary mode objects. | ||
| 235 | + 'v8_enable_swiss_name_dictionary%': 0, | ||
| 236 | + | ||
| 224 | 237 | # Experimental feature for tracking constness of properties in non-global | |
| 225 | 238 | # dictionaries. Enabling this also always keeps prototypes in dict mode, | |
| 226 | 239 | # meaning that they are not switched to fast mode. | |
| 227 | 240 | # Sets -DV8_DICT_PROPERTY_CONST_TRACKING | |
| 228 | 241 | 'v8_dict_property_const_tracking%': 0, | |
| 229 | 242 | ||
| 243 | + # Allow for JS promise hooks (instead of just C++). | ||
| 244 | + 'v8_enable_javascript_promise_hooks%': 0, | ||
| 245 | + | ||
| 230 | 246 | # Enable allocation folding globally (sets -dV8_ALLOCATION_FOLDING). | |
| 231 | 247 | # When it's disabled, the --turbo-allocation-folding runtime flag will be ignored. | |
| 232 | 248 | 'v8_enable_allocation_folding%': 1, | |
| 233 | 249 | ||
| 250 | + # Enable runtime verification of heap snapshots produced for devtools. | ||
| 251 | + 'v8_enable_heap_snapshot_verify%': 0, | ||
| 252 | + | ||
| 234 | 253 | # Enable global allocation site tracking. | |
| 235 | 254 | 'v8_allocation_site_tracking%': 1, | |
| 236 | 255 | ||
| 237 | 256 | 'v8_scriptormodule_legacy_lifetime%': 1, | |
| 238 | 257 | ||
| 239 | - 'v8_include_receiver_in_argc%': 1, | ||
| 258 | + # Change code emission and runtime features to be CET shadow-stack compliant | ||
| 259 | + # (incomplete and experimental). | ||
| 260 | + 'v8_enable_cet_shadow_stack%': 0, | ||
| 240 | 261 | ||
| 241 | 262 | # Variables from v8.gni | |
| 242 | 263 | ||
@@ -270,9 +291,6 @@ | |||
| 270 | 291 | ['v8_promise_internal_field_count!=0', { | |
| 271 | 292 | 'defines': ['V8_PROMISE_INTERNAL_FIELD_COUNT=<(v8_promise_internal_field_count)'], | |
| 272 | 293 | }], | |
| 273 | - ['v8_enable_raw_heap_snapshots==1', { | ||
| 274 | - 'defines': ['V8_ENABLE_RAW_HEAP_SNAPSHOTS',], | ||
| 275 | - }], | ||
| 276 | 294 | ['v8_enable_future==1', { | |
| 277 | 295 | 'defines': ['V8_ENABLE_FUTURE',], | |
| 278 | 296 | }], | |
@@ -285,9 +303,6 @@ | |||
| 285 | 303 | ['v8_enable_hugepage==1', { | |
| 286 | 304 | 'defines': ['ENABLE_HUGEPAGE',], | |
| 287 | 305 | }], | |
| 288 | - ['v8_enable_minor_mc==1', { | ||
| 289 | - 'defines': ['ENABLE_MINOR_MC',], | ||
| 290 | - }], | ||
| 291 | 306 | ['v8_enable_pointer_compression==1', { | |
| 292 | 307 | 'defines': [ | |
| 293 | 308 | 'V8_COMPRESS_POINTERS', | |
@@ -303,6 +318,15 @@ | |||
| 303 | 318 | ['v8_enable_zone_compression==1', { | |
| 304 | 319 | 'defines': ['V8_COMPRESS_ZONES',], | |
| 305 | 320 | }], | |
| 321 | + ['v8_enable_sandbox==1', { | ||
| 322 | + 'defines': ['V8_SANDBOX',], | ||
| 323 | + }], | ||
| 324 | + ['v8_enable_sandboxed_pointers==1', { | ||
| 325 | + 'defines': ['V8_SANDBOXED_POINTERS',], | ||
| 326 | + }], | ||
| 327 | + ['v8_enable_sandboxed_external_pointers==1', { | ||
| 328 | + 'defines': ['V8_SANDBOXED_EXTERNAL_POINTERS',], | ||
| 329 | + }], | ||
| 306 | 330 | ['v8_enable_object_print==1', { | |
| 307 | 331 | 'defines': ['OBJECT_PRINT',], | |
| 308 | 332 | }], | |
@@ -348,6 +372,9 @@ | |||
| 348 | 372 | # ['v8_enable_handle_zapping==1', { | |
| 349 | 373 | # 'defines': ['ENABLE_HANDLE_ZAPPING',], | |
| 350 | 374 | # }], | |
| 375 | + ['v8_enable_heap_snapshot_verify==1', { | ||
| 376 | + 'defines': ['V8_ENABLE_HEAP_SNAPSHOT_VERIFY',], | ||
| 377 | + }], | ||
| 351 | 378 | ['v8_enable_snapshot_native_code_counters==1', { | |
| 352 | 379 | 'defines': ['V8_SNAPSHOT_NATIVE_CODE_COUNTERS',], | |
| 353 | 380 | }], | |
@@ -390,9 +417,18 @@ | |||
| 390 | 417 | ['v8_control_flow_integrity==1', { | |
| 391 | 418 | 'defines': ['V8_ENABLE_CONTROL_FLOW_INTEGRITY',], | |
| 392 | 419 | }], | |
| 420 | + ['v8_enable_cet_shadow_stack==1', { | ||
| 421 | + 'defines': ['V8_ENABLE_CET_SHADOW_STACK',], | ||
| 422 | + }], | ||
| 393 | 423 | ['v8_enable_precise_zone_stats==1', { | |
| 394 | 424 | 'defines': ['V8_ENABLE_PRECISE_ZONE_STATS',], | |
| 395 | 425 | }], | |
| 426 | + ['v8_enable_maglev==1', { | ||
| 427 | + 'defines': ['V8_ENABLE_MAGLEV',], | ||
| 428 | + }], | ||
| 429 | + ['v8_enable_swiss_name_dictionary==1', { | ||
| 430 | + 'defines': ['V8_ENABLE_SWISS_NAME_DICTIONARY',], | ||
| 431 | + }], | ||
| 396 | 432 | ['v8_enable_system_instrumentation==1', { | |
| 397 | 433 | 'defines': ['V8_ENABLE_SYSTEM_INSTRUMENTATION',], | |
| 398 | 434 | }], | |
@@ -402,6 +438,9 @@ | |||
| 402 | 438 | ['v8_dict_property_const_tracking==1', { | |
| 403 | 439 | 'defines': ['V8_DICT_PROPERTY_CONST_TRACKING',], | |
| 404 | 440 | }], | |
| 441 | + ['v8_enable_javascript_promise_hooks==1', { | ||
| 442 | + 'defines': ['V8_ENABLE_JAVASCRIPT_PROMISE_HOOKS',], | ||
| 443 | + }], | ||
| 405 | 444 | ['v8_enable_allocation_folding==1', { | |
| 406 | 445 | 'defines': ['V8_ALLOCATION_FOLDING',], | |
| 407 | 446 | }], | |
@@ -414,9 +453,6 @@ | |||
| 414 | 453 | ['v8_advanced_bigint_algorithms==1', { | |
| 415 | 454 | 'defines': ['V8_ADVANCED_BIGINT_ALGORITHMS',], | |
| 416 | 455 | }], | |
| 417 | - ['v8_include_receiver_in_argc==1', { | ||
| 418 | - 'defines': ['V8_INCLUDE_RECEIVER_IN_ARGC',], | ||
| 419 | - }], | ||
| 420 | 456 | ], # conditions | |
| 421 | 457 | 'defines': [ | |
| 422 | 458 | 'V8_GYP_BUILD', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -120,7 +120,6 @@ | |||
| 120 | 120 | '<(inspector_protocol_path)/crdtp/protocol_core.h', | |
| 121 | 121 | '<(inspector_protocol_path)/crdtp/serializable.cc', | |
| 122 | 122 | '<(inspector_protocol_path)/crdtp/serializable.h', | |
| 123 | - '<(inspector_protocol_path)/crdtp/serializer_traits.h', | ||
| 124 | 123 | '<(inspector_protocol_path)/crdtp/span.cc', | |
| 125 | 124 | '<(inspector_protocol_path)/crdtp/span.h', | |
| 126 | 125 | '<(inspector_protocol_path)/crdtp/status.cc', | |
@@ -166,6 +165,7 @@ | |||
| 166 | 165 | '--jinja_dir', '<(V8_ROOT)/third_party', | |
| 167 | 166 | '--output_base', '<(inspector_generated_output_root)/src/inspector', | |
| 168 | 167 | '--config', '<(inspector_path)/inspector_protocol_config.json', | |
| 168 | + '--config_value', 'protocol.path=<(v8_inspector_js_protocol)', | ||
| 169 | 169 | '--inspector_protocol_dir', '<(inspector_protocol_path)', | |
| 170 | 170 | ], | |
| 171 | 171 | 'message': 'Generating inspector protocol sources from protocol json', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1008,7 +1008,7 @@ | |||
| 1008 | 1008 | ['OS=="mac"', { | |
| 1009 | 1009 | 'defines': [ | |
| 1010 | 1010 | 'V8_HAVE_TARGET_OS', | |
| 1011 | - 'V8_TARGET_OS_MACOSX', | ||
| 1011 | + 'V8_TARGET_OS_MACOS', | ||
| 1012 | 1012 | ] | |
| 1013 | 1013 | }], | |
| 1014 | 1014 | ['OS=="win"', { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -477,7 +477,7 @@ | |||
| 477 | 477 | 'toolsets': ['host', 'target'], | |
| 478 | 478 | 'dependencies': [ | |
| 479 | 479 | 'v8_config_headers', | |
| 480 | - 'cppgc_headers', | ||
| 480 | + 'v8_heap_base_headers', | ||
| 481 | 481 | 'v8_version', | |
| 482 | 482 | ], | |
| 483 | 483 | 'direct_dependent_settings': { | |
@@ -529,7 +529,7 @@ | |||
| 529 | 529 | 'v8_headers', | |
| 530 | 530 | 'v8_maybe_icu', | |
| 531 | 531 | 'v8_shared_internal_headers', | |
| 532 | - 'cppgc_headers', | ||
| 532 | + 'v8_heap_base_headers', | ||
| 533 | 533 | 'generate_bytecode_builtins_list', | |
| 534 | 534 | 'run_torque', | |
| 535 | 535 | 'v8_libbase', | |
@@ -539,6 +539,11 @@ | |||
| 539 | 539 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?sources = ")', | |
| 540 | 540 | ], | |
| 541 | 541 | 'conditions': [ | |
| 542 | + ['v8_enable_maglev==1', { | ||
| 543 | + 'sources': [ | ||
| 544 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_maglev.*?sources \\+= ")', | ||
| 545 | + ], | ||
| 546 | + }], | ||
| 542 | 547 | ['v8_enable_webassembly==1', { | |
| 543 | 548 | 'sources': [ | |
| 544 | 549 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_webassembly.*?sources \\+= ")', | |
@@ -554,6 +559,11 @@ | |||
| 554 | 559 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?!v8_control_flow_integrity.*?sources \\+= ")', | |
| 555 | 560 | ], | |
| 556 | 561 | }], | |
| 562 | + ['v8_enable_heap_snapshot_verify==1', { | ||
| 563 | + 'sources': [ | ||
| 564 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_heap_snapshot_verify.*?sources \\+= ")', | ||
| 565 | + ], | ||
| 566 | + }], | ||
| 557 | 567 | ['v8_target_arch=="ia32"', { | |
| 558 | 568 | 'sources': [ | |
| 559 | 569 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"x86\\".*?sources \\+= ")', | |
@@ -745,8 +755,8 @@ | |||
| 745 | 755 | 'dependencies': [ | |
| 746 | 756 | 'torque_generated_definitions', | |
| 747 | 757 | 'v8_bigint', | |
| 748 | - 'v8_cppgc_shared', | ||
| 749 | 758 | 'v8_headers', | |
| 759 | + 'v8_heap_base', | ||
| 750 | 760 | 'v8_libbase', | |
| 751 | 761 | 'v8_shared_internal_headers', | |
| 752 | 762 | 'v8_version', | |
@@ -779,11 +789,21 @@ | |||
| 779 | 789 | '<(V8_ROOT)/src/heap/third-party/heap-api-stub.cc', | |
| 780 | 790 | ], | |
| 781 | 791 | }], | |
| 792 | + ['v8_enable_maglev==1', { | ||
| 793 | + 'sources': [ | ||
| 794 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_maglev.*?sources \\+= ")', | ||
| 795 | + ], | ||
| 796 | + }], | ||
| 782 | 797 | ['v8_enable_webassembly==1', { | |
| 783 | 798 | 'sources': [ | |
| 784 | 799 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_webassembly.*?sources \\+= ")', | |
| 785 | 800 | ], | |
| 786 | 801 | }], | |
| 802 | + ['v8_enable_heap_snapshot_verify==1', { | ||
| 803 | + 'sources': [ | ||
| 804 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_heap_snapshot_verify.*?sources \\+= ")', | ||
| 805 | + ], | ||
| 806 | + }], | ||
| 787 | 807 | ['v8_target_arch=="ia32"', { | |
| 788 | 808 | 'sources': [ | |
| 789 | 809 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"x86.*?sources \\+= ")', | |
@@ -1128,6 +1148,7 @@ | |||
| 1128 | 1148 | ['OS == "mac" or OS == "ios"', { | |
| 1129 | 1149 | 'sources': [ | |
| 1130 | 1150 | '<(V8_ROOT)/src/base/debug/stack_trace_posix.cc', | |
| 1151 | + '<(V8_ROOT)/src/base/platform/platform-darwin.cc', | ||
| 1131 | 1152 | '<(V8_ROOT)/src/base/platform/platform-macos.cc', | |
| 1132 | 1153 | ] | |
| 1133 | 1154 | }], | |
@@ -1525,15 +1546,15 @@ | |||
| 1525 | 1546 | ], | |
| 1526 | 1547 | }, # run_gen-regexp-special-case | |
| 1527 | 1548 | { | |
| 1528 | - 'target_name': 'cppgc_headers', | ||
| 1549 | + 'target_name': 'v8_heap_base_headers', | ||
| 1529 | 1550 | 'type': 'none', | |
| 1530 | 1551 | 'toolsets': ['host', 'target'], | |
| 1531 | 1552 | 'direct_dependent_settings': { | |
| 1532 | 1553 | 'sources': [ | |
| 1533 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"cppgc_headers.*?sources = ")', | ||
| 1554 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_source_set.\\"v8_heap_base_headers.*?sources = ")', | ||
| 1534 | 1555 | ], | |
| 1535 | 1556 | }, | |
| 1536 | - }, # cppgc_headers | ||
| 1557 | + }, # v8_heap_base_headers | ||
| 1537 | 1558 | { | |
| 1538 | 1559 | 'target_name': 'cppgc_base', | |
| 1539 | 1560 | 'type': 'none', | |
@@ -1562,15 +1583,14 @@ | |||
| 1562 | 1583 | }, | |
| 1563 | 1584 | }, # v8_bigint | |
| 1564 | 1585 | { | |
| 1565 | - 'target_name': 'v8_cppgc_shared', | ||
| 1586 | + 'target_name': 'v8_heap_base', | ||
| 1566 | 1587 | 'type': 'none', | |
| 1567 | 1588 | 'toolsets': ['host', 'target'], | |
| 1568 | 1589 | 'direct_dependent_settings': { | |
| 1569 | 1590 | 'sources': [ | |
| 1591 | + '<(V8_ROOT)/src/heap/base/active-system-pages.cc', | ||
| 1570 | 1592 | '<(V8_ROOT)/src/heap/base/stack.cc', | |
| 1571 | - '<(V8_ROOT)/src/heap/base/stack.h', | ||
| 1572 | 1593 | '<(V8_ROOT)/src/heap/base/worklist.cc', | |
| 1573 | - '<(V8_ROOT)/src/heap/base/worklist.h', | ||
| 1574 | 1594 | ], | |
| 1575 | 1595 | 'conditions': [ | |
| 1576 | 1596 | ['enable_lto=="true"', { | |
@@ -1651,7 +1671,7 @@ | |||
| 1651 | 1671 | }], | |
| 1652 | 1672 | ], | |
| 1653 | 1673 | }, | |
| 1654 | - }, # v8_cppgc_shared | ||
| 1674 | + }, # v8_heap_base | ||
| 1655 | 1675 | ||
| 1656 | 1676 | ############################################################################### | |
| 1657 | 1677 | # Public targets | |
| Back | FazBrowse Home | New Git URL |
0 commit comments