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

Unified Diff: Source/web/WebKit.cpp

Issue 26868004: Set default resource constraints on V8 before the the default isolate is initialized (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix workers too. Created 7 years, 2 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/bindings/v8/WorkerScriptController.cpp ('k') | no next file » | 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 d33d80ace65ca8e52e861fa1bd42345326364f63..beba41c435a177cd7458d68d812ece96d41b19fa 100644
--- a/Source/web/WebKit.cpp
+++ b/Source/web/WebKit.cpp
@@ -56,6 +56,7 @@
#include "public/platform/Platform.h"
#include "public/platform/WebPrerenderingSupport.h"
#include "public/platform/WebThread.h"
+#include <v8-defaults.h>
#include <v8.h>
namespace WebKit {
@@ -101,6 +102,7 @@ void initialize(Platform* platform)
v8::V8::SetEntropySource(&generateEntropy);
v8::V8::SetArrayBufferAllocator(WebCore::v8ArrayBufferAllocator());
+ v8::SetDefaultResourceConstraintsForCurrentPlatform();
v8::V8::Initialize();
v8::Isolate* isolate = v8::Isolate::GetCurrent();
WebCore::setMainThreadIsolate(isolate);
« no previous file with comments | « Source/bindings/v8/WorkerScriptController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698