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_; |