Index: src/heap/heap.h |
diff --git a/src/heap/heap.h b/src/heap/heap.h |
index bb901f1c68d8fecb269c2f72d7b98ff5674a2f7b..366afd0bc0f3d7251a7be4fcb8dd4686f4682ae4 100644 |
--- a/src/heap/heap.h |
+++ b/src/heap/heap.h |
@@ -698,6 +698,9 @@ class Heap { |
// The roots that have an index less than this are always in old space. |
static const int kOldSpaceRoots = 0x20; |
+ // The minimum size of a HeapObject on the heap. |
+ static const int kMinObjectSizeInWords = 2; |
+ |
STATIC_ASSERT(kUndefinedValueRootIndex == |
Internals::kUndefinedValueRootIndex); |
STATIC_ASSERT(kNullValueRootIndex == Internals::kNullValueRootIndex); |
@@ -756,6 +759,10 @@ class Heap { |
// pointer size aligned addresses. |
static inline void MoveBlock(Address dst, Address src, int byte_size); |
+ // Determines a static visitor id based on the given {map} that can then be |
+ // stored on the map to facilitate fast dispatch for {StaticVisitorBase}. |
+ static int GetStaticVisitorIdForMap(Map* map); |
+ |
// Notifies the heap that is ok to start marking or other activities that |
// should not happen during deserialization. |
void NotifyDeserializationComplete(); |
@@ -1495,8 +1502,9 @@ class Heap { |
AllocationAlignment alignment); |
// =========================================================================== |
- // ArrayBufferTracker. ======================================================= |
+ // ArrayBuffer tracking. ===================================================== |
// =========================================================================== |
+ |
void RegisterNewArrayBuffer(JSArrayBuffer* buffer); |
void UnregisterArrayBuffer(JSArrayBuffer* buffer); |