|
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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | ], |
|
0 commit comments