Index: Source/web/WebKit.cpp |
diff --git a/Source/web/WebKit.cpp b/Source/web/WebKit.cpp |
index f916b41bf2f12e6843812e49a8515dbfeeeb79fc..ec818aa0e91449ab10a54db40ed1e14194962057 100644 |
--- a/Source/web/WebKit.cpp |
+++ b/Source/web/WebKit.cpp |
@@ -163,6 +163,11 @@ static void callOnMainThreadFunction(WTF::MainThreadFunction function, void* con |
Platform::current()->mainThread()->postTask(FROM_HERE, new MainThreadTaskRunner(function, context)); |
} |
+static void adjustAmountOfExternalAllocatedMemory(int size) |
+{ |
+ v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(size); |
+} |
+ |
void initializeWithoutV8(Platform* platform) |
{ |
ASSERT(!s_webKitInitialized); |
@@ -172,7 +177,7 @@ void initializeWithoutV8(Platform* platform) |
Platform::initialize(platform); |
WTF::setRandomSource(cryptographicallyRandomValues); |
- WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction, systemTraceTimeFunction, histogramEnumerationFunction); |
+ WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction, systemTraceTimeFunction, histogramEnumerationFunction, adjustAmountOfExternalAllocatedMemory); |
WTF::initializeMainThread(callOnMainThreadFunction); |
Heap::init(); |