Skip to content

Commit

Permalink
deps: V8: cherry-pick b33bf2dfd261
Browse files Browse the repository at this point in the history
Original commit message:

    Ignore --predictable when computing flag list hashes

    This allows reproducible code cache generation.

    Refs: nodejs#48749

    Change-Id: Ib4693de60ddff1fe41d95c10980f763463db3f95
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4681766
    Reviewed-by: Leszek Swirski <leszeks@chromium.org>
    Commit-Queue: Joyee Cheung <joyee@igalia.com>
    Cr-Commit-Position: refs/heads/main@{#88943}

Refs: v8/v8@b33bf2d
  • Loading branch information
joyeecheung committed Jul 20, 2023
1 parent c301404 commit 7706dc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deps/v8/src/flags/flags.cc
Expand Up @@ -539,8 +539,10 @@ uint32_t ComputeFlagListHash() {
// We want to be able to flip --profile-deserialization without
// causing the code cache to get invalidated by this hash.
if (flag.PointsTo(&v8_flags.profile_deserialization)) continue;
// Skip v8_flags.random_seed to allow predictable code caching.
// Skip v8_flags.random_seed and v8_flags.predictable to allow predictable
// code caching.
if (flag.PointsTo(&v8_flags.random_seed)) continue;
if (flag.PointsTo(&v8_flags.predictable)) continue;
modified_args_as_string << flag;
}
std::string args(modified_args_as_string.str());
Expand Down

0 comments on commit 7706dc5

Please sign in to comment.