diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-08-01 08:38:30 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-08-01 12:53:56 +0200 |
commit | 2dcc3665abf57c3607cebffdeeca062f5894885d (patch) | |
tree | 4f560748132edcfb4c22d6f967a7e80d23d7ea2c /deps/v8/src/objects/allocation-site.h | |
parent | 1ee47d550c6de132f06110aa13eceb7551d643b3 (diff) | |
download | android-node-v8-2dcc3665abf57c3607cebffdeeca062f5894885d.tar.gz android-node-v8-2dcc3665abf57c3607cebffdeeca062f5894885d.tar.bz2 android-node-v8-2dcc3665abf57c3607cebffdeeca062f5894885d.zip |
deps: update V8 to 7.6.303.28
PR-URL: https://github.com/nodejs/node/pull/28016
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
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) |