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

Unified Diff: src/isolate.cc

Issue 214883002: Two-threaded parser (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 6 years, 7 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 | « src/isolate.h ('k') | src/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 82ace290cd5c2ee2a4249a9dd7201f61f7bcda10..e7fb699e8a0502d158342aa022b5cfa4e845d74f 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -19,6 +19,7 @@
#include "lithium-allocator.h"
#include "log.h"
#include "messages.h"
+#include "parser-thread.h"
#include "platform.h"
#include "regexp-stack.h"
#include "runtime-profiler.h"
@@ -1479,6 +1480,7 @@ Isolate::Isolate()
function_entry_hook_(NULL),
deferred_handles_head_(NULL),
optimizing_compiler_thread_(NULL),
+ fast_parser_thread_(NULL),
sweeper_thread_(NULL),
num_sweeper_threads_(0),
stress_deopt_count_(0),
@@ -1566,6 +1568,12 @@ void Isolate::Deinit() {
optimizing_compiler_thread_ = NULL;
}
+ if (fast_parser_thread_) {
+ fast_parser_thread_->Stop();
+ delete fast_parser_thread_;
+ fast_parser_thread_ = NULL;
+ }
+
for (int i = 0; i < num_sweeper_threads_; i++) {
sweeper_thread_[i]->Stop();
delete sweeper_thread_[i];
@@ -1923,6 +1931,11 @@ bool Isolate::Init(Deserializer* des) {
}
}
+ if (FLAG_parallel_parse) {
+ fast_parser_thread_ = new FastParserThread();
+ fast_parser_thread_->Start();
+ }
+
// If we are deserializing, read the state into the now-empty heap.
if (!create_heap_objects) {
des->Deserialize(this);
« no previous file with comments | « src/isolate.h ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698