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

Unified Diff: runtime/vm/heap.h

Issue 259483002: Zero-sized new-space for VM isolate. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « runtime/vm/dart.cc ('k') | runtime/vm/heap.cc » ('j') | runtime/vm/heap.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.h
===================================================================
--- runtime/vm/heap.h (revision 35335)
+++ runtime/vm/heap.h (working copy)
@@ -163,7 +163,9 @@
static intptr_t new_space_offset() { return OFFSET_OF(Heap, new_space_); }
// Initialize the heap and register it with the isolate.
- static void Init(Isolate* isolate);
+ static void Init(Isolate* isolate,
+ intptr_t max_new_gen_words,
+ intptr_t max_old_gen_words);
// Verify that all pointers in the heap point to the heap.
bool Verify() const;
@@ -179,8 +181,6 @@
int64_t GCTimeInMicros(Space space) const;
intptr_t Collections(Space space) const;
- // Returns the [lowest, highest) addresses in the heap.
- void StartEndAddress(uword* start, uword* end) const;
ObjectSet* CreateAllocatedObjectSet() const;
@@ -282,7 +282,7 @@
static const intptr_t kNewAllocatableSize = 256 * KB;
- Heap();
+ Heap(intptr_t max_new_gen_words, intptr_t max_old_gen_words);
uword AllocateNew(intptr_t size);
uword AllocateOld(intptr_t size, HeapPage::PageType type);
@@ -293,6 +293,11 @@
void PrintStats();
void UpdateClassHeapStatsBeforeGC(Heap::Space space);
+ // If this heap is non-empty, updates start and end to the smallest range that
+ // contains both the original [start, end) and the [lowest, highest) addresses
+ // of this heap.
+ void GetMergedAddressRange(uword* start, uword* end) const;
+
// The different spaces used for allocation.
Scavenger* new_space_;
PageSpace* old_space_;
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/heap.cc » ('j') | runtime/vm/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698