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

Unified Diff: Source/core/Init.cpp

Issue 368283002: Stream scripts to V8 as they load - Blink side. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed untrue assert Created 6 years, 3 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/core/v8/v8.gypi ('k') | Source/core/dom/PendingScript.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/Init.cpp
diff --git a/Source/core/Init.cpp b/Source/core/Init.cpp
index d73aa974d37f67bc9264be02dbd69533aa192f2c..9278a17db5201b2589913ad48b3f062b370638c9 100644
--- a/Source/core/Init.cpp
+++ b/Source/core/Init.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "Init.h"
+#include "bindings/core/v8/ScriptStreamerThread.h"
#include "core/EventNames.h"
#include "core/EventTargetNames.h"
#include "core/EventTypeNames.h"
@@ -106,13 +107,17 @@ void CoreInitializer::init()
StringImpl::freezeStaticStrings();
- // Creates HTMLParserThread::shared, but does not start the thread.
+ // Creates HTMLParserThread::shared and ScriptStreamerThread::shared, but
+ // does not start the threads.
HTMLParserThread::init();
+ ScriptStreamerThread::init();
}
void CoreInitializer::shutdown()
{
- // Make sure we stop the HTMLParserThread before Platform::current() is cleared.
+ // Make sure we stop the HTMLParserThread and ScriptStreamerThread before
+ // Platform::current() is cleared.
+ ScriptStreamerThread::shutdown();
HTMLParserThread::shutdown();
// Make sure we stop WorkerThreads before Partition::shutdown() which frees ExecutionContext.
« no previous file with comments | « Source/bindings/core/v8/v8.gypi ('k') | Source/core/dom/PendingScript.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698