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

Unified Diff: src/compiler-dispatcher/compiler-dispatcher-job.h

Issue 2191443003: Add a prepare to parse step to CompilerDispatcherJob (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | src/compiler-dispatcher/compiler-dispatcher-job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler-dispatcher/compiler-dispatcher-job.h
diff --git a/src/compiler-dispatcher/compiler-dispatcher-job.h b/src/compiler-dispatcher/compiler-dispatcher-job.h
index db113de650dd619eb0a562ba7880efb2d5d5f7ed..44ff0644c4866d9a0af8cc0799816f3622cca596 100644
--- a/src/compiler-dispatcher/compiler-dispatcher-job.h
+++ b/src/compiler-dispatcher/compiler-dispatcher-job.h
@@ -5,8 +5,9 @@
#ifndef V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_
#define V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_
-#include "src/base/macros.h"
+#include <memory>
+#include "src/base/macros.h"
#include "src/handles.h"
namespace v8 {
@@ -15,9 +16,13 @@ namespace internal {
class CompilationInfo;
class Isolate;
class JSFunction;
+class ParseInfo;
+class UnicodeCache;
+class Zone;
enum class CompileJobStatus {
kInitial,
+ kReadyToParse,
};
class CompilerDispatcherJob {
@@ -27,11 +32,19 @@ class CompilerDispatcherJob {
CompileJobStatus status() const { return status_; }
+ // Transition from kInitial to kReadyToParse.
+ void PrepareToParseOnMainThread();
+
private:
CompileJobStatus status_ = CompileJobStatus::kInitial;
Isolate* isolate_;
Handle<JSFunction> function_; // Global handle.
+ // Members required for parsing.
+ std::unique_ptr<UnicodeCache> unicode_cache_;
+ std::unique_ptr<Zone> zone_;
+ std::unique_ptr<ParseInfo> parse_info_;
+
DISALLOW_COPY_AND_ASSIGN(CompilerDispatcherJob);
};
« no previous file with comments | « no previous file | src/compiler-dispatcher/compiler-dispatcher-job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698