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

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: renaming Created 6 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
Index: Source/core/Init.cpp
diff --git a/Source/core/Init.cpp b/Source/core/Init.cpp
index af7c9e1506c20245a48856c202a86bbbb13ee7d2..135f8aff94065359bad5316224f14d48efcb3c6b 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/V8ScriptStreamerThread.h"
#include "core/EventNames.h"
#include "core/EventTargetNames.h"
#include "core/EventTypeNames.h"
@@ -117,14 +118,18 @@ void CoreInitializer::init()
StringImpl::freezeStaticStrings();
- // Creates HTMLParserThread::shared, but does not start the thread.
+ // Creates HTMLParserThread::shared and V8ScriptStreamerThread::shared, but
+ // does not start the threads.
HTMLParserThread::init();
+ V8ScriptStreamerThread::init();
}
void CoreInitializer::shutdown()
{
- // Make sure we stop the HTMLParserThread before Platform::current() is cleared.
+ // Make sure we stop the HTMLParserThread and V8ScriptStreamerThread before
+ // Platform::current() is cleared.
HTMLParserThread::shutdown();
+ V8ScriptStreamerThread::shutdown();
haraken 2014/08/17 16:05:28 We want to shutdown threads in the reverse order o
marja 2014/08/20 11:45:56 Done. I guess it'd only make a difference if the t
haraken 2014/08/20 15:00:19 I don't know any specific cases where the order ma
Partitions::shutdown();
}

Powered by Google App Engine
This is Rietveld 408576698