Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 50128a25ecc8b3e850960997428f4332c1957150..cbd25b9205f0149a73a16ea8fb5b28281ab330a8 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1667,6 +1667,11 @@ AllocationSiteMode AllocationSite::GetMode( |
} |
inline bool AllocationSite::CanTrack(InstanceType type) { |
+ if (FLAG_turbo) { |
+ // TurboFan doesn't care at all about String pretenuring feedback, |
+ // so don't bother even trying to track that. |
+ return type == JS_ARRAY_TYPE || type == JS_OBJECT_TYPE; |
+ } |
if (FLAG_allocation_site_pretenuring) { |
return type == JS_ARRAY_TYPE || |
type == JS_OBJECT_TYPE || |