Skip to content

Commit

Permalink
Add more flags to the V8Profile
Browse files Browse the repository at this point in the history
Add the following flags to the V8Profile:
--stress-background-compile (stress test parsing on background)
--parallel-compile-tasks-for-lazy (spawn parallel compile tasks for all
  lazily compiled functions)
--parallel-compile-tasks-for-eager-toplevel (spawn parallel compile
  tasks for eagerly compiled, top-level functions)
  • Loading branch information
carl-smith committed Jul 2, 2024
1 parent 5df42b0 commit 046f284
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/FuzzilliCli/Profiles/V8Profile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,9 @@ let v8Profile = Profile(
if probability(0.5) { args.append("--lazy-new-space-shrinking") }
if probability(0.5) { args.append("--const-tracking-let") }
if probability(0.5) { args.append("--stress-wasm-memory-moving") }
if probability(0.5) { args.append("--stress-background-compile") }
if probability(0.5) { args.append("--parallel-compile-tasks-for-lazy") }
if probability(0.5) { args.append("--parallel-compile-tasks-for-eager-toplevel") }

args.append(probability(0.5) ? "--always-sparkplug" : "--no-always-sparkplug")
args.append(probability(0.5) ? "--always-osr" : "--no-always-osr")
Expand Down

0 comments on commit 046f284

Please sign in to comment.