Commit a61fec35 authored by Ulan Degenbaev's avatar Ulan Degenbaev Committed by Commit Bot

Do not clear of inline caches in SharedFunctionInfo::ResetForNewContext.

This is a step in making shared function info visitor side effect free.

Change-Id: I5e7a713d2d782590c4988abc69b2068dc85b9bae
Reviewed-on: https://chromium-review.googlesource.com/586927Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46926}
parent e567e5ca
...@@ -13834,7 +13834,6 @@ void Map::StartInobjectSlackTracking() { ...@@ -13834,7 +13834,6 @@ void Map::StartInobjectSlackTracking() {
void SharedFunctionInfo::ResetForNewContext(int new_ic_age) { void SharedFunctionInfo::ResetForNewContext(int new_ic_age) {
code()->ClearInlineCaches();
set_ic_age(new_ic_age); set_ic_age(new_ic_age);
if (optimization_disabled() && deopt_count() >= FLAG_max_deopt_count) { if (optimization_disabled() && deopt_count() >= FLAG_max_deopt_count) {
// Re-enable optimizations if they were disabled due to deopt_count limit. // Re-enable optimizations if they were disabled due to deopt_count limit.
......
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