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

Unified Diff: src/ast/scopes.h

Issue 2198043002: Add a mode to completely deserialize scope chains (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates 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/DEPS ('k') | src/ast/scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopes.h
diff --git a/src/ast/scopes.h b/src/ast/scopes.h
index d8edf9148fe91a6cbc5221b095eee599962017cc..645fdad347ae28dee6900b83f4a18a821bd5e988 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -114,9 +114,12 @@ class Scope: public ZoneObject {
// doesn't re-allocate variables repeatedly.
static bool Analyze(ParseInfo* info);
+ enum class DeserializationMode { kDeserializeOffHeap, kKeepScopeInfo };
+
static Scope* DeserializeScopeChain(Isolate* isolate, Zone* zone,
Context* context, Scope* script_scope,
- AstValueFactory* ast_value_factory);
+ AstValueFactory* ast_value_factory,
+ DeserializationMode deserialization_mode);
// The scope name is only used for printing/debugging.
void SetScopeName(const AstRawString* scope_name) {
@@ -851,6 +854,9 @@ class Scope: public ZoneObject {
void SetDefaults();
+ void DeserializeScopeInfo(Isolate* isolate,
+ AstValueFactory* ast_value_factory);
+
PendingCompilationErrorHandler pending_error_handler_;
};
« no previous file with comments | « src/DEPS ('k') | src/ast/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698