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

Unified Diff: src/parsing/parse-info.h

Issue 2650703003: [parser]: Skipping inner funcs / initial implemetation of storing scope analysis data from preparse… (Closed)
Patch Set: code review (vogelheim) Created 3 years, 11 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: src/parsing/parse-info.h
diff --git a/src/parsing/parse-info.h b/src/parsing/parse-info.h
index a5fd1a55d333076f4a70e86947bffcce9aea00da..23025b9c125faf8f016bda59c7ca52bf28775b8d 100644
--- a/src/parsing/parse-info.h
+++ b/src/parsing/parse-info.h
@@ -11,6 +11,7 @@
#include "src/globals.h"
#include "src/handles.h"
#include "src/objects/scope-info.h"
+#include "src/parsing/preparsed-scope-data.h"
namespace v8 {
@@ -102,6 +103,8 @@ class V8_EXPORT_PRIVATE ParseInfo {
ScriptData** cached_data() const { return cached_data_; }
void set_cached_data(ScriptData** cached_data) { cached_data_ = cached_data; }
+ PreParsedScopeData* preparsed_scope_data() { return &preparsed_scope_data_; }
+
ScriptCompiler::CompileOptions compile_options() const {
return compile_options_;
}
@@ -258,6 +261,7 @@ class V8_EXPORT_PRIVATE ParseInfo {
//----------- Inputs+Outputs of parsing and scope analysis -----------------
ScriptData** cached_data_; // used if available, populated if requested.
+ PreParsedScopeData preparsed_scope_data_;
AstValueFactory* ast_value_factory_; // used if available, otherwise new.
const AstRawString* function_name_;
« no previous file with comments | « src/flag-definitions.h ('k') | src/parsing/parser.h » ('j') | src/parsing/preparsed-scope-data.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698