| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7470db0 commit 9f105c7
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,6 +33,7 @@ | |||
| 33 | 33 | '<(V8_ROOT)/src/d8/d8-js.cc', | |
| 34 | 34 | '<(V8_ROOT)/src/d8/d8-platforms.cc', | |
| 35 | 35 | '<(V8_ROOT)/src/d8/d8-platforms.h', | |
| 36 | + '<(V8_ROOT)/src/d8/d8-test.cc', | ||
| 36 | 37 | '<(V8_ROOT)/src/d8/d8.cc', | |
| 37 | 38 | '<(V8_ROOT)/src/d8/d8.h', | |
| 38 | 39 | ], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -103,6 +103,9 @@ | |||
| 103 | 103 | # Sets -dENABLE_GDB_JIT_INTERFACE. | |
| 104 | 104 | 'v8_enable_gdbjit%': 0, | |
| 105 | 105 | ||
| 106 | + # Sets -dENABLE_HUGEPAGE | ||
| 107 | + 'v8_enable_hugepage%': 0, | ||
| 108 | + | ||
| 106 | 109 | # Currently set for node by common.gypi, avoiding default because of gyp file bug. | |
| 107 | 110 | # Should be turned on only for debugging. | |
| 108 | 111 | #'v8_enable_handle_zapping%': 0, | |
@@ -217,6 +220,13 @@ | |||
| 217 | 220 | # Sets -DV8_DICT_PROPERTY_CONST_TRACKING | |
| 218 | 221 | 'v8_dict_property_const_tracking%': 0, | |
| 219 | 222 | ||
| 223 | + # Enable allocation folding globally (sets -dV8_ALLOCATION_FOLDING). | ||
| 224 | + # When it's disabled, the --turbo-allocation-folding runtime flag will be ignored. | ||
| 225 | + 'v8_enable_allocation_folding%': 1, | ||
| 226 | + | ||
| 227 | + # Enable global allocation site tracking. | ||
| 228 | + 'v8_allocation_site_tracking%': 1, | ||
| 229 | + | ||
| 220 | 230 | # Variables from v8.gni | |
| 221 | 231 | ||
| 222 | 232 | # Enable ECMAScript Internationalization API. Enabling this feature will | |
@@ -232,6 +242,10 @@ | |||
| 232 | 242 | # will not be available, and embedder APIs to generate WebAssembly modules | |
| 233 | 243 | # will fail. | |
| 234 | 244 | 'v8_enable_webassembly%': 1, | |
| 245 | + | ||
| 246 | + # Enable advanced BigInt algorithms, costing about 10-30 KB binary size | ||
| 247 | + # depending on platform. | ||
| 248 | + 'v8_advanced_bigint_algorithms%': 1 | ||
| 235 | 249 | }, | |
| 236 | 250 | ||
| 237 | 251 | 'target_defaults': { | |
@@ -257,6 +271,9 @@ | |||
| 257 | 271 | ['v8_enable_gdbjit==1', { | |
| 258 | 272 | 'defines': ['ENABLE_GDB_JIT_INTERFACE',], | |
| 259 | 273 | }], | |
| 274 | + ['v8_enable_hugepage==1', { | ||
| 275 | + 'defines': ['ENABLE_HUGEPAGE',], | ||
| 276 | + }], | ||
| 260 | 277 | ['v8_enable_minor_mc==1', { | |
| 261 | 278 | 'defines': ['ENABLE_MINOR_MC',], | |
| 262 | 279 | }], | |
@@ -371,6 +388,12 @@ | |||
| 371 | 388 | ['v8_dict_property_const_tracking==1', { | |
| 372 | 389 | 'defines': ['V8_DICT_PROPERTY_CONST_TRACKING',], | |
| 373 | 390 | }], | |
| 391 | + ['v8_enable_allocation_folding==1', { | ||
| 392 | + 'defines': ['V8_ALLOCATION_FOLDING',], | ||
| 393 | + }], | ||
| 394 | + ['v8_allocation_site_tracking==1', { | ||
| 395 | + 'defines': ['V8_ALLOCATION_SITE_TRACKING',], | ||
| 396 | + }], | ||
| 374 | 397 | ], # conditions | |
| 375 | 398 | 'defines': [ | |
| 376 | 399 | 'V8_GYP_BUILD', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -996,6 +996,36 @@ | |||
| 996 | 996 | }, | |
| 997 | 997 | }, | |
| 998 | 998 | }], | |
| 999 | + ['OS=="android"', { | ||
| 1000 | + 'defines': [ | ||
| 1001 | + 'V8_HAVE_TARGET_OS', | ||
| 1002 | + 'V8_TARGET_OS_ANDROID', | ||
| 1003 | + ] | ||
| 1004 | + }], | ||
| 1005 | + ['OS=="ios"', { | ||
| 1006 | + 'defines': [ | ||
| 1007 | + 'V8_HAVE_TARGET_OS', | ||
| 1008 | + 'V8_TARGET_OS_IOS', | ||
| 1009 | + ] | ||
| 1010 | + }], | ||
| 1011 | + ['OS=="linux"', { | ||
| 1012 | + 'defines': [ | ||
| 1013 | + 'V8_HAVE_TARGET_OS', | ||
| 1014 | + 'V8_TARGET_OS_LINUX', | ||
| 1015 | + ] | ||
| 1016 | + }], | ||
| 1017 | + ['OS=="mac"', { | ||
| 1018 | + 'defines': [ | ||
| 1019 | + 'V8_HAVE_TARGET_OS', | ||
| 1020 | + 'V8_TARGET_OS_MACOSX', | ||
| 1021 | + ] | ||
| 1022 | + }], | ||
| 1023 | + ['OS=="win"', { | ||
| 1024 | + 'defines': [ | ||
| 1025 | + 'V8_HAVE_TARGET_OS', | ||
| 1026 | + 'V8_TARGET_OS_WIN', | ||
| 1027 | + ] | ||
| 1028 | + }], | ||
| 999 | 1029 | ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | |
| 1000 | 1030 | or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ | |
| 1001 | 1031 | v8_target_arch=="ia32"', { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -580,100 +580,110 @@ | |||
| 580 | 580 | ], | |
| 581 | 581 | 'direct_dependent_settings': { | |
| 582 | 582 | 'sources': [ | |
| 583 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?sources = ")', | ||
| 583 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?sources = ")', | ||
| 584 | 584 | ], | |
| 585 | 585 | 'conditions': [ | |
| 586 | 586 | ['v8_enable_webassembly==1', { | |
| 587 | 587 | 'sources': [ | |
| 588 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_enable_webassembly.*?sources \\+= ")', | ||
| 588 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_webassembly.*?sources \\+= ")', | ||
| 589 | 589 | ], | |
| 590 | 590 | }], | |
| 591 | 591 | ['v8_enable_i18n_support==1', { | |
| 592 | 592 | 'sources': [ | |
| 593 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_enable_i18n_support.*?sources \\+= ")', | ||
| 593 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?sources \\+= ")', | ||
| 594 | 594 | ], | |
| 595 | 595 | }], | |
| 596 | - ['v8_control_flow_integrity==1', { | ||
| 596 | + ['v8_control_flow_integrity==0', { | ||
| 597 | 597 | 'sources': [ | |
| 598 | - '<(V8_ROOT)/src/execution/arm64/pointer-authentication-arm64.h', | ||
| 599 | - ], | ||
| 600 | - }, { | ||
| 601 | - 'sources': [ | ||
| 602 | - '<(V8_ROOT)/src/execution/pointer-authentication-dummy.h', | ||
| 598 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?!v8_control_flow_integrity.*?sources \\+= ")', | ||
| 603 | 599 | ], | |
| 604 | 600 | }], | |
| 605 | 601 | ['v8_target_arch=="ia32"', { | |
| 606 | 602 | 'sources': [ | |
| 607 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"x86.*?sources \\+= ")', | ||
| 603 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"x86\\".*?sources \\+= ")', | ||
| 608 | 604 | ], | |
| 609 | 605 | }], | |
| 610 | 606 | ['v8_target_arch=="x64"', { | |
| 611 | 607 | 'sources': [ | |
| 612 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"x64.*?sources \\+= ")', | ||
| 608 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"x64\\".*?sources \\+= ")', | ||
| 613 | 609 | ], | |
| 614 | 610 | 'conditions': [ | |
| 615 | - ['OS=="linux" or OS=="mac" or OS=="ios" or OS=="freebsd"', { | ||
| 611 | + ['OS=="win"', { | ||
| 616 | 612 | 'sources': [ | |
| 617 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?is_linux.*?sources \\+= ")', | ||
| 613 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"x64\\".*?is_win.*?sources \\+= ")', | ||
| 618 | 614 | ], | |
| 619 | 615 | }], | |
| 620 | - ['OS=="win"', { | ||
| 621 | - 'sources': [ | ||
| 622 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?is_win.*?sources \\+= ")', | ||
| 616 | + ['v8_enable_webassembly==1', { | ||
| 617 | + 'conditions': [ | ||
| 618 | + ['OS=="linux" or OS=="mac" or OS=="ios" or OS=="freebsd"', { | ||
| 619 | + 'sources': [ | ||
| 620 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"x64\\".*?v8_enable_webassembly.*?is_linux.*?sources \\+= ")', | ||
| 621 | + ], | ||
| 622 | + }], | ||
| 623 | + ['OS=="win"', { | ||
| 624 | + 'sources': [ | ||
| 625 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"x64\\".*?v8_enable_webassembly.*?is_win.*?sources \\+= ")', | ||
| 626 | + ], | ||
| 627 | + }], | ||
| 623 | 628 | ], | |
| 624 | 629 | }], | |
| 625 | 630 | ], | |
| 626 | 631 | }], | |
| 627 | 632 | ['v8_target_arch=="arm"', { | |
| 628 | 633 | 'sources': [ | |
| 629 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"arm.*?sources \\+= ")', | ||
| 634 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"arm\\".*?sources \\+= ")', | ||
| 630 | 635 | ], | |
| 631 | 636 | }], | |
| 632 | 637 | ['v8_target_arch=="arm64"', { | |
| 633 | 638 | 'sources': [ | |
| 634 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"arm64.*?sources \\+= ")', | ||
| 639 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"arm64\\".*?sources \\+= ")', | ||
| 635 | 640 | ], | |
| 636 | 641 | 'conditions': [ | |
| 637 | - ['OS=="mac"', { | ||
| 642 | + ['v8_control_flow_integrity==1', { | ||
| 643 | + 'sources': [ | ||
| 644 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"arm64\\".*?v8_control_flow_integrity.*?sources \\+= ")', | ||
| 645 | + ], | ||
| 646 | + }], | ||
| 647 | + ['v8_enable_webassembly==1 and OS=="mac"', { | ||
| 638 | 648 | 'sources': [ | |
| 639 | - "<(V8_ROOT)/src/trap-handler/handler-inside-posix.h", | ||
| 649 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"arm64\\".*?v8_enable_webassembly.*?is_mac.*?sources \\+= ")', | ||
| 640 | 650 | ], | |
| 641 | 651 | }], | |
| 642 | 652 | ['OS=="win"', { | |
| 643 | 653 | 'sources': [ | |
| 644 | - "<(V8_ROOT)/src/diagnostics/unwinding-info-win64.h" | ||
| 654 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"arm64\\".*?is_win.*?sources \\+= ")', | ||
| 645 | 655 | ], | |
| 646 | 656 | }], | |
| 647 | 657 | ], | |
| 648 | 658 | }], | |
| 649 | 659 | ['v8_target_arch=="mips" or v8_target_arch=="mipsel"', { | |
| 650 | 660 | 'sources': [ | |
| 651 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"mips\\".*?sources \\+= ")', | ||
| 661 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"mips\\".*?sources \\+= ")', | ||
| 652 | 662 | ], | |
| 653 | 663 | }], | |
| 654 | 664 | ['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', { | |
| 655 | 665 | 'sources': [ | |
| 656 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"mips64\\".*?sources \\+= ")', | ||
| 666 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"mips64\\".*?sources \\+= ")', | ||
| 657 | 667 | ], | |
| 658 | 668 | }], | |
| 659 | 669 | ['v8_target_arch=="ppc"', { | |
| 660 | 670 | 'sources': [ | |
| 661 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"ppc\\".*?sources \\+= ")', | ||
| 671 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"ppc\\".*?sources \\+= ")', | ||
| 662 | 672 | ], | |
| 663 | 673 | }], | |
| 664 | 674 | ['v8_target_arch=="ppc64"', { | |
| 665 | 675 | 'sources': [ | |
| 666 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"ppc64\\".*?sources \\+= ")', | ||
| 676 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"ppc64\\".*?sources \\+= ")', | ||
| 667 | 677 | ], | |
| 668 | 678 | }], | |
| 669 | 679 | ['v8_target_arch=="s390x"', { | |
| 670 | 680 | 'sources': [ | |
| 671 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"s390\\".*?sources \\+= ")', | ||
| 681 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"s390\\".*?sources \\+= ")', | ||
| 672 | 682 | ], | |
| 673 | 683 | }], | |
| 674 | 684 | ['v8_target_arch=="riscv64"', { | |
| 675 | 685 | 'sources': [ | |
| 676 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")', | ||
| 686 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")', | ||
| 677 | 687 | ], | |
| 678 | 688 | }], | |
| 679 | 689 | ], | |
@@ -818,17 +828,26 @@ | |||
| 818 | 828 | }], | |
| 819 | 829 | ['v8_target_arch=="x64"', { | |
| 820 | 830 | 'sources': [ | |
| 821 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"x64.*?sources \\+= ")', | ||
| 831 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"x64\\".*?sources \\+= ")', | ||
| 822 | 832 | ], | |
| 823 | 833 | 'conditions': [ | |
| 824 | - ['OS=="linux" or OS=="mac" or OS=="ios" or OS=="freebsd"', { | ||
| 834 | + ['OS=="win"', { | ||
| 825 | 835 | 'sources': [ | |
| 826 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?is_linux.*?sources \\+= ")', | ||
| 836 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"x64\\".*?is_win.*?sources \\+= ")', | ||
| 827 | 837 | ], | |
| 828 | 838 | }], | |
| 829 | - ['OS=="win"', { | ||
| 830 | - 'sources': [ | ||
| 831 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?is_win.*?sources \\+= ")', | ||
| 839 | + ['v8_enable_webassembly==1', { | ||
| 840 | + 'conditions': [ | ||
| 841 | + ['OS=="linux" or OS=="mac" or OS=="ios" or OS=="freebsd"', { | ||
| 842 | + 'sources': [ | ||
| 843 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"x64\\".*?v8_enable_webassembly.*?is_linux.*?sources \\+= ")', | ||
| 844 | + ], | ||
| 845 | + }], | ||
| 846 | + ['OS=="win"', { | ||
| 847 | + 'sources': [ | ||
| 848 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"x64\\".*?v8_enable_webassembly.*?is_win.*?sources \\+= ")', | ||
| 849 | + ], | ||
| 850 | + }], | ||
| 832 | 851 | ], | |
| 833 | 852 | }], | |
| 834 | 853 | ], | |
@@ -1583,6 +1602,16 @@ | |||
| 1583 | 1602 | 'sources': [ | |
| 1584 | 1603 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_source_set.\\"v8_bigint.*?sources = ")', | |
| 1585 | 1604 | ], | |
| 1605 | + 'conditions': [ | ||
| 1606 | + ['v8_advanced_bigint_algorithms==1', { | ||
| 1607 | + 'sources': [ | ||
| 1608 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_source_set.\\"v8_bigint.*?v8_advanced_bigint_algorithms.*?sources \\+= ")', | ||
| 1609 | + ], | ||
| 1610 | + 'defines': [ | ||
| 1611 | + 'V8_ADVANCED_BIGINT_ALGORITHMS', | ||
| 1612 | + ], | ||
| 1613 | + }], | ||
| 1614 | + ], | ||
| 1586 | 1615 | }, | |
| 1587 | 1616 | }, # v8_bigint | |
| 1588 | 1617 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments