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

Unified Diff: src/write-buffer.h

Issue 5856002: Add support for compacting the write buffer. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 10 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 | « src/v8-counters.h ('k') | src/write-buffer.cc » ('j') | src/write-buffer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/write-buffer.h
===================================================================
--- src/write-buffer.h (revision 6021)
+++ src/write-buffer.h (working copy)
@@ -56,14 +56,18 @@
}
}
- static const int kWriteBufferOverflowBit = 1 << 15;
+ static const int kWriteBufferOverflowBit = 1 << 16;
static const int kWriteBufferSize = kWriteBufferOverflowBit;
+ static const int kHashMapLengthLog2 = 12;
+ static const int kHashMapLength = 1 << kHashMapLengthLog2;
private:
static Address* top_;
static Address* start_;
static Address* limit_;
static VirtualMemory* virtual_memory_;
+ static uintptr_t* hash_map_1_;
+ static uintptr_t* hash_map_2_;
static void Compact();
};
« no previous file with comments | « src/v8-counters.h ('k') | src/write-buffer.cc » ('j') | src/write-buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698