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

Unified Diff: src/spaces.h

Issue 11566011: Use MemoryChunk-based allocation for deoptimization entry code (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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
Index: src/spaces.h
===================================================================
--- src/spaces.h (revision 13214)
+++ src/spaces.h (working copy)
@@ -888,7 +888,11 @@
// the code range. On platforms with no separate code range, should
// not be called.
MUST_USE_RESULT Address AllocateRawMemory(const size_t requested,
- size_t* allocated);
+ size_t* allocated,
+ bool committed = true);
+ bool CommitRawMemory(Address start, size_t size);
+ Address ReserveChunk(size_t body_size, size_t *reserved);
+
void FreeRawMemory(Address buf, size_t length);
private:
@@ -1039,6 +1043,9 @@
MemoryChunk* AllocateChunk(intptr_t body_size,
Executability executable,
Space* space);
+ MemoryChunk* CommitChunkInCodeRange(Address start,
+ size_t body_size,
+ size_t reserved_size);
Address ReserveAlignedMemory(size_t requested,
size_t alignment,

Powered by Google App Engine
This is Rietveld 408576698