Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 9be16fb47bc869d54341ee49c2e2d71e573d1e67..cf2b2d33e7d8510eb970418704c03474fc49f832 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -5505,7 +5505,7 @@ void JSObject::RequireSlowElements(SeededNumberDictionary* dictionary) { |
dictionary->set_requires_slow_elements(); |
// TODO(verwaest): Remove this hack. |
if (map()->is_prototype_map()) { |
- GetHeap()->ClearAllKeyedStoreICs(); |
+ TypeFeedbackVector::ClearAllKeyedStoreICs(GetIsolate()); |
} |
} |
@@ -14347,7 +14347,7 @@ Maybe<bool> JSObject::SetPrototypeUnobserved(Handle<JSObject> object, |
// If the prototype chain didn't previously have element callbacks, then |
// KeyedStoreICs need to be cleared to ensure any that involve this |
// map go generic. |
- object->GetHeap()->ClearAllKeyedStoreICs(); |
+ TypeFeedbackVector::ClearAllKeyedStoreICs(isolate); |
} |
heap->ClearInstanceofCache(); |
@@ -16799,7 +16799,7 @@ void SeededNumberDictionary::UpdateMaxNumberKey(uint32_t key, |
if (key > kRequiresSlowElementsLimit) { |
if (used_as_prototype) { |
// TODO(verwaest): Remove this hack. |
- GetHeap()->ClearAllKeyedStoreICs(); |
+ TypeFeedbackVector::ClearAllKeyedStoreICs(GetIsolate()); |
} |
set_requires_slow_elements(); |
return; |