Commit dcdc79f2 authored by Yang Guo's avatar Yang Guo Committed by Commit Bot

Ignore --profile-deserialization for flags hash.

When using this flag to diagnose code caching, it would be awesome
to not invalidate the cache due to having this flag enabled.

R=jgruber@chromium.org

Change-Id: I7ca9869e9ea9b3a4ad7da555536aa41742ff2735
Reviewed-on: https://chromium-review.googlesource.com/c/1451817
Commit-Queue: Yang Guo <yangguo@chromium.org>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59385}
parent a9f29fec
......@@ -610,6 +610,12 @@ void ComputeFlagListHash() {
}
for (size_t i = 0; i < num_flags; ++i) {
Flag* current = &flags[i];
if (current->type() == Flag::TYPE_BOOL &&
current->bool_variable() == &FLAG_profile_deserialization) {
// We want to be able to flip --profile-deserialization without
// causing the code cache to get invalidated by this hash.
continue;
}
if (!current->IsDefault()) {
modified_args_as_string << i;
modified_args_as_string << *current;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment