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

Unified Diff: Source/platform/testing/RunAllTests.cpp

Issue 1220253004: Implement a fast buffer allocator for Vector, HashTable and StringBuilder Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | « Source/platform/heap/blink_heap.gypi ('k') | Source/web/WebKit.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/testing/RunAllTests.cpp
diff --git a/Source/platform/testing/RunAllTests.cpp b/Source/platform/testing/RunAllTests.cpp
index d63549b2954f32c12b87e8dffb6d39cf23cd761b..75d8fd407ede04ba27210ce7a1d9bc5574467413 100644
--- a/Source/platform/testing/RunAllTests.cpp
+++ b/Source/platform/testing/RunAllTests.cpp
@@ -52,6 +52,28 @@ static void AlwaysZeroNumberSource(unsigned char* buf, size_t len)
int main(int argc, char** argv)
{
+ blink::BufferAllocator::initialize();
+ DefaultAllocator::initialize(blink::BufferAllocator::quantizedSize
+ , blink::BufferAllocator::allocateVectorBacking
+ , blink::BufferAllocator::allocateExpandedVectorBacking
+ , blink::BufferAllocator::freeVectorBacking
+ , blink::BufferAllocator::expandVectorBacking
+ , blink::BufferAllocator::shrinkVectorBacking
+ , blink::BufferAllocator::allocateInlineVectorBacking
+ , blink::BufferAllocator::freeInlineVectorBacking
+ , blink::BufferAllocator::expandInlineVectorBacking
+ , blink::BufferAllocator::shrinkInlineVectorBacking
+ , blink::BufferAllocator::allocateHashTableBacking
+ , blink::BufferAllocator::allocateZeroedHashTableBacking
+ , blink::BufferAllocator::allocateExpandedHashTableBacking
+ , blink::BufferAllocator::allocateZeroedExpandedHashTableBacking
+ , blink::BufferAllocator::freeHashTableBacking
+ , blink::BufferAllocator::expandHashTableBacking
+ , blink::BufferAllocator::allocateBufferStringBacking
+ , blink::BufferAllocator::freeBufferStringBacking
+ , blink::BufferAllocator::expandBufferStringBacking
+ , blink::BufferAllocator::shrinkBufferStringBacking);
+
WTF::setRandomSource(AlwaysZeroNumberSource);
WTF::initialize(CurrentTime, nullptr, nullptr, nullptr, nullptr);
WTF::initializeMainThread(0);
« no previous file with comments | « Source/platform/heap/blink_heap.gypi ('k') | Source/web/WebKit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698