|
292 | 292 | '<(V8_ROOT)/src/builtins/riscv64/builtins-riscv64.cc',
|
293 | 293 | ],
|
294 | 294 | }],
|
| 295 | + ['v8_target_arch=="loong64" or v8_target_arch=="loong64"', { |
| 296 | + 'sources': [ |
| 297 | + '<(V8_ROOT)/src/builtins/loong64/builtins-loong64.cc', |
| 298 | + ], |
| 299 | + }], |
295 | 300 | ['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', {
|
296 | 301 | 'sources': [
|
297 | 302 | '<(V8_ROOT)/src/builtins/mips64/builtins-mips64.cc',
|
|
647 | 652 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")',
|
648 | 653 | ],
|
649 | 654 | }],
|
| 655 | + ['v8_target_arch=="loong64"', { |
| 656 | + 'sources': [ |
| 657 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"loong64\\".*?sources \\+= ")', |
| 658 | + ], |
| 659 | + }], |
650 | 660 | ],
|
651 | 661 | },
|
652 | 662 | }, # v8_internal_headers
|
|
875 | 885 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")',
|
876 | 886 | ],
|
877 | 887 | }],
|
| 888 | + ['v8_target_arch=="loong64"', { |
| 889 | + 'sources': [ |
| 890 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"loong64\\".*?sources \\+= ")', |
| 891 | + ], |
| 892 | + }], |
878 | 893 | ['OS=="win"', {
|
879 | 894 | 'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h',
|
880 | 895 | 'msvs_precompiled_source': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.cc',
|
|
940 | 955 | }],
|
941 | 956 | # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library
|
942 | 957 | # to implement atomic memory access
|
943 |
| - ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "arm", "riscv64"]', { |
| 958 | + ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "arm", "riscv64", "loong64"]', { |
944 | 959 | 'link_settings': {
|
945 | 960 | 'libraries': ['-latomic', ],
|
946 | 961 | },
|
|
1611 | 1626 | '<(V8_ROOT)/src/heap/base/asm/riscv64/push_registers_asm.cc',
|
1612 | 1627 | ],
|
1613 | 1628 | }],
|
| 1629 | + ['_toolset == "host" and host_arch == "loong64" or _toolset == "target" and target_arch=="loong64"', { |
| 1630 | + 'sources': [ |
| 1631 | + '<(V8_ROOT)/src/heap/base/asm/loong64/push_registers_asm.cc', |
| 1632 | + ], |
| 1633 | + }], |
1614 | 1634 | ]
|
1615 | 1635 | }],
|
1616 | 1636 | ['OS=="win"', {
|
|
0 commit comments