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

Unified Diff: src/heap.h

Issue 35103002: Align double array backing store during compaction and mark-sweep promotion. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index d2d69618934f3eb7799423a1ecec2941ce750bd3..dbd49bf8480a24fc2a80a095395f500dfc54917c 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -1422,6 +1422,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_; }
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698