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

Unified Diff: src/parsing/parser.h

Issue 2218033003: Reland "Hook up compiler dispatcher jobs to lazy parser." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/compiler-dispatcher/compiler-dispatcher-job.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index cfefccc37fa58612397095a442acc9502811e44a..d05902e37032d6367cec9cebdf3815d845c4a83d 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -112,6 +112,11 @@ class ParseInfo {
ast_value_factory_ = ast_value_factory;
}
+ const AstRawString* function_name() const { return function_name_; }
+ void set_function_name(const AstRawString* function_name) {
+ function_name_ = function_name;
+ }
+
FunctionLiteral* literal() { return literal_; }
void set_literal(FunctionLiteral* literal) { literal_ = literal; }
@@ -225,6 +230,7 @@ class ParseInfo {
//----------- Inputs+Outputs of parsing and scope analysis -----------------
ScriptData** cached_data_; // used if available, populated if requested.
AstValueFactory* ast_value_factory_; // used if available, otherwise new.
+ const AstRawString* function_name_;
//----------- Outputs of parsing and scope analysis ------------------------
FunctionLiteral* literal_; // produced by full parser.
@@ -776,8 +782,7 @@ class Parser : public ParserBase<ParserTraits> {
FunctionLiteral* ParseProgram(Isolate* isolate, ParseInfo* info);
FunctionLiteral* ParseLazy(Isolate* isolate, ParseInfo* info);
- FunctionLiteral* DoParseLazy(Isolate* isolate, ParseInfo* info,
- const AstRawString* raw_name,
+ FunctionLiteral* DoParseLazy(ParseInfo* info, const AstRawString* raw_name,
Utf16CharacterStream* source);
// Called by ParseProgram after setting up the scanner.
« no previous file with comments | « src/compiler-dispatcher/compiler-dispatcher-job.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698