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

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
« no previous file with comments | « no previous file | 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 13290)
+++ src/spaces.h (working copy)
@@ -888,7 +888,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,
+ bool commit = true);
danno 2013/01/15 09:41:18 Please add an enum for this new flag so that it's
+ bool CommitRawMemory(Address start, size_t size);
void FreeRawMemory(Address buf, size_t length);
private:
@@ -1039,10 +1041,33 @@
MemoryChunk* AllocateChunk(intptr_t body_size,
Executability executable,
Space* space);
+ Address ReserveChunk(size_t requested,
danno 2013/01/15 09:41:18 I have a fundamental concern with the increase in
+ Executability executable,
+ VirtualMemory* controller);
+ Address ReserveChunk(size_t requested, size_t* reserved);
+ MemoryChunk* CommitChunkShared(Heap* heap,
+ Address base,
+ size_t chunk_size,
+ Address area_start,
+ Address area_end,
+ Executability executable,
+ Space* owner,
+ VirtualMemory* reservation);
+ MemoryChunk* CommitChunk(size_t body_size,
+ Executability executable,
+ VirtualMemory* reservation,
+ Space* owner);
+ MemoryChunk* CommitChunk(size_t body_size,
+ Address base,
+ size_t chunk_size,
+ Space* owner);
Address ReserveAlignedMemory(size_t requested,
size_t alignment,
+ Executability executable,
VirtualMemory* controller);
+ Address CommitAlignedMemory(VirtualMemory* controller,
+ Executability executable);
Address AllocateAlignedMemory(size_t requested,
size_t alignment,
Executability executable,
« no previous file with comments | « no previous file | src/spaces.cc » ('j') | src/spaces.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698