Commit 2780b9a4 authored by Toon Verwaest's avatar Toon Verwaest Committed by Commit Bot

[runtime] Keep hash in eval cache after update to avoid unnecessary misses

Change-Id: I0618d37226c2a6b55d67d51ad24f95c0f582bb91
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1564197
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60784}
parent 01ae4743
......@@ -7444,7 +7444,8 @@ Handle<CompilationCacheTable> CompilationCacheTable::PutEval(
// and entry remains correct.
AddToFeedbackCellsMap(cache, EntryToIndex(entry) + 2, native_context,
feedback_cell);
return cache;
// Add hash again even on cache hit to avoid unnecessary cache delay in
// case of hash collisions.
}
}
......
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