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

Unified Diff: src/spaces.h

Issue 10096005: A very small marking bitmap (2 bits) is sufficient for large object page since just one object in i… Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 8 months 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/spaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.h
===================================================================
--- src/spaces.h (revision 11322)
+++ src/spaces.h (working copy)
@@ -183,9 +183,7 @@
return (length + kBitsPerCell - 1) >> kBitsPerCellLog2;
}
- int CellsCount() {
- return CellsForLength(kLength);
- }
+ INLINE(int CellsCount());
static int SizeFor(int cells_count) {
return sizeof(MarkBit::CellType) * cells_count;
@@ -501,6 +499,12 @@
static const int kObjectStartOffset = kBodyOffset - 1 +
(kObjectStartAlignment - (kBodyOffset - 1) % kObjectStartAlignment);
+ static const int kLargeObjectBodyOffset =
+ CODE_POINTER_ALIGN(MAP_POINTER_ALIGN(kHeaderSize + kPointerSize));
+ static const int kLargeObjectStartOffset =
+ kObjectStartAlignment + (kLargeObjectBodyOffset - 1) -
+ (kLargeObjectBodyOffset - 1) % kObjectStartAlignment;
+
size_t size() const { return size_; }
void set_size(size_t size) {
« no previous file with comments | « no previous file | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698