@@ -44,7 +44,6 @@ config_setting(
44
44
# v8_enable_trace_baseline_exec
45
45
# v8_enable_trace_feedback_updates
46
46
# v8_enable_atomic_object_field_writes
47
- # v8_enable_atomic_marking_state
48
47
# v8_enable_concurrent_marking
49
48
# v8_enable_ignition_dispatch_counting
50
49
# v8_enable_builtins_profiling
@@ -322,6 +321,14 @@ v8_config(
322
321
"V8_HAVE_TARGET_OS" ,
323
322
"V8_TARGET_OS_MACOSX" ,
324
323
],
324
+ "@config//:is_windows" : [
325
+ "V8_HAVE_TARGET_OS" ,
326
+ "V8_TARGET_OS_WIN" ,
327
+ "UNICODE" ,
328
+ "_UNICODE" ,
329
+ "_CRT_RAND_S" ,
330
+ "_WIN32_WINNT=0x0602" ,
331
+ ],
325
332
}) + select ({
326
333
":is_v8_enable_pointer_compression" : [
327
334
"V8_COMPRESS_POINTERS" ,
@@ -351,6 +358,19 @@ v8_config(
351
358
# File group rules
352
359
# =================================================
353
360
361
+ filegroup (
362
+ name = "public_header_files" ,
363
+ srcs = glob (["include/**/*.h" ]),
364
+ )
365
+
366
+ filegroup (
367
+ name = "public_wasm_c_api_header_files" ,
368
+ srcs = [
369
+ "third_party/wasm-api/wasm.h" ,
370
+ "third_party/wasm-api/wasm.hh" ,
371
+ ],
372
+ )
373
+
354
374
filegroup (
355
375
name = "v8_config_headers_files" ,
356
376
srcs = [
@@ -425,6 +445,7 @@ filegroup(
425
445
"include/v8-date.h" ,
426
446
"include/v8-debug.h" ,
427
447
"include/v8-embedder-heap.h" ,
448
+ "include/v8-embedder-state-scope.h" ,
428
449
"include/v8-exception.h" ,
429
450
"include/v8-extension.h" ,
430
451
"include/v8-external.h" ,
@@ -520,6 +541,8 @@ filegroup(
520
541
"src/base/debug/stack_trace.h" ,
521
542
"src/base/division-by-constant.cc" ,
522
543
"src/base/division-by-constant.h" ,
544
+ "src/base/emulated-virtual-address-subspace.cc" ,
545
+ "src/base/emulated-virtual-address-subspace.h" ,
523
546
"src/base/enum-set.h" ,
524
547
"src/base/export-template.h" ,
525
548
"src/base/file-utils.cc" ,
@@ -591,9 +614,14 @@ filegroup(
591
614
"src/base/utils/random-number-generator.cc" ,
592
615
"src/base/utils/random-number-generator.h" ,
593
616
"src/base/vector.h" ,
617
+ "src/base/virtual-address-space-page-allocator.cc" ,
618
+ "src/base/virtual-address-space-page-allocator.h" ,
619
+ "src/base/virtual-address-space.cc" ,
620
+ "src/base/virtual-address-space.h" ,
594
621
"src/base/v8-fallthrough.h" ,
595
622
"src/base/vlq-base64.cc" ,
596
623
"src/base/vlq-base64.h" ,
624
+ "src/base/platform/yield-processor.h" ,
597
625
] + select ({
598
626
"@config//:is_posix" : [
599
627
"src/base/platform/platform-posix.cc" ,
@@ -615,6 +643,11 @@ filegroup(
615
643
"src/base/debug/stack_trace_posix.cc" ,
616
644
"src/base/platform/platform-macos.cc" ,
617
645
],
646
+ "@config//:is_windows" : [
647
+ "src/base/win32-headers.h" ,
648
+ "src/base/debug/stack_trace_win.cc" ,
649
+ "src/base/platform/platform-win32.cc" ,
650
+ ],
618
651
}),
619
652
visibility = ["//visibility:public" ],
620
653
)
@@ -1110,6 +1143,7 @@ filegroup(
1110
1143
"src/common/assert-scope.cc" ,
1111
1144
"src/common/assert-scope.h" ,
1112
1145
"src/common/checks.h" ,
1146
+ "src/common/high-allocation-throughput-scope.h" ,
1113
1147
"src/common/message-template.h" ,
1114
1148
"src/common/ptr-compr-inl.h" ,
1115
1149
"src/common/ptr-compr.h" ,
@@ -1180,6 +1214,10 @@ filegroup(
1180
1214
"src/execution/arguments-inl.h" ,
1181
1215
"src/execution/arguments.cc" ,
1182
1216
"src/execution/arguments.h" ,
1217
+ "src/execution/encoded-c-signature.cc" ,
1218
+ "src/execution/encoded-c-signature.h" ,
1219
+ "src/execution/embedder-state.h" ,
1220
+ "src/execution/embedder-state.cc" ,
1183
1221
"src/execution/execution.cc" ,
1184
1222
"src/execution/execution.h" ,
1185
1223
"src/execution/frame-constants.h" ,
@@ -1307,6 +1345,8 @@ filegroup(
1307
1345
"src/heap/heap-controller.cc" ,
1308
1346
"src/heap/heap-controller.h" ,
1309
1347
"src/heap/heap-inl.h" ,
1348
+ "src/heap/heap-layout-tracer.cc" ,
1349
+ "src/heap/heap-layout-tracer.h" ,
1310
1350
"src/heap/heap-write-barrier-inl.h" ,
1311
1351
"src/heap/heap-write-barrier.cc" ,
1312
1352
"src/heap/heap-write-barrier.h" ,
@@ -1400,7 +1440,6 @@ filegroup(
1400
1440
"src/heap/sweeper.h" ,
1401
1441
"src/heap/weak-object-worklists.cc" ,
1402
1442
"src/heap/weak-object-worklists.h" ,
1403
- "src/heap/worklist.h" ,
1404
1443
"src/ic/call-optimization.cc" ,
1405
1444
"src/ic/call-optimization.h" ,
1406
1445
"src/ic/handler-configuration-inl.h" ,
@@ -1890,6 +1929,8 @@ filegroup(
1890
1929
"src/base/sanitizer/asan.h" ,
1891
1930
"src/base/sanitizer/lsan-page-allocator.cc" ,
1892
1931
"src/base/sanitizer/lsan-page-allocator.h" ,
1932
+ "src/base/sanitizer/lsan-virtual-address-space.cc" ,
1933
+ "src/base/sanitizer/lsan-virtual-address-space.h" ,
1893
1934
"src/base/sanitizer/msan.h" ,
1894
1935
"src/base/sanitizer/tsan.h" ,
1895
1936
"src/snapshot/code-serializer.cc" ,
@@ -1961,6 +2002,8 @@ filegroup(
1961
2002
"src/tasks/operations-barrier.h" ,
1962
2003
"src/tasks/task-utils.cc" ,
1963
2004
"src/tasks/task-utils.h" ,
2005
+ "src/temporal/temporal-parser.cc" ,
2006
+ "src/temporal/temporal-parser.h" ,
1964
2007
"src/torque/runtime-macro-shims.h" ,
1965
2008
"src/third_party/siphash/halfsiphash.cc" ,
1966
2009
"src/third_party/siphash/halfsiphash.h" ,
@@ -2163,7 +2206,7 @@ filegroup(
2163
2206
],
2164
2207
}) + select ({
2165
2208
# Only for x64 builds and for arm64 with x64 host simulator.
2166
- "@config//:is_x64 " : [
2209
+ "@config//:is_posix_x64 " : [
2167
2210
"src/trap-handler/handler-inside-posix.cc" ,
2168
2211
"src/trap-handler/handler-outside-posix.cc" ,
2169
2212
],
@@ -2174,6 +2217,22 @@ filegroup(
2174
2217
"src/trap-handler/handler-outside-simulator.cc" ,
2175
2218
],
2176
2219
"//conditions:default" : [],
2220
+ }) + select ({
2221
+ "@config//:is_windows" : [
2222
+ "src/trap-handler/handler-inside-win.cc" ,
2223
+ "src/trap-handler/handler-outside-win.cc" ,
2224
+ "src/trap-handler/handler-inside-win.h" ,
2225
+ # Needed on windows to work around https://github.com/bazelbuild/bazel/issues/6337
2226
+ "third_party/zlib/zlib.h" ,
2227
+ "third_party/zlib/zconf.h" ,
2228
+ ],
2229
+ "//conditions:default" : [],
2230
+ }) + select ({
2231
+ "@config//:is_windows_64bit" : [
2232
+ "src/diagnostics/unwinding-info-win64.cc" ,
2233
+ "src/diagnostics/unwinding-info-win64.h" ,
2234
+ ],
2235
+ "//conditions:default" : [],
2177
2236
}) + select ({
2178
2237
":is_v8_enable_webassembly" : [
2179
2238
"src/asmjs/asm-js.cc" ,
@@ -2717,6 +2776,7 @@ filegroup(
2717
2776
"src/heap/cppgc/marking-visitor.h" ,
2718
2777
"src/heap/cppgc/marking-worklists.cc" ,
2719
2778
"src/heap/cppgc/marking-worklists.h" ,
2779
+ "src/heap/cppgc/memory.cc" ,
2720
2780
"src/heap/cppgc/memory.h" ,
2721
2781
"src/heap/cppgc/metric-recorder.h" ,
2722
2782
"src/heap/cppgc/name-trait.cc" ,
@@ -2770,10 +2830,13 @@ filegroup(
2770
2830
# Note these cannot be v8_target_is_* selects because these contain
2771
2831
# inline assembly that runs inside the executable. Since these are
2772
2832
# linked directly into mksnapshot, they must use the actual target cpu.
2773
- "@config//:is_ia32" : ["src/heap/base/asm/ia32/push_registers_asm.cc" ],
2774
- "@config//:is_x64" : ["src/heap/base/asm/x64/push_registers_asm.cc" ],
2775
- "@config//:is_arm" : ["src/heap/base/asm/arm/push_registers_asm.cc" ],
2776
- "@config//:is_arm64" : ["src/heap/base/asm/arm64/push_registers_asm.cc" ],
2833
+ "@config//:is_inline_asm_ia32" : ["src/heap/base/asm/ia32/push_registers_asm.cc" ],
2834
+ "@config//:is_inline_asm_x64" : ["src/heap/base/asm/x64/push_registers_asm.cc" ],
2835
+ "@config//:is_inline_asm_arm" : ["src/heap/base/asm/arm/push_registers_asm.cc" ],
2836
+ "@config//:is_inline_asm_arm64" : ["src/heap/base/asm/arm64/push_registers_asm.cc" ],
2837
+ "@config//:is_msvc_asm_ia32" : ["src/heap/base/asm/ia32/push_registers_masm.S" ],
2838
+ "@config//:is_msvc_asm_x64" : ["src/heap/base/asm/x64/push_registers_masm.S" ],
2839
+ "@config//:is_msvc_asm_arm64" : ["src/heap/base/asm/arm64/push_registers_masm.S" ],
2777
2840
}),
2778
2841
)
2779
2842
@@ -2968,6 +3031,11 @@ filegroup(
2968
3031
],
2969
3032
)
2970
3033
3034
+ filegroup (
3035
+ name = "kythe_torque_headers" ,
3036
+ srcs = glob (["src/torque/*.h" ]),
3037
+ )
3038
+
2971
3039
# =================================================
2972
3040
# Generated files
2973
3041
# =================================================
@@ -3033,6 +3101,7 @@ genrule(
3033
3101
"src/inspector/protocol/Schema.h" ,
3034
3102
],
3035
3103
cmd = "bazel/generate-inspector-files.sh $(@D)" ,
3104
+ cmd_bat = "bazel\\ generate-inspector-files.cmd $(@D)" ,
3036
3105
local = 1 ,
3037
3106
message = "Generating inspector files" ,
3038
3107
)
@@ -3071,6 +3140,7 @@ genrule(
3071
3140
srcs = [],
3072
3141
outs = ["builtins-generated/bytecodes-builtins-list.h" ],
3073
3142
cmd = "$(location :bytecode_builtins_list_generator) $@" ,
3143
+ cmd_bat = "$(location :bytecode_builtins_list_generator) $@" ,
3074
3144
tools = [":bytecode_builtins_list_generator" ],
3075
3145
)
3076
3146
@@ -3079,6 +3149,7 @@ genrule(
3079
3149
srcs = [],
3080
3150
outs = ["src/regexp/special-case.cc" ],
3081
3151
cmd = "$(location :regexp_special_case_generator) $@" ,
3152
+ cmd_bat = "$(location :regexp_special_case_generator) $@" ,
3082
3153
tools = [":regexp_special_case_generator" ],
3083
3154
)
3084
3155
@@ -3137,17 +3208,18 @@ cc_library(
3137
3208
],
3138
3209
include_prefix = "third_party/v8" ,
3139
3210
includes = ["." ],
3140
- visibility = ["//visibility:public" ],
3141
3211
)
3142
3212
3143
3213
cc_library (
3144
- name = "torque_base " ,
3214
+ name = "kythe_torque_base " ,
3145
3215
srcs = [
3146
3216
":torque_base_files" ,
3147
3217
],
3148
- copts = ["-fexceptions" ],
3218
+ copts = select ({
3219
+ "@config//:is_posix" : [ "-fexceptions" ],
3220
+ "//conditions:default" : [],
3221
+ }),
3149
3222
features = ["-use_header_modules" ],
3150
- visibility = ["//visibility:public" ],
3151
3223
deps = [
3152
3224
":torque_base_headers" ,
3153
3225
":v8_libbase" ,
@@ -3250,7 +3322,10 @@ v8_binary(
3250
3322
"src/torque/torque.cc" ,
3251
3323
":torque_base_files" ,
3252
3324
],
3253
- copts = ["-fexceptions" ],
3325
+ copts = select ({
3326
+ "@config//:is_posix" : [ "-fexceptions" ],
3327
+ "//conditions:default" : [],
3328
+ }),
3254
3329
features = ["-use_header_modules" ],
3255
3330
linkopts = select ({
3256
3331
"@config//:is_android" : ["-llog" ],
@@ -3267,7 +3342,7 @@ v8_binary(
3267
3342
"@config//:is_android" : ["-llog" ],
3268
3343
"//conditions:default" : [],
3269
3344
}),
3270
- noicu_deps = [":noicu/v8_libshared " ],
3345
+ noicu_deps = [":v8_libshared_noicu " ],
3271
3346
)
3272
3347
3273
3348
v8_binary (
@@ -3283,6 +3358,11 @@ v8_binary_non_pointer_compression(
3283
3358
binary = "torque" ,
3284
3359
)
3285
3360
3361
+ alias (
3362
+ name = "v8ci" ,
3363
+ actual = "icu/v8" ,
3364
+ )
3365
+
3286
3366
# =================================================
3287
3367
# Tests
3288
3368
# =================================================
0 commit comments