@@ -228,11 +228,6 @@ declare_args() {
228228 (is_linux || is_chromeos || is_mac )) ||
229229 (v8_current_cpu == " ppc64" && (is_linux || is_chromeos ))
230230
231- # Enable mitigations for executing untrusted code.
232- # Disabled by default on ia32 due to conflicting requirements with embedded
233- # builtins.
234- v8_untrusted_code_mitigations = false
235-
236231 # Enable minor mark compact.
237232 v8_enable_minor_mc = true
238233
@@ -469,9 +464,6 @@ if (build_with_chromium && v8_current_cpu == "arm64" &&
469464assert (! v8_disable_write_barriers || v8_enable_single_generation ,
470465 " Disabling write barriers works only with single generation" )
471466
472- assert (v8_current_cpu != " x86" || ! v8_untrusted_code_mitigations ,
473- " Untrusted code mitigations are unsupported on ia32" )
474-
475467assert (v8_current_cpu == " arm64" || ! v8_control_flow_integrity ,
476468 " Control-flow integrity is only supported on arm64" )
477469
@@ -488,9 +480,6 @@ assert(!v8_enable_map_packing || !v8_enable_pointer_compression,
488480assert (! v8_enable_map_packing || v8_current_cpu == " x64" ,
489481 " Map packing is only supported on x64" )
490482
491- assert (! v8_use_multi_snapshots || ! v8_control_flow_integrity ,
492- " Control-flow integrity does not support multisnapshots" )
493-
494483assert (! v8_enable_heap_sandbox || v8_enable_pointer_compression ,
495484 " V8 Heap Sandbox requires pointer compression" )
496485
@@ -891,9 +880,6 @@ config("features") {
891880 if (v8_enable_lazy_source_positions ) {
892881 defines += [ " V8_ENABLE_LAZY_SOURCE_POSITIONS" ]
893882 }
894- if (v8_use_multi_snapshots ) {
895- defines += [ " V8_MULTI_SNAPSHOTS" ]
896- }
897883 if (v8_use_siphash ) {
898884 defines += [ " V8_USE_SIPHASH" ]
899885 }
@@ -1189,10 +1175,6 @@ config("toolchain") {
11891175 defines += [ " V8_RUNTIME_CALL_STATS" ]
11901176 }
11911177
1192- if (! v8_untrusted_code_mitigations ) {
1193- defines += [ " DISABLE_UNTRUSTED_CODE_MITIGATIONS" ]
1194- }
1195-
11961178 if (v8_no_inline ) {
11971179 if (is_win ) {
11981180 cflags += [ " /Ob0" ]
@@ -1328,8 +1310,6 @@ template("asm_to_inline_asm") {
13281310if (is_android && enable_java_templates ) {
13291311 android_assets (" v8_external_startup_data_assets" ) {
13301312 if (v8_use_external_startup_data ) {
1331- # We don't support side-by-side snapshots on Android within Chromium.
1332- assert (! v8_use_multi_snapshots )
13331313 deps = [ " //v8" ]
13341314 renaming_sources = [ " $root_out_dir /snapshot_blob.bin" ]
13351315 if (current_cpu == " arm" || current_cpu == " x86" ||
@@ -2006,17 +1986,6 @@ if (emit_builtins_as_inline_asm) {
20061986 args = []
20071987 }
20081988}
2009- if (v8_use_multi_snapshots ) {
2010- run_mksnapshot (" trusted" ) {
2011- args = [ " --no-untrusted-code-mitigations" ]
2012- embedded_variant = " Trusted"
2013- }
2014- if (emit_builtins_as_inline_asm ) {
2015- asm_to_inline_asm (" trusted" ) {
2016- args = []
2017- }
2018- }
2019- }
20201989
20211990action (" v8_dump_build_config" ) {
20221991 script = " tools/testrunner/utils/dump_build_config.py"
@@ -2105,16 +2074,6 @@ v8_source_set("v8_snapshot") {
21052074 deps += [ " :v8_base" ]
21062075
21072076 sources += [ " src/snapshot/snapshot-external.cc" ]
2108-
2109- if (v8_use_multi_snapshots ) {
2110- public_deps += [ " :run_mksnapshot_trusted" ]
2111- if (emit_builtins_as_inline_asm ) {
2112- deps += [ " :asm_to_inline_asm_trusted" ]
2113- sources += [ " $target_gen_dir /embedded_trusted.cc" ]
2114- } else {
2115- sources += [ " $target_gen_dir /embedded_trusted.S" ]
2116- }
2117- }
21182077 } else {
21192078 # Also top-level visibility targets can depend on this.
21202079 visibility += [ " //:gn_visibility" ]
0 commit comments