Chromium Code Reviews| Index: src/objects-inl.h |
| diff --git a/src/objects-inl.h b/src/objects-inl.h |
| index 1717a5f4b59a8cba4db473b0e0634e9c9c437b93..647ca03e1fda13c5231e6ed3fc8aed87c663a52c 100644 |
| --- a/src/objects-inl.h |
| +++ b/src/objects-inl.h |
| @@ -1359,7 +1359,9 @@ AllocationSiteMode AllocationSite::GetMode(ElementsKind from, |
| inline bool AllocationSite::CanTrack(InstanceType type) { |
| if (FLAG_allocation_site_pretenuring) { |
| - return type == JS_ARRAY_TYPE || type == JS_OBJECT_TYPE; |
| + return type == JS_ARRAY_TYPE || |
| + type == JS_OBJECT_TYPE || |
| + type <= FIRST_NONSTRING_TYPE; |
|
mvstanton
2013/12/11 08:15:29
Shouldn't it be < instead of <=? My impression is
Benedikt Meurer
2013/12/11 12:17:46
Done.
|
| } |
| return type == JS_ARRAY_TYPE; |
| } |