diff options
Diffstat (limited to 'deps/v8/src/objects/allocation-site.h')
-rw-r--r-- | deps/v8/src/objects/allocation-site.h | 45 |
1 files changed, 20 insertions, 25 deletions
diff --git a/deps/v8/src/objects/allocation-site.h b/deps/v8/src/objects/allocation-site.h index b221bd02dd..9289a83f70 100644 --- a/deps/v8/src/objects/allocation-site.h +++ b/deps/v8/src/objects/allocation-site.h @@ -5,7 +5,7 @@ #ifndef V8_OBJECTS_ALLOCATION_SITE_H_ #define V8_OBJECTS_ALLOCATION_SITE_H_ -#include "src/objects.h" +#include "src/objects/objects.h" #include "src/objects/struct.h" // Has to be the last include (doesn't have include guards): @@ -134,25 +134,25 @@ class AllocationSite : public Struct { static bool ShouldTrack(ElementsKind from, ElementsKind to); static inline bool CanTrack(InstanceType type); -// Layout description. -// AllocationSite has to start with TransitionInfoOrboilerPlateOffset -// and end with WeakNext field. -#define ALLOCATION_SITE_FIELDS(V) \ - V(kStartOffset, 0) \ - V(kTransitionInfoOrBoilerplateOffset, kTaggedSize) \ - V(kNestedSiteOffset, kTaggedSize) \ - V(kDependentCodeOffset, kTaggedSize) \ - V(kCommonPointerFieldEndOffset, 0) \ - V(kPretenureDataOffset, kInt32Size) \ - V(kPretenureCreateCountOffset, kInt32Size) \ - /* Size of AllocationSite without WeakNext field */ \ - V(kSizeWithoutWeakNext, 0) \ - V(kWeakNextOffset, kTaggedSize) \ - /* Size of AllocationSite with WeakNext field */ \ - V(kSizeWithWeakNext, 0) + // Layout description. + // AllocationSite has to start with TransitionInfoOrboilerPlateOffset + // and end with WeakNext field. + #define ALLOCATION_SITE_FIELDS(V) \ + V(kStartOffset, 0) \ + V(kTransitionInfoOrBoilerplateOffset, kTaggedSize) \ + V(kNestedSiteOffset, kTaggedSize) \ + V(kDependentCodeOffset, kTaggedSize) \ + V(kCommonPointerFieldEndOffset, 0) \ + V(kPretenureDataOffset, kInt32Size) \ + V(kPretenureCreateCountOffset, kInt32Size) \ + /* Size of AllocationSite without WeakNext field */ \ + V(kSizeWithoutWeakNext, 0) \ + V(kWeakNextOffset, kTaggedSize) \ + /* Size of AllocationSite with WeakNext field */ \ + V(kSizeWithWeakNext, 0) DEFINE_FIELD_OFFSET_CONSTANTS(HeapObject::kHeaderSize, ALLOCATION_SITE_FIELDS) -#undef ALLOCATION_SITE_FIELDS + #undef ALLOCATION_SITE_FIELDS class BodyDescriptor; @@ -164,14 +164,9 @@ class AllocationSite : public Struct { class AllocationMemento : public Struct { public: -// Layout description. -#define ALLOCATION_MEMENTO_FIELDS(V) \ - V(kAllocationSiteOffset, kTaggedSize) \ - V(kSize, 0) - + // Layout description. DEFINE_FIELD_OFFSET_CONSTANTS(HeapObject::kHeaderSize, - ALLOCATION_MEMENTO_FIELDS) -#undef ALLOCATION_MEMENTO_FIELDS + TORQUE_GENERATED_ALLOCATION_MEMENTO_FIELDS) DECL_ACCESSORS(allocation_site, Object) |