Skip to content

Commit 5ef3e89

Browse files
schuayCommit Bot
authored andcommitted
[jitless] Disable --interpreted-frames-native-stack
... when jitless is enabled to fix fuzzers that pass random flag combinations. Bug: chromium:1096168,v8:7777 Change-Id: Ia78c4d9e1256e44c10df2200ecc32067a617d777 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2257220 Commit-Queue: Jakob Gruber <jgruber@chromium.org> Commit-Queue: Tobias Tebbi <tebbi@chromium.org> Reviewed-by: Tobias Tebbi <tebbi@chromium.org> Auto-Submit: Jakob Gruber <jgruber@chromium.org> Cr-Commit-Position: refs/heads/master@{#68458}
1 parent 03bb338 commit 5ef3e89

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/flags/flag-definitions.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,11 @@ DEFINE_IMPLICATION(jitless, regexp_interpret_all)
442442
DEFINE_NEG_IMPLICATION(jitless, validate_asm)
443443
// --jitless also implies --no-expose-wasm, see InitializeOncePerProcessImpl.
444444

445+
#ifndef V8_TARGET_ARCH_ARM
446+
// Unsupported on arm. See https://crbug.com/v8/8713.
447+
DEFINE_NEG_IMPLICATION(jitless, interpreted_frames_native_stack)
448+
#endif
449+
445450
// Flags for inline caching and feedback vectors.
446451
DEFINE_BOOL(use_ic, true, "use inline caching")
447452
DEFINE_INT(budget_for_feedback_vector_allocation, 1 * KB,

src/init/v8.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ void V8::InitializeOncePerProcessImpl() {
9898
// The --jitless and --interpreted-frames-native-stack flags are incompatible
9999
// since the latter requires code generation while the former prohibits code
100100
// generation.
101-
CHECK_WITH_MSG(!FLAG_interpreted_frames_native_stack || !FLAG_jitless,
102-
"The --jitless and --interpreted-frames-native-stack flags "
103-
"are incompatible.");
101+
CHECK(!FLAG_interpreted_frames_native_stack || !FLAG_jitless);
104102

105103
base::OS::Initialize(FLAG_hard_abort, FLAG_gc_fake_mmap);
106104

0 commit comments

Comments
 (0)