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

Unified Diff: src/spaces-inl.h

Issue 414045: After performing scavenge, hint OS that data in from spaces are no more neede... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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 | « src/spaces.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces-inl.h
===================================================================
--- src/spaces-inl.h (revision 3342)
+++ src/spaces-inl.h (working copy)
@@ -174,6 +174,11 @@
// -----------------------------------------------------------------------------
// MemoryAllocator
+bool MemoryAllocator::ResetBlock(Address start, size_t size,
+ Executability executable) {
+ return initial_chunk_->Reset(start, size, executable == EXECUTABLE);
+}
+
bool MemoryAllocator::IsValidChunk(int chunk_id) {
if (!IsValidChunkId(chunk_id)) return false;
@@ -322,6 +327,13 @@
// -----------------------------------------------------------------------------
+// SemiSpace
+
+bool SemiSpace::Reset() {
+ return MemoryAllocator::ResetBlock(start_, capacity_, executable());
+}
+
+// -----------------------------------------------------------------------------
// LargeObjectChunk
HeapObject* LargeObjectChunk::GetObject() {
« no previous file with comments | « src/spaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698