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

Unified Diff: vm/pages.h

Issue 10414069: - Add more information to --verbose-gc. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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 | « vm/heap.cc ('k') | vm/scavenger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/pages.h
===================================================================
--- vm/pages.h (revision 7887)
+++ vm/pages.h (working copy)
@@ -88,6 +88,8 @@
uword TryAllocate(intptr_t size);
intptr_t in_use() const { return in_use_; }
+ intptr_t capacity() const { return capacity_; }
+
bool Contains(uword addr) const;
bool IsValidAddress(uword addr) const {
return Contains(addr);
@@ -118,6 +120,7 @@
void FreePages(HeapPage* pages);
static intptr_t LargePageSizeFor(intptr_t size);
+
bool CanIncreaseCapacity(intptr_t increase) {
ASSERT(capacity_ <= max_capacity_);
return increase <= (max_capacity_ - capacity_);
« no previous file with comments | « vm/heap.cc ('k') | vm/scavenger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698