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

Unified Diff: runtime/vm/freelist.h

Issue 10810048: Revert "Revert "Favor free list allocation to bump pointer allocation."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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/bit_set.h ('k') | runtime/vm/freelist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/freelist.h
diff --git a/runtime/vm/freelist.h b/runtime/vm/freelist.h
index 7edc4fea48d724973b16a9cb777623758965f687..4f2a0df0628c76e45f4bc9199c2c98d208f08d19 100644
--- a/runtime/vm/freelist.h
+++ b/runtime/vm/freelist.h
@@ -7,6 +7,7 @@
#include "platform/assert.h"
#include "vm/allocation.h"
+#include "vm/bit_set.h"
#include "vm/raw_object.h"
namespace dart {
@@ -78,6 +79,10 @@ class FreeList {
void Reset();
+ intptr_t Length(int index) const;
+
+ void Print() const;
+
private:
static const int kNumLists = 128;
@@ -88,6 +93,8 @@ class FreeList {
void SplitElementAfterAndEnqueue(FreeListElement* element, intptr_t size);
+ BitSet<kNumLists + 1> free_map_;
+
FreeListElement* free_lists_[kNumLists + 1];
DISALLOW_COPY_AND_ASSIGN(FreeList);
« no previous file with comments | « runtime/vm/bit_set.h ('k') | runtime/vm/freelist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698