| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7f7cb8b commit 5fe74aa
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,6 +62,12 @@ | |||
| 62 | 62 | }, { | |
| 63 | 63 | 'is_component_build': 0, | |
| 64 | 64 | }], | |
| 65 | + ['OS == "win" or OS == "mac"', { | ||
| 66 | + # Sets -DSYSTEM_INSTRUMENTATION. Enables OS-dependent event tracing | ||
| 67 | + 'v8_enable_system_instrumentation': 1, | ||
| 68 | + }, { | ||
| 69 | + 'v8_enable_system_instrumentation': 0, | ||
| 70 | + }], | ||
| 65 | 71 | ], | |
| 66 | 72 | 'is_debug%': 0, | |
| 67 | 73 | ||
@@ -160,10 +166,6 @@ | |||
| 160 | 166 | # Controls the threshold for on-heap/off-heap Typed Arrays. | |
| 161 | 167 | 'v8_typed_array_max_size_in_heap%': 64, | |
| 162 | 168 | ||
| 163 | - # Temporary flag to allow embedders to update their microtasks scopes | ||
| 164 | - # while rolling in a new version of V8. | ||
| 165 | - 'v8_check_microtasks_scopes_consistency%': 0, | ||
| 166 | - | ||
| 167 | 169 | # Enable mitigations for executing untrusted code. | |
| 168 | 170 | 'v8_untrusted_code_mitigations%': 1, | |
| 169 | 171 | ||
@@ -327,9 +329,6 @@ | |||
| 327 | 329 | ['v8_enable_lazy_source_positions==1', { | |
| 328 | 330 | 'defines': ['V8_ENABLE_LAZY_SOURCE_POSITIONS',], | |
| 329 | 331 | }], | |
| 330 | - ['v8_check_microtasks_scopes_consistency==1', { | ||
| 331 | - 'defines': ['V8_CHECK_MICROTASKS_SCOPES_CONSISTENCY',], | ||
| 332 | - }], | ||
| 333 | 332 | ['v8_use_siphash==1', { | |
| 334 | 333 | 'defines': ['V8_USE_SIPHASH',], | |
| 335 | 334 | }], | |
@@ -360,6 +359,9 @@ | |||
| 360 | 359 | ['v8_enable_precise_zone_stats==1', { | |
| 361 | 360 | 'defines': ['V8_ENABLE_PRECISE_ZONE_STATS',], | |
| 362 | 361 | }], | |
| 362 | + ['v8_enable_system_instrumentation==1', { | ||
| 363 | + 'defines': ['V8_ENABLE_SYSTEM_INSTRUMENTATION',], | ||
| 364 | + }], | ||
| 363 | 365 | ['v8_enable_webassembly==1', { | |
| 364 | 366 | 'defines': ['V8_ENABLE_WEBASSEMBLY',], | |
| 365 | 367 | }], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -671,6 +671,11 @@ | |||
| 671 | 671 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"s390\\".*?sources \\+= ")', | |
| 672 | 672 | ], | |
| 673 | 673 | }], | |
| 674 | + ['v8_target_arch=="riscv64"', { | ||
| 675 | + 'sources': [ | ||
| 676 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_internal_headers.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")', | ||
| 677 | + ], | ||
| 678 | + }], | ||
| 674 | 679 | ], | |
| 675 | 680 | }, | |
| 676 | 681 | }, # v8_internal_headers | |
@@ -856,11 +861,6 @@ | |||
| 856 | 861 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"mips\\".*?sources \\+= ")', | |
| 857 | 862 | ], | |
| 858 | 863 | }], | |
| 859 | - ['v8_target_arch=="riscv64"', { | ||
| 860 | - 'sources': [ ### gcmole(arch:riscv64) ### | ||
| 861 | - '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"riscv64.*?sources \+= ")', | ||
| 862 | - ], | ||
| 863 | - }], | ||
| 864 | 864 | ['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', { | |
| 865 | 865 | 'sources': [ | |
| 866 | 866 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"mips64\\".*?sources \\+= ")', | |
@@ -881,6 +881,11 @@ | |||
| 881 | 881 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"s390\\".*?sources \\+= ")', | |
| 882 | 882 | ], | |
| 883 | 883 | }], | |
| 884 | + ['v8_target_arch=="riscv64"', { | ||
| 885 | + 'sources': [ | ||
| 886 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")', | ||
| 887 | + ], | ||
| 888 | + }], | ||
| 884 | 889 | ['OS=="win"', { | |
| 885 | 890 | 'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h', | |
| 886 | 891 | 'msvs_precompiled_source': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.cc', | |
@@ -895,6 +900,13 @@ | |||
| 895 | 900 | 'ObjectFile': '$(IntDir)%(Extension)\\', | |
| 896 | 901 | }, | |
| 897 | 902 | }, | |
| 903 | + 'conditions': [ | ||
| 904 | + ['v8_enable_system_instrumentation==1', { | ||
| 905 | + 'sources': [ | ||
| 906 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?is_win.*?v8_enable_system_instrumentation.*?sources \\+= ")', | ||
| 907 | + ], | ||
| 908 | + }], | ||
| 909 | + ], | ||
| 898 | 910 | }], | |
| 899 | 911 | ['component=="shared_library"', { | |
| 900 | 912 | 'defines': [ | |
@@ -1133,9 +1145,11 @@ | |||
| 1133 | 1145 | '<(V8_ROOT)/src/base/platform/platform-win32.cc', | |
| 1134 | 1146 | '<(V8_ROOT)/src/base/win32-headers.h', | |
| 1135 | 1147 | ], | |
| 1136 | - 'conditions': [['target_arch == "arm64"', { | ||
| 1137 | - 'defines': ['_WIN32_WINNT=0x0602'], # For GetCurrentThreadStackLimits on Windows on Arm | ||
| 1138 | - }]], | ||
| 1148 | + 'conditions': [ | ||
| 1149 | + ['target_arch == "arm64"', { | ||
| 1150 | + 'defines': ['_WIN32_WINNT=0x0602'], # For GetCurrentThreadStackLimits on Windows on Arm | ||
| 1151 | + }], | ||
| 1152 | + ], | ||
| 1139 | 1153 | 'defines': ['_CRT_RAND_S'], # for rand_s() | |
| 1140 | 1154 | 'direct_dependent_settings': { | |
| 1141 | 1155 | 'msvs_settings': { | |
@@ -1147,6 +1161,17 @@ | |||
| 1147 | 1161 | ] | |
| 1148 | 1162 | } | |
| 1149 | 1163 | }, | |
| 1164 | + 'conditions': [ | ||
| 1165 | + ['v8_enable_system_instrumentation==1', { | ||
| 1166 | + 'msvs_settings': { | ||
| 1167 | + 'VCLinkerTool': { | ||
| 1168 | + 'AdditionalDependencies': [ | ||
| 1169 | + 'advapi32.lib', | ||
| 1170 | + ], | ||
| 1171 | + }, | ||
| 1172 | + }, | ||
| 1173 | + }], | ||
| 1174 | + ], | ||
| 1150 | 1175 | }, | |
| 1151 | 1176 | }], | |
| 1152 | 1177 | ['target_arch == "mips" or OS == "mips64"', { | |
@@ -1288,8 +1313,6 @@ | |||
| 1288 | 1313 | '<(V8_ROOT)/src/libplatform/delayed-task-queue.h', | |
| 1289 | 1314 | '<(V8_ROOT)/src/libplatform/task-queue.cc', | |
| 1290 | 1315 | '<(V8_ROOT)/src/libplatform/task-queue.h', | |
| 1291 | - '<(V8_ROOT)/src/libplatform/tracing/recorder-default.cc', | ||
| 1292 | - '<(V8_ROOT)/src/libplatform/tracing/recorder.h', | ||
| 1293 | 1316 | '<(V8_ROOT)/src/libplatform/tracing/trace-buffer.cc', | |
| 1294 | 1317 | '<(V8_ROOT)/src/libplatform/tracing/trace-buffer.h', | |
| 1295 | 1318 | '<(V8_ROOT)/src/libplatform/tracing/trace-config.cc', | |
@@ -1313,7 +1336,6 @@ | |||
| 1313 | 1336 | ['v8_use_perfetto==1', { | |
| 1314 | 1337 | 'sources!': [ | |
| 1315 | 1338 | '<(V8_ROOT)/base/trace_event/common/trace_event_common.h', | |
| 1316 | - '<(V8_ROOT)/src/libplatform/tracing/recorder-default.cc', | ||
| 1317 | 1339 | '<(V8_ROOT)/src/libplatform/tracing/trace-buffer.cc', | |
| 1318 | 1340 | '<(V8_ROOT)/src/libplatform/tracing/trace-buffer.h', | |
| 1319 | 1341 | '<(V8_ROOT)/src/libplatform/tracing/trace-object.cc', | |
@@ -1329,14 +1351,18 @@ | |||
| 1329 | 1351 | '<(V8_ROOT)/third_party/perfetto/protos/perfetto/trace:lite', | |
| 1330 | 1352 | ], | |
| 1331 | 1353 | }], | |
| 1332 | - ['v8_use_perfetto==0 and is_win', { | ||
| 1333 | - 'sources!': [ | ||
| 1334 | - '<(V8_ROOT)/src/libplatform/tracing/recorder-default.cc', | ||
| 1335 | - ], | ||
| 1354 | + ['v8_enable_system_instrumentation==1 and is_win', { | ||
| 1336 | 1355 | 'sources': [ | |
| 1356 | + '<(V8_ROOT)/src/libplatform/tracing/recorder.h', | ||
| 1337 | 1357 | '<(V8_ROOT)/src/libplatform/tracing/recorder-win.cc', | |
| 1338 | 1358 | ], | |
| 1339 | 1359 | }], | |
| 1360 | + ['v8_enable_system_instrumentation==1 and OS=="mac"', { | ||
| 1361 | + 'sources': [ | ||
| 1362 | + '<(V8_ROOT)/src/libplatform/tracing/recorder.h', | ||
| 1363 | + '<(V8_ROOT)/src/libplatform/tracing/recorder-mac.cc', | ||
| 1364 | + ], | ||
| 1365 | + }], | ||
| 1340 | 1366 | ], | |
| 1341 | 1367 | 'direct_dependent_settings': { | |
| 1342 | 1368 | 'include_dirs': [ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments