| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 66fddee60030db7fe8183758067485660cd7a61e..ea1385a978377cb2f397c6f658026b91b9384f4b 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -10806,6 +10806,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(map()->GetHeap());
|
| set_ic_age(new_ic_age);
|
| if (code()->kind() == Code::FUNCTION) {
|
| code()->set_profiler_ticks(0);
|
|
|