From a61fec358ba75427f2dc578c44b4412a1708c4f9 Mon Sep 17 00:00:00 2001 From: Ulan Degenbaev <ulan@chromium.org> Date: Wed, 26 Jul 2017 16:47:16 +0200 Subject: [PATCH] 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/586927 Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Commit-Queue: Ulan Degenbaev <ulan@chromium.org> Cr-Commit-Position: refs/heads/master@{#46926} --- src/objects.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/objects.cc b/src/objects.cc index 0c8faf10804..604c15fe027 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -13834,7 +13834,6 @@ void Map::StartInobjectSlackTracking() { void SharedFunctionInfo::ResetForNewContext(int new_ic_age) { - code()->ClearInlineCaches(); set_ic_age(new_ic_age); if (optimization_disabled() && deopt_count() >= FLAG_max_deopt_count) { // Re-enable optimizations if they were disabled due to deopt_count limit. -- 2.18.1