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

Unified Diff: Source/bindings/v8/WorkerScriptController.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/V8Initializer.cpp ('k') | Source/web/WebKit.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/WorkerScriptController.cpp
diff --git a/Source/bindings/v8/WorkerScriptController.cpp b/Source/bindings/v8/WorkerScriptController.cpp
index e47a00e28909740975047dc14b88d7931bcfcb56..4747a10ba61648a4cf6dbb6f4bc636953a74201d 100644
--- a/Source/bindings/v8/WorkerScriptController.cpp
+++ b/Source/bindings/v8/WorkerScriptController.cpp
@@ -48,6 +48,7 @@
#include "core/workers/WorkerGlobalScope.h"
#include "core/workers/WorkerObjectProxy.h"
#include "core/workers/WorkerThread.h"
+#include <v8-defaults.h>
#include <v8.h>
#include "public/platform/Platform.h"
@@ -62,6 +63,7 @@ WorkerScriptController::WorkerScriptController(WorkerGlobalScope* workerGlobalSc
, m_executionScheduledToTerminate(false)
{
m_isolate->Enter();
+ v8::SetDefaultResourceConstraintsForCurrentPlatform();
v8::V8::Initialize();
V8PerIsolateData* data = V8PerIsolateData::create(m_isolate);
m_domDataStore = adoptPtr(new DOMDataStore(WorkerWorld));
« no previous file with comments | « Source/bindings/v8/V8Initializer.cpp ('k') | Source/web/WebKit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698