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

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, 1 month 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') | src/mark-compact.cc » ('J')
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 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_; }
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698