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

Unified Diff: src/spaces.cc

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 | « src/spaces.h ('k') | src/spaces-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.cc
===================================================================
--- src/spaces.cc (revision 11322)
+++ src/spaces.cc (working copy)
@@ -528,7 +528,12 @@
area_start = base + CodePageAreaStartOffset();
area_end = area_start + body_size;
} else {
- chunk_size = MemoryChunk::kObjectStartOffset + body_size;
+ int object_start_offset = MemoryChunk::kObjectStartOffset;
+ if (owner != NULL && owner->identity() == LO_SPACE) {
+ object_start_offset = MemoryChunk::kLargeObjectStartOffset;
+ }
+
+ chunk_size = object_start_offset + body_size;
base = AllocateAlignedMemory(chunk_size,
MemoryChunk::kAlignment,
executable,
@@ -540,7 +545,7 @@
ZapBlock(base, chunk_size);
#endif
- area_start = base + Page::kObjectStartOffset;
+ area_start = base + object_start_offset;
area_end = base + chunk_size;
}
« no previous file with comments | « src/spaces.h ('k') | src/spaces-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698