@@ -64,6 +64,10 @@ declare_args() {
6464# Enable fast mksnapshot runs.
6565v8_enable_fast_mksnapshot = false
6666
67+ # Enable embedded builtins.
68+ # TODO(jgruber,v8:6666): Support ia32.
69+ v8_enable_embedded_builtins = false
70+
6771# Enable code-generation-time checking of types in the CodeStubAssembler.
6872v8_enable_verify_csa = false
6973
@@ -319,6 +323,9 @@ config("features") {
319323if (v8_check_microtasks_scopes_consistency ) {
320324defines += [ " V8_CHECK_MICROTASKS_SCOPES_CONSISTENCY" ]
321325 }
326+ if (v8_enable_embedded_builtins ) {
327+ defines += [ " V8_EMBEDDED_BUILTINS" ]
328+ }
322329}
323330
324331config (" toolchain" ) {
@@ -387,6 +394,9 @@ config("toolchain") {
387394" _MIPS_ARCH_MIPS32R6" ,
388395" FPU_MODE_FP64" ,
389396 ]
397+ if (mips_use_msa ) {
398+ defines += [ " _MIPS_MSA" ]
399+ }
390400 } else if (mips_arch_variant == " r2" ) {
391401defines += [ " _MIPS_ARCH_MIPS32R2" ]
392402if (mips_fpu_mode == " fp64" ) {
@@ -424,6 +434,9 @@ config("toolchain") {
424434 }
425435if (mips_arch_variant == " r6" ) {
426436defines += [ " _MIPS_ARCH_MIPS64R6" ]
437+ if (mips_use_msa ) {
438+ defines += [ " _MIPS_MSA" ]
439+ }
427440 } else if (mips_arch_variant == " r2" ) {
428441defines += [ " _MIPS_ARCH_MIPS64R2" ]
429442 }
@@ -514,8 +527,6 @@ config("toolchain") {
514527
515528if (is_clang ) {
516529cflags += [
517- " -Wsign-compare" ,
518-
519530# TODO(hans ): Remove once http://crbug.com/428099 is resolved.
520531" -Winconsistent-missing-override" ,
521532 ]
@@ -883,6 +894,14 @@ action("v8_dump_build_config") {
883894" v8_target_cpu=\" $v8_target_cpu \" " ,
884895" v8_use_snapshot=$v8_use_snapshot " ,
885896 ]
897+
898+ if (v8_current_cpu == " mips" || v8_current_cpu == " mipsel" ||
899+ v8_current_cpu == " mips64" || v8_current_cpu == " mips64el" ) {
900+ args += [
901+ " mips_arch_variant=\" $mips_arch_variant \" " ,
902+ " mips_use_msa=$mips_use_msa " ,
903+ ]
904+ }
886905}
887906
888907# ##############################################################################
@@ -1018,6 +1037,7 @@ v8_source_set("v8_initializers") {
10181037" src/builtins/builtins-arguments-gen.cc" ,
10191038" src/builtins/builtins-arguments-gen.h" ,
10201039" src/builtins/builtins-array-gen.cc" ,
1040+ " src/builtins/builtins-array-gen.h" ,
10211041" src/builtins/builtins-async-function-gen.cc" ,
10221042" src/builtins/builtins-async-gen.cc" ,
10231043" src/builtins/builtins-async-gen.h" ,
@@ -1060,8 +1080,11 @@ v8_source_set("v8_initializers") {
10601080" src/builtins/builtins-string-gen.h" ,
10611081" src/builtins/builtins-symbol-gen.cc" ,
10621082" src/builtins/builtins-typedarray-gen.cc" ,
1083+ " src/builtins/builtins-typedarray-gen.h" ,
10631084" src/builtins/builtins-utils-gen.h" ,
10641085" src/builtins/builtins-wasm-gen.cc" ,
1086+ " src/builtins/growable-fixed-array-gen.cc" ,
1087+ " src/builtins/growable-fixed-array-gen.h" ,
10651088" src/builtins/setup-builtins-internal.cc" ,
10661089" src/heap/setup-heap-internal.cc" ,
10671090" src/ic/accessor-assembler.cc" ,
@@ -1193,7 +1216,6 @@ v8_source_set("v8_base") {
11931216" //base/trace_event/common/trace_event_common.h" ,
11941217
11951218# ## gcmole(all) ###
1196- " include/v8-debug.h" ,
11971219" include/v8-inspector-protocol.h" ,
11981220" include/v8-inspector.h" ,
11991221" include/v8-platform.h" ,
@@ -1236,8 +1258,6 @@ v8_source_set("v8_base") {
12361258" src/assert-scope.h" ,
12371259" src/ast/ast-function-literal-id-reindexer.cc" ,
12381260" src/ast/ast-function-literal-id-reindexer.h" ,
1239- " src/ast/ast-numbering.cc" ,
1240- " src/ast/ast-numbering.h" ,
12411261" src/ast/ast-source-ranges.h" ,
12421262" src/ast/ast-traversal-visitor.h" ,
12431263" src/ast/ast-value-factory.cc" ,
@@ -1304,6 +1324,8 @@ v8_source_set("v8_base") {
13041324" src/builtins/builtins-utils.h" ,
13051325" src/builtins/builtins.cc" ,
13061326" src/builtins/builtins.h" ,
1327+ " src/builtins/constants-table-builder.cc" ,
1328+ " src/builtins/constants-table-builder.h" ,
13071329" src/cached-powers.cc" ,
13081330" src/cached-powers.h" ,
13091331" src/callable.h" ,
@@ -1396,6 +1418,7 @@ v8_source_set("v8_base") {
13961418" src/compiler/frame-states.h" ,
13971419" src/compiler/frame.cc" ,
13981420" src/compiler/frame.h" ,
1421+ " src/compiler/functional-list.h" ,
13991422" src/compiler/gap-resolver.cc" ,
14001423" src/compiler/gap-resolver.h" ,
14011424" src/compiler/graph-assembler.cc" ,
@@ -1639,6 +1662,8 @@ v8_source_set("v8_base") {
16391662" src/global-handles.cc" ,
16401663" src/global-handles.h" ,
16411664" src/globals.h" ,
1665+ " src/handler-table.cc" ,
1666+ " src/handler-table.h" ,
16421667" src/handles-inl.h" ,
16431668" src/handles.cc" ,
16441669" src/handles.h" ,
@@ -1670,6 +1695,7 @@ v8_source_set("v8_base") {
16701695" src/heap/invalidated-slots-inl.h" ,
16711696" src/heap/invalidated-slots.cc" ,
16721697" src/heap/invalidated-slots.h" ,
1698+ " src/heap/item-parallel-job.cc" ,
16731699" src/heap/item-parallel-job.h" ,
16741700" src/heap/local-allocator.h" ,
16751701" src/heap/mark-compact-inl.h" ,
@@ -1719,6 +1745,8 @@ v8_source_set("v8_base") {
17191745" src/icu_util.h" ,
17201746" src/identity-map.cc" ,
17211747" src/identity-map.h" ,
1748+ " src/instruction-stream.cc" ,
1749+ " src/instruction-stream.h" ,
17221750" src/interface-descriptors.cc" ,
17231751" src/interface-descriptors.h" ,
17241752" src/interpreter/block-coverage-builder.h" ,
@@ -1835,20 +1863,26 @@ v8_source_set("v8_base") {
18351863" src/objects/js-array.h" ,
18361864" src/objects/js-collection-inl.h" ,
18371865" src/objects/js-collection.h" ,
1866+ " src/objects/js-promise-inl.h" ,
1867+ " src/objects/js-promise.h" ,
18381868" src/objects/js-regexp-inl.h" ,
18391869" src/objects/js-regexp.h" ,
18401870" src/objects/literal-objects-inl.h" ,
18411871" src/objects/literal-objects.cc" ,
18421872" src/objects/literal-objects.h" ,
18431873" src/objects/map-inl.h" ,
18441874" src/objects/map.h" ,
1875+ " src/objects/microtask-inl.h" ,
1876+ " src/objects/microtask.h" ,
18451877" src/objects/module-inl.h" ,
18461878" src/objects/module.cc" ,
18471879" src/objects/module.h" ,
18481880" src/objects/name-inl.h" ,
18491881" src/objects/name.h" ,
18501882" src/objects/object-macros-undef.h" ,
18511883" src/objects/object-macros.h" ,
1884+ " src/objects/promise-inl.h" ,
1885+ " src/objects/promise.h" ,
18521886" src/objects/property-descriptor-object-inl.h" ,
18531887" src/objects/property-descriptor-object.h" ,
18541888" src/objects/regexp-match-info.h" ,
@@ -1865,8 +1899,6 @@ v8_source_set("v8_base") {
18651899" src/objects/template-objects.h" ,
18661900" src/ostreams.cc" ,
18671901" src/ostreams.h" ,
1868- " src/parsing/background-parsing-task.cc" ,
1869- " src/parsing/background-parsing-task.h" ,
18701902" src/parsing/duplicate-finder.h" ,
18711903" src/parsing/expression-classifier.h" ,
18721904" src/parsing/expression-scope-reparenter.cc" ,
@@ -2126,8 +2158,6 @@ v8_source_set("v8_base") {
21262158" src/wasm/signature-map.h" ,
21272159" src/wasm/streaming-decoder.cc" ,
21282160" src/wasm/streaming-decoder.h" ,
2129- " src/wasm/wasm-api.cc" ,
2130- " src/wasm/wasm-api.h" ,
21312161" src/wasm/wasm-code-manager.cc" ,
21322162" src/wasm/wasm-code-manager.h" ,
21332163" src/wasm/wasm-code-specialization.cc" ,
@@ -2570,11 +2600,15 @@ v8_component("v8_libbase") {
25702600
25712601if (is_posix ) {
25722602sources += [
2573- " src/base/platform/platform-posix-time.cc" ,
2574- " src/base/platform/platform-posix-time.h" ,
25752603" src/base/platform/platform-posix.cc" ,
25762604" src/base/platform/platform-posix.h" ,
25772605 ]
2606+ if (current_os != " aix" ) {
2607+ sources += [
2608+ " src/base/platform/platform-posix-time.cc" ,
2609+ " src/base/platform/platform-posix-time.h" ,
2610+ ]
2611+ }
25782612 }
25792613
25802614if (is_linux ) {
@@ -2824,7 +2858,7 @@ group("v8_clusterfuzz") {
28242858
28252859if (v8_test_isolation_mode != " noop" ) {
28262860deps += [
2827- " tools:run-deopt-fuzzer_run " ,
2861+ " test:d8_default_run " ,
28282862" tools:run-num-fuzzer_run" ,
28292863 ]
28302864 }
@@ -2842,9 +2876,9 @@ group("v8_fuzzers") {
28422876" :v8_simple_json_fuzzer" ,
28432877" :v8_simple_multi_return_fuzzer" ,
28442878" :v8_simple_parser_fuzzer" ,
2879+ " :v8_simple_regexp_builtins_fuzzer" ,
28452880" :v8_simple_regexp_fuzzer" ,
28462881" :v8_simple_wasm_async_fuzzer" ,
2847- " :v8_simple_wasm_call_fuzzer" ,
28482882" :v8_simple_wasm_code_fuzzer" ,
28492883" :v8_simple_wasm_compile_fuzzer" ,
28502884" :v8_simple_wasm_data_section_fuzzer" ,
@@ -2952,7 +2986,7 @@ v8_executable("d8") {
29522986 }
29532987
29542988if (v8_correctness_fuzzer ) {
2955- deps += [ " tools/foozzie :v8_correctness_fuzzer_resources" ]
2989+ deps += [ " tools/clusterfuzz :v8_correctness_fuzzer_resources" ]
29562990 }
29572991
29582992defines = []
@@ -3127,6 +3161,25 @@ v8_source_set("parser_fuzzer") {
31273161v8_fuzzer (" parser_fuzzer" ) {
31283162}
31293163
3164+ v8_source_set (" regexp_builtins_fuzzer" ) {
3165+ sources = [
3166+ " test/fuzzer/regexp-builtins.cc" ,
3167+ " test/fuzzer/regexp_builtins/mjsunit.js.h" ,
3168+ ]
3169+
3170+ deps = [
3171+ " :fuzzer_support" ,
3172+ ]
3173+
3174+ configs = [
3175+ " :external_config" ,
3176+ " :internal_config_base" ,
3177+ ]
3178+ }
3179+
3180+ v8_fuzzer (" regexp_builtins_fuzzer" ) {
3181+ }
3182+
31303183v8_source_set (" regexp_fuzzer" ) {
31313184sources = [
31323185" test/fuzzer/regexp.cc" ,
@@ -3218,27 +3271,6 @@ v8_source_set("wasm_code_fuzzer") {
32183271v8_fuzzer (" wasm_code_fuzzer" ) {
32193272}
32203273
3221- v8_source_set (" wasm_call_fuzzer" ) {
3222- sources = [
3223- " test/common/wasm/test-signatures.h" ,
3224- " test/fuzzer/wasm-call.cc" ,
3225- ]
3226-
3227- deps = [
3228- " :fuzzer_support" ,
3229- " :lib_wasm_fuzzer_common" ,
3230- " :wasm_module_runner" ,
3231- ]
3232-
3233- configs = [
3234- " :external_config" ,
3235- " :internal_config_base" ,
3236- ]
3237- }
3238-
3239- v8_fuzzer (" wasm_call_fuzzer" ) {
3240- }
3241-
32423274v8_source_set (" lib_wasm_fuzzer_common" ) {
32433275sources = [
32443276" test/fuzzer/wasm-fuzzer-common.cc" ,
0 commit comments