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

Unified Diff: Source/web/WebKit.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/testing/RunAllTests.cpp ('k') | Source/wtf/DefaultAllocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebKit.cpp
diff --git a/Source/web/WebKit.cpp b/Source/web/WebKit.cpp
index 5e9638c9433ed6b48d9ca8ca44b156bcd88f6969..e1c3b2dbc368db811c25fa7e647c9c1540f202bc 100644
--- a/Source/web/WebKit.cpp
+++ b/Source/web/WebKit.cpp
@@ -172,6 +172,28 @@ void initializeWithoutV8(Platform* platform)
ASSERT(platform);
Platform::initialize(platform);
+ 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(cryptographicallyRandomValues);
WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction, systemTraceTimeFunction, histogramEnumerationFunction, adjustAmountOfExternalAllocatedMemory);
WTF::initializeMainThread(callOnMainThreadFunction);
@@ -241,6 +263,7 @@ void shutdownWithoutV8()
CoreInitializer::shutdown();
Heap::shutdown();
WTF::shutdown();
+ blink::BufferAllocator::shutdown();
Platform::shutdown();
WebPrerenderingSupport::shutdown();
}
« no previous file with comments | « Source/platform/testing/RunAllTests.cpp ('k') | Source/wtf/DefaultAllocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698