| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 27335933cad546a24b50080c045baa38f4388a32..82c924f843c6de3875325a6d19812ca592b3a731 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -10737,6 +10737,9 @@ void SharedFunctionInfo::AttachInitialMap(Map* map) {
|
|
|
| void SharedFunctionInfo::ResetForNewContext(int new_ic_age) {
|
| code()->ClearInlineCaches();
|
| + // If we clear ICs, we need to clear the type feedback vector too, since
|
| + // CallICs are synced with a feedback vector slot.
|
| + ClearTypeFeedbackInfo();
|
| set_ic_age(new_ic_age);
|
| if (code()->kind() == Code::FUNCTION) {
|
| code()->set_profiler_ticks(0);
|
|
|