Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: src/objects-inl.h

Issue 2444353002: [stubs] Port KeyedStoreIC_Megamorphic stub to Turbofan (Closed)
Patch Set: rebased Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 // elements kind is the initial elements kind. 1663 // elements kind is the initial elements kind.
1664 AllocationSiteMode AllocationSite::GetMode( 1664 AllocationSiteMode AllocationSite::GetMode(
1665 ElementsKind boilerplate_elements_kind) { 1665 ElementsKind boilerplate_elements_kind) {
1666 if (IsFastSmiElementsKind(boilerplate_elements_kind)) { 1666 if (IsFastSmiElementsKind(boilerplate_elements_kind)) {
1667 return TRACK_ALLOCATION_SITE; 1667 return TRACK_ALLOCATION_SITE;
1668 } 1668 }
1669 1669
1670 return DONT_TRACK_ALLOCATION_SITE; 1670 return DONT_TRACK_ALLOCATION_SITE;
1671 } 1671 }
1672 1672
1673
1674 AllocationSiteMode AllocationSite::GetMode(ElementsKind from,
1675 ElementsKind to) {
1676 if (IsFastSmiElementsKind(from) &&
1677 IsMoreGeneralElementsKindTransition(from, to)) {
1678 return TRACK_ALLOCATION_SITE;
1679 }
1680
1681 return DONT_TRACK_ALLOCATION_SITE;
1682 }
1683
1684
1685 inline bool AllocationSite::CanTrack(InstanceType type) { 1673 inline bool AllocationSite::CanTrack(InstanceType type) {
1686 if (FLAG_allocation_site_pretenuring) { 1674 if (FLAG_allocation_site_pretenuring) {
1687 return type == JS_ARRAY_TYPE || 1675 return type == JS_ARRAY_TYPE ||
1688 type == JS_OBJECT_TYPE || 1676 type == JS_OBJECT_TYPE ||
1689 type < FIRST_NONSTRING_TYPE; 1677 type < FIRST_NONSTRING_TYPE;
1690 } 1678 }
1691 return type == JS_ARRAY_TYPE; 1679 return type == JS_ARRAY_TYPE;
1692 } 1680 }
1693 1681
1694 1682
(...skipping 6737 matching lines...) Expand 10 before | Expand all | Expand 10 after
8432 #undef WRITE_INT64_FIELD 8420 #undef WRITE_INT64_FIELD
8433 #undef READ_BYTE_FIELD 8421 #undef READ_BYTE_FIELD
8434 #undef WRITE_BYTE_FIELD 8422 #undef WRITE_BYTE_FIELD
8435 #undef NOBARRIER_READ_BYTE_FIELD 8423 #undef NOBARRIER_READ_BYTE_FIELD
8436 #undef NOBARRIER_WRITE_BYTE_FIELD 8424 #undef NOBARRIER_WRITE_BYTE_FIELD
8437 8425
8438 } // namespace internal 8426 } // namespace internal
8439 } // namespace v8 8427 } // namespace v8
8440 8428
8441 #endif // V8_OBJECTS_INL_H_ 8429 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/ic/keyed-store-generic.cc ('K') | « src/objects.cc ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698