| Index: src/heap.h
|
| diff --git a/src/heap.h b/src/heap.h
|
| index 46a894d89fcc087cf7f59ead4454cdba88aa2b80..a548c9e8243e84db6f7fe04915989a85c824971e 100644
|
| --- a/src/heap.h
|
| +++ b/src/heap.h
|
| @@ -1446,6 +1446,16 @@ class Heap {
|
| // Write barrier support for address[start : start + len[ = o.
|
| INLINE(void RecordWrites(Address address, int start, int len));
|
|
|
| + // Return true if object on heap have to be double aligned.
|
| + INLINE(static bool MustBeDoubleAligned(HeapObject* object));
|
| +
|
| + // Ensure object is 8-byte aligned after raw allocation.
|
| + // Return aligned address. One word in allocated space is prefilled to
|
| + // provide padding, so value of the size argument is amount of allocated
|
| + // memory for the object that must be one word larger than actual size of
|
| + // the object.
|
| + INLINE(HeapObject* EnsureDoubleAligned(HeapObject* object, int size));
|
| +
|
| enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT };
|
| inline HeapState gc_state() { return gc_state_; }
|
|
|
|
|