| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ca4bd30 commit 7ce2232
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -133,6 +133,9 @@ | |||
| 133 | 133 | # as per the --native-code-counters flag. | |
| 134 | 134 | 'v8_enable_snapshot_native_code_counters%': 0, | |
| 135 | 135 | ||
| 136 | + # Use pre-generated static root pointer values from static-roots.h. | ||
| 137 | + 'v8_enable_static_roots%': 0, | ||
| 138 | + | ||
| 136 | 139 | # Enable code-generation-time checking of types in the CodeStubAssembler. | |
| 137 | 140 | 'v8_enable_verify_csa%': 0, | |
| 138 | 141 | ||
@@ -168,10 +171,6 @@ | |||
| 168 | 171 | # Enables various testing features. | |
| 169 | 172 | 'v8_enable_test_features%': 0, | |
| 170 | 173 | ||
| 171 | - # Enable the Maglev compiler. | ||
| 172 | - # Sets -dV8_ENABLE_MAGLEV | ||
| 173 | - 'v8_enable_maglev%': 0, | ||
| 174 | - | ||
| 175 | 174 | # With post mortem support enabled, metadata is embedded into libv8 that | |
| 176 | 175 | # describes various parameters of the VM for use by debuggers. See | |
| 177 | 176 | # tools/gen-postmortem-metadata.py for details. | |
@@ -278,9 +277,19 @@ | |||
| 278 | 277 | # Sets --DV8_LITE_MODE. | |
| 279 | 278 | 'v8_enable_lite_mode%': 0, | |
| 280 | 279 | ||
| 280 | + # Enable the Turbofan compiler. | ||
| 281 | + # Sets -dV8_ENABLE_TURBOFAN | ||
| 282 | + 'v8_enable_turbofan%': 1, | ||
| 283 | + | ||
| 284 | + # Enable the Maglev compiler. | ||
| 285 | + # Sets -dV8_ENABLE_MAGLEV | ||
| 286 | + 'v8_enable_maglev%': 0, | ||
| 287 | + | ||
| 281 | 288 | # Include support for WebAssembly. If disabled, the 'WebAssembly' global | |
| 282 | 289 | # will not be available, and embedder APIs to generate WebAssembly modules | |
| 283 | - # will fail. | ||
| 290 | + # will fail. Also, asm.js will not be translated to WebAssembly and will be | ||
| 291 | + # executed as standard JavaScript instead. | ||
| 292 | + # Sets -dV8_ENABLE_WEBASSEMBLY. | ||
| 284 | 293 | 'v8_enable_webassembly%': 1, | |
| 285 | 294 | ||
| 286 | 295 | # Enable advanced BigInt algorithms, costing about 10-30 KiB binary size | |
@@ -428,6 +437,9 @@ | |||
| 428 | 437 | ['v8_enable_cet_shadow_stack==1', { | |
| 429 | 438 | 'defines': ['V8_ENABLE_CET_SHADOW_STACK',], | |
| 430 | 439 | }], | |
| 440 | + ['v8_enable_static_roots==1', { | ||
| 441 | + 'defines': ['V8_STATIC_ROOTS',], | ||
| 442 | + }], | ||
| 431 | 443 | ['v8_use_zlib==1', { | |
| 432 | 444 | 'defines': ['V8_USE_ZLIB',], | |
| 433 | 445 | }], | |
@@ -437,6 +449,9 @@ | |||
| 437 | 449 | ['v8_enable_maglev==1', { | |
| 438 | 450 | 'defines': ['V8_ENABLE_MAGLEV',], | |
| 439 | 451 | }], | |
| 452 | + ['v8_enable_turbofan==1', { | ||
| 453 | + 'defines': ['V8_ENABLE_TURBOFAN',], | ||
| 454 | + }], | ||
| 440 | 455 | ['v8_enable_swiss_name_dictionary==1', { | |
| 441 | 456 | 'defines': ['V8_ENABLE_SWISS_NAME_DICTIONARY',], | |
| 442 | 457 | }], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,6 +45,8 @@ | |||
| 45 | 45 | 'inspector_all_sources': [ | |
| 46 | 46 | '<(V8_ROOT)/include/v8-inspector.h', | |
| 47 | 47 | '<(V8_ROOT)/include/v8-inspector-protocol.h', | |
| 48 | + '<(V8_ROOT)/src/inspector/crc32.cc', | ||
| 49 | + '<(V8_ROOT)/src/inspector/crc32.h', | ||
| 48 | 50 | '<(V8_ROOT)/src/inspector/custom-preview.cc', | |
| 49 | 51 | '<(V8_ROOT)/src/inspector/custom-preview.h', | |
| 50 | 52 | '<(V8_ROOT)/src/inspector/injected-script.cc', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,6 @@ | |||
| 21 | 21 | 'torque_outputs_inl_inc': ['<!@pymod_do_main(ForEachFormat "<(SHARED_INTERMEDIATE_DIR)/torque-generated/%s-inl.inc" <@(torque_files_replaced))'], | |
| 22 | 22 | 'torque_outputs_cc': ['<!@pymod_do_main(ForEachFormat "<(SHARED_INTERMEDIATE_DIR)/torque-generated/%s.cc" <@(torque_files_replaced))'], | |
| 23 | 23 | 'torque_outputs_inc': ['<!@pymod_do_main(ForEachFormat "<(SHARED_INTERMEDIATE_DIR)/torque-generated/%s.inc" <@(torque_files_replaced))'], | |
| 24 | - 'v8_compiler_sources': ['<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources = ")'], | ||
| 25 | 24 | 'conditions': [ | |
| 26 | 25 | ['v8_enable_i18n_support==1', { | |
| 27 | 26 | 'torque_files': [ | |
@@ -32,9 +31,6 @@ | |||
| 32 | 31 | 'torque_files': [ | |
| 33 | 32 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "torque_files =.*?v8_enable_webassembly.*?torque_files \\+= ")', | |
| 34 | 33 | ], | |
| 35 | - 'v8_compiler_sources': [ | ||
| 36 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_enable_webassembly.*?v8_compiler_sources \\+= ")', | ||
| 37 | - ], | ||
| 38 | 34 | }], | |
| 39 | 35 | ], | |
| 40 | 36 | }, | |
@@ -678,7 +674,67 @@ | |||
| 678 | 674 | }, | |
| 679 | 675 | }, # v8_internal_headers | |
| 680 | 676 | { | |
| 681 | - 'target_name': 'v8_compiler_opt', | ||
| 677 | + 'target_name': 'v8_compiler_sources', | ||
| 678 | + 'type': 'none', | ||
| 679 | + 'toolsets': ['host', 'target'], | ||
| 680 | + 'direct_dependent_settings': { | ||
| 681 | + 'sources': ['<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources = ")'], | ||
| 682 | + 'conditions': [ | ||
| 683 | + ['v8_target_arch=="ia32"', { | ||
| 684 | + 'sources': [ | ||
| 685 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_current_cpu == \\"x86\\".*?v8_compiler_sources \\+= ")', | ||
| 686 | + ], | ||
| 687 | + }], | ||
| 688 | + ['v8_target_arch=="x64"', { | ||
| 689 | + 'sources': [ | ||
| 690 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_current_cpu == \\"x64\\".*?v8_compiler_sources \\+= ")', | ||
| 691 | + ], | ||
| 692 | + }], | ||
| 693 | + ['v8_target_arch=="arm"', { | ||
| 694 | + 'sources': [ | ||
| 695 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_current_cpu == \\"arm\\".*?v8_compiler_sources \\+= ")', | ||
| 696 | + ], | ||
| 697 | + }], | ||
| 698 | + ['v8_target_arch=="arm64"', { | ||
| 699 | + 'sources': [ | ||
| 700 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_current_cpu == \\"arm64\\".*?v8_compiler_sources \\+= ")', | ||
| 701 | + ], | ||
| 702 | + }], | ||
| 703 | + ['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', { | ||
| 704 | + 'sources': [ | ||
| 705 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_current_cpu == \\"mips64\\".*?v8_compiler_sources \\+= ")', | ||
| 706 | + ], | ||
| 707 | + }], | ||
| 708 | + ['v8_target_arch=="ppc"', { | ||
| 709 | + 'sources': [ | ||
| 710 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_current_cpu == \\"ppc\\".*?v8_compiler_sources \\+= ")', | ||
| 711 | + ], | ||
| 712 | + }], | ||
| 713 | + ['v8_target_arch=="ppc64"', { | ||
| 714 | + 'sources': [ | ||
| 715 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_current_cpu == \\"ppc64\\".*?v8_compiler_sources \\+= ")', | ||
| 716 | + ], | ||
| 717 | + }], | ||
| 718 | + ['v8_target_arch=="s390x"', { | ||
| 719 | + 'sources': [ | ||
| 720 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_current_cpu == \\"s390x\\".*?v8_compiler_sources \\+= ")', | ||
| 721 | + ], | ||
| 722 | + }], | ||
| 723 | + ['v8_target_arch=="riscv64"', { | ||
| 724 | + 'sources': [ | ||
| 725 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_current_cpu == \\"riscv64\\".*?v8_compiler_sources \\+= ")', | ||
| 726 | + ], | ||
| 727 | + }], | ||
| 728 | + ['v8_enable_webassembly==1', { | ||
| 729 | + 'sources': [ | ||
| 730 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources =.*?v8_enable_webassembly.*?v8_compiler_sources \\+= ")', | ||
| 731 | + ], | ||
| 732 | + }], | ||
| 733 | + ], | ||
| 734 | + } | ||
| 735 | + }, # v8_compiler_sources | ||
| 736 | + { | ||
| 737 | + 'target_name': 'v8_compiler_for_mksnapshot_source_set', | ||
| 682 | 738 | 'type': 'static_library', | |
| 683 | 739 | 'toolsets': ['host', 'target'], | |
| 684 | 740 | 'dependencies': [ | |
@@ -690,7 +746,6 @@ | |||
| 690 | 746 | 'v8_libbase', | |
| 691 | 747 | 'v8_shared_internal_headers', | |
| 692 | 748 | ], | |
| 693 | - 'sources': ['<@(v8_compiler_sources)'], | ||
| 694 | 749 | 'conditions': [ | |
| 695 | 750 | ['OS=="win"', { | |
| 696 | 751 | 'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h', | |
@@ -700,8 +755,13 @@ | |||
| 700 | 755 | '<(_msvs_precompiled_source)', | |
| 701 | 756 | ], | |
| 702 | 757 | }], | |
| 758 | + ['v8_enable_turbofan==1', { | ||
| 759 | + 'dependencies': ['v8_compiler_sources'], | ||
| 760 | + }, { | ||
| 761 | + 'sources': ['<(V8_ROOT)/src/compiler/turbofan-disabled.cc'], | ||
| 762 | + }], | ||
| 703 | 763 | ], | |
| 704 | - }, # v8_compiler_opt | ||
| 764 | + }, # v8_compiler_for_mksnapshot_source_set | ||
| 705 | 765 | { | |
| 706 | 766 | 'target_name': 'v8_compiler', | |
| 707 | 767 | 'type': 'static_library', | |
@@ -716,8 +776,12 @@ | |||
| 716 | 776 | 'v8_shared_internal_headers', | |
| 717 | 777 | 'v8_turboshaft', | |
| 718 | 778 | ], | |
| 719 | - 'sources': ['<@(v8_compiler_sources)'], | ||
| 720 | 779 | 'conditions': [ | |
| 780 | + ['v8_enable_turbofan==1', { | ||
| 781 | + 'dependencies': ['v8_compiler_sources'], | ||
| 782 | + }, { | ||
| 783 | + 'sources': ['<(V8_ROOT)/src/compiler/turbofan-disabled.cc'], | ||
| 784 | + }], | ||
| 721 | 785 | ['OS=="win"', { | |
| 722 | 786 | 'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h', | |
| 723 | 787 | 'msvs_precompiled_source': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.cc', | |
@@ -766,12 +830,12 @@ | |||
| 766 | 830 | 'v8_maybe_icu', | |
| 767 | 831 | ], | |
| 768 | 832 | 'conditions': [ | |
| 769 | - ['is_component_build and not v8_optimized_debug and v8_enable_fast_mksnapshot', { | ||
| 833 | + ['(is_component_build and not v8_optimized_debug and v8_enable_fast_mksnapshot) or v8_enable_turbofan==0', { | ||
| 770 | 834 | 'dependencies': [ | |
| 771 | - 'v8_compiler_opt', | ||
| 835 | + 'v8_compiler_for_mksnapshot_source_set', | ||
| 772 | 836 | ], | |
| 773 | 837 | 'export_dependent_settings': [ | |
| 774 | - 'v8_compiler_opt', | ||
| 838 | + 'v8_compiler_for_mksnapshot_source_set', | ||
| 775 | 839 | ], | |
| 776 | 840 | }, { | |
| 777 | 841 | 'dependencies': [ | |
@@ -1036,7 +1100,13 @@ | |||
| 1036 | 1100 | 'dependencies': [ | |
| 1037 | 1101 | 'v8_base_without_compiler', | |
| 1038 | 1102 | 'v8_compiler', | |
| 1039 | - 'v8_turboshaft', | ||
| 1103 | + ], | ||
| 1104 | + 'conditions': [ | ||
| 1105 | + ['v8_enable_turbofan==1', { | ||
| 1106 | + 'dependencies': [ | ||
| 1107 | + 'v8_turboshaft', | ||
| 1108 | + ], | ||
| 1109 | + }], | ||
| 1040 | 1110 | ], | |
| 1041 | 1111 | }, # v8_base | |
| 1042 | 1112 | { | |
@@ -1195,7 +1265,6 @@ | |||
| 1195 | 1265 | 'sources': [ | |
| 1196 | 1266 | '<(V8_ROOT)/src/base/debug/stack_trace_posix.cc', | |
| 1197 | 1267 | '<(V8_ROOT)/src/base/platform/platform-darwin.cc', | |
| 1198 | - '<(V8_ROOT)/src/base/platform/platform-macos.cc', | ||
| 1199 | 1268 | ] | |
| 1200 | 1269 | }], | |
| 1201 | 1270 | ['OS == "ios"', { | |
@@ -1287,11 +1356,6 @@ | |||
| 1287 | 1356 | '<(V8_ROOT)/src/base/platform/platform-linux.cc' | |
| 1288 | 1357 | ], | |
| 1289 | 1358 | }], | |
| 1290 | - ['_toolset=="host" and host_os=="mac"', { | ||
| 1291 | - 'sources': [ | ||
| 1292 | - '<(V8_ROOT)/src/base/platform/platform-macos.cc' | ||
| 1293 | - ], | ||
| 1294 | - }], | ||
| 1295 | 1359 | ['_toolset=="target"', { | |
| 1296 | 1360 | 'sources': [ | |
| 1297 | 1361 | '<(V8_ROOT)/src/base/platform/platform-qnx.cc' | |
@@ -1661,47 +1725,47 @@ | |||
| 1661 | 1725 | 'conditions': [ | |
| 1662 | 1726 | ['_toolset == "host" and host_arch == "x64" or _toolset == "target" and target_arch=="x64"', { | |
| 1663 | 1727 | 'sources': [ | |
| 1664 | - '<(V8_ROOT)/src/heap/base/asm/x64/save_registers_asm.cc', | ||
| 1728 | + '<(V8_ROOT)/src/heap/base/asm/x64/push_registers_asm.cc', | ||
| 1665 | 1729 | ], | |
| 1666 | 1730 | }], | |
| 1667 | 1731 | ['_toolset == "host" and host_arch == "ia32" or _toolset == "target" and target_arch=="ia32"', { | |
| 1668 | 1732 | 'sources': [ | |
| 1669 | - '<(V8_ROOT)/src/heap/base/asm/ia32/save_registers_asm.cc', | ||
| 1733 | + '<(V8_ROOT)/src/heap/base/asm/ia32/push_registers_asm.cc', | ||
| 1670 | 1734 | ], | |
| 1671 | 1735 | }], | |
| 1672 | 1736 | ['_toolset == "host" and host_arch == "arm" or _toolset == "target" and target_arch=="arm"', { | |
| 1673 | 1737 | 'sources': [ | |
| 1674 | - '<(V8_ROOT)/src/heap/base/asm/arm/save_registers_asm.cc', | ||
| 1738 | + '<(V8_ROOT)/src/heap/base/asm/arm/push_registers_asm.cc', | ||
| 1675 | 1739 | ], | |
| 1676 | 1740 | }], | |
| 1677 | 1741 | ['_toolset == "host" and host_arch == "arm64" or _toolset == "target" and target_arch=="arm64"', { | |
| 1678 | 1742 | 'sources': [ | |
| 1679 | - '<(V8_ROOT)/src/heap/base/asm/arm64/save_registers_asm.cc', | ||
| 1743 | + '<(V8_ROOT)/src/heap/base/asm/arm64/push_registers_asm.cc', | ||
| 1680 | 1744 | ], | |
| 1681 | 1745 | }], | |
| 1682 | 1746 | ['_toolset == "host" and host_arch == "ppc64" or _toolset == "target" and target_arch=="ppc64"', { | |
| 1683 | 1747 | 'sources': [ | |
| 1684 | - '<(V8_ROOT)/src/heap/base/asm/ppc/save_registers_asm.cc', | ||
| 1748 | + '<(V8_ROOT)/src/heap/base/asm/ppc/push_registers_asm.cc', | ||
| 1685 | 1749 | ], | |
| 1686 | 1750 | }], | |
| 1687 | 1751 | ['_toolset == "host" and host_arch == "s390x" or _toolset == "target" and target_arch=="s390x"', { | |
| 1688 | 1752 | 'sources': [ | |
| 1689 | - '<(V8_ROOT)/src/heap/base/asm/s390/save_registers_asm.cc', | ||
| 1753 | + '<(V8_ROOT)/src/heap/base/asm/s390/push_registers_asm.cc', | ||
| 1690 | 1754 | ], | |
| 1691 | 1755 | }], | |
| 1692 | 1756 | ['_toolset == "host" and host_arch == "mips64" or _toolset == "target" and target_arch=="mips64" or _toolset == "host" and host_arch == "mips64el" or _toolset == "target" and target_arch=="mips64el"', { | |
| 1693 | 1757 | 'sources': [ | |
| 1694 | - '<(V8_ROOT)/src/heap/base/asm/mips64/save_registers_asm.cc', | ||
| 1758 | + '<(V8_ROOT)/src/heap/base/asm/mips64/push_registers_asm.cc', | ||
| 1695 | 1759 | ], | |
| 1696 | 1760 | }], | |
| 1697 | 1761 | ['_toolset == "host" and host_arch == "riscv64" or _toolset == "target" and target_arch=="riscv64"', { | |
| 1698 | 1762 | 'sources': [ | |
| 1699 | - '<(V8_ROOT)/src/heap/base/asm/riscv/save_registers_asm.cc', | ||
| 1763 | + '<(V8_ROOT)/src/heap/base/asm/riscv/push_registers_asm.cc', | ||
| 1700 | 1764 | ], | |
| 1701 | 1765 | }], | |
| 1702 | 1766 | ['_toolset == "host" and host_arch == "loong64" or _toolset == "target" and target_arch=="loong64"', { | |
| 1703 | 1767 | 'sources': [ | |
| 1704 | - '<(V8_ROOT)/src/heap/base/asm/loong64/save_registers_asm.cc', | ||
| 1768 | + '<(V8_ROOT)/src/heap/base/asm/loong64/push_registers_asm.cc', | ||
| 1705 | 1769 | ], | |
| 1706 | 1770 | }], | |
| 1707 | 1771 | ] | |
@@ -1710,17 +1774,17 @@ | |||
| 1710 | 1774 | 'conditions': [ | |
| 1711 | 1775 | ['_toolset == "host" and host_arch == "x64" or _toolset == "target" and target_arch=="x64"', { | |
| 1712 | 1776 | 'sources': [ | |
| 1713 | - '<(V8_ROOT)/src/heap/base/asm/x64/save_registers_masm.asm', | ||
| 1777 | + '<(V8_ROOT)/src/heap/base/asm/x64/push_registers_masm.asm', | ||
| 1714 | 1778 | ], | |
| 1715 | 1779 | }], | |
| 1716 | 1780 | ['_toolset == "host" and host_arch == "ia32" or _toolset == "target" and target_arch=="ia32"', { | |
| 1717 | 1781 | 'sources': [ | |
| 1718 | - '<(V8_ROOT)/src/heap/base/asm/ia32/save_registers_masm.asm', | ||
| 1782 | + '<(V8_ROOT)/src/heap/base/asm/ia32/push_registers_masm.asm', | ||
| 1719 | 1783 | ], | |
| 1720 | 1784 | }], | |
| 1721 | 1785 | ['_toolset == "host" and host_arch == "arm64" or _toolset == "target" and target_arch=="arm64"', { | |
| 1722 | 1786 | 'sources': [ | |
| 1723 | - '<(V8_ROOT)/src/heap/base/asm/arm64/save_registers_masm.S', | ||
| 1787 | + '<(V8_ROOT)/src/heap/base/asm/arm64/push_registers_masm.S', | ||
| 1724 | 1788 | ], | |
| 1725 | 1789 | }], | |
| 1726 | 1790 | ], | |
| Back | FazBrowse Home | New Git URL |
0 commit comments