Chromium Code Reviews| Index: src/objects-inl.h |
| diff --git a/src/objects-inl.h b/src/objects-inl.h |
| index f25112939cada014a807e9c7c35d2d61d8230a75..ae96c24c7283c61d76aee2d0b2256deac933c5b5 100644 |
| --- a/src/objects-inl.h |
| +++ b/src/objects-inl.h |
| @@ -1335,7 +1335,8 @@ AllocationSiteMode AllocationSite::GetMode(ElementsKind from, |
| ElementsKind to) { |
| if (FLAG_track_allocation_sites && |
| IsFastSmiElementsKind(from) && |
| - (IsFastObjectElementsKind(to) || IsFastDoubleElementsKind(to))) { |
| + IsFastElementsKind(to) && |
| + from != to) { |
|
Toon Verwaest
2013/07/11 09:35:08
Use IsMoreGeneralElementsKind to ensure we never t
mvstanton
2013/07/11 13:01:33
Done.
|
| return TRACK_ALLOCATION_SITE; |
| } |