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

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 7 years, 11 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/deoptimizer.cc ('k') | src/spaces.cc » ('j') | src/spaces.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.h
===================================================================
--- src/spaces.h (revision 13384)
+++ src/spaces.h (working copy)
@@ -653,6 +653,8 @@
static inline void UpdateHighWaterMark(Address mark);
+ bool RecommitBody(size_t body_size, Executability executable);
+
protected:
MemoryChunk* next_chunk_;
MemoryChunk* prev_chunk_;
@@ -888,7 +890,9 @@
// 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,
+ size_t initial_commit_size);
+ bool RecommitRawMemory(Address start, size_t length);
void FreeRawMemory(Address buf, size_t length);
private:
@@ -1037,6 +1041,7 @@
#endif
MemoryChunk* AllocateChunk(intptr_t body_size,
+ intptr_t commit_size,
Executability executable,
Space* space);
@@ -1045,6 +1050,7 @@
VirtualMemory* controller);
Address AllocateAlignedMemory(size_t requested,
size_t alignment,
+ size_t initial_commit_size,
Executability executable,
VirtualMemory* controller);
« no previous file with comments | « src/deoptimizer.cc ('k') | src/spaces.cc » ('j') | src/spaces.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698