Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index f96fd83849cff3090814484757f26b352932bc87..ec4654b9d3cecd0a52a6359020c9509e743bae70 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -12788,6 +12788,14 @@ void JSObject::TransitionElementsKind(Handle<JSObject> object, |
const double AllocationSite::kPretenureRatio = 0.60; |
+void AllocationSite::ResetPretenureDecision() { |
+ dependent_code()->DeoptimizeDependentCodeGroup( |
+ GetIsolate(), |
+ DependentCode::kAllocationSiteTenuringChangedGroup); |
+ set_pretenure_decision(Smi::FromInt(kUndecided)); |
+} |
+ |
+ |
bool AllocationSite::IsNestedSite() { |
ASSERT(FLAG_trace_track_allocation_sites); |
Object* current = GetHeap()->allocation_sites_list(); |