Skip to content
forked from v8/v8

Commit

Permalink
[sandbox] Enable the sandbox by default in gm.py
Browse files Browse the repository at this point in the history
Since enabling the sandbox is now required for example for mkgrokdump,
add it to the default gn args. Also treat non-sandbox builds as
"non-shipping" in mkgrokdump.cc

Bug: v8:13281
Change-Id: I08042aa53057e25c556e166c059373e2fdb9d2c1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3899317
Commit-Queue: Samuel Groß <[email protected]>
Reviewed-by: Jakob Kummerow <[email protected]>
Cr-Commit-Position: refs/heads/main@{#83231}
  • Loading branch information
Samuel Groß authored and V8 LUCI CQ committed Sep 15, 2022
1 parent 80fb281 commit 2cc1f9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/mkgrokdump/mkgrokdump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static const char* kHeader =
"# yapf: disable\n\n";

// Debug builds emit debug code, affecting code object sizes.
#ifndef DEBUG
#if !defined(DEBUG) && defined(V8_ENABLE_SANDBOX)
static const char* kBuild = "shipping";
#else
static const char* kBuild = "non-shipping";
Expand Down
3 changes: 3 additions & 0 deletions tools/dev/gm.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def DetectGoma():
v8_enable_object_print = true
v8_enable_verify_heap = true
dcheck_always_on = false
v8_enable_sandbox = true
""".replace("{GOMA}", USE_GOMA)

DEBUG_ARGS_TEMPLATE = """\
Expand All @@ -181,6 +182,7 @@ def DetectGoma():
v8_enable_fast_mksnapshot = true
v8_enable_slow_dchecks = true
v8_optimized_debug = false
v8_enable_sandbox = true
""".replace("{GOMA}", USE_GOMA)

OPTDEBUG_ARGS_TEMPLATE = """\
Expand All @@ -193,6 +195,7 @@ def DetectGoma():
v8_enable_fast_mksnapshot = true
v8_enable_verify_heap = true
v8_optimized_debug = true
v8_enable_sandbox = true
""".replace("{GOMA}", USE_GOMA)

ARGS_TEMPLATES = {
Expand Down

0 comments on commit 2cc1f9a

Please sign in to comment.