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

Unified Diff: src/parsing/parser-base.h

Issue 2198043002: Add a mode to completely deserialize scope chains (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: gcmole 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
Index: src/parsing/parser-base.h
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h
index 7bde0a721bf8f3c4f07bdbbb4c3ac55229652c35..c0f77fe5f94d90fac03ba100256ecf8df0c50307 100644
--- a/src/parsing/parser-base.h
+++ b/src/parsing/parser-base.h
@@ -254,6 +254,10 @@ class ParserBase : public Traits {
void set_stack_limit(uintptr_t stack_limit) { stack_limit_ = stack_limit; }
+ Scope* NewScriptScope() {
+ return new (zone()) Scope(zone(), nullptr, SCRIPT_SCOPE, kNormalFunction);
+ }
+
protected:
enum AllowRestrictedIdentifiers {
kAllowRestrictedIdentifiers,
@@ -615,10 +619,6 @@ class ParserBase : public Traits {
Mode old_mode_;
};
- Scope* NewScriptScope() {
- return new (zone()) Scope(zone(), nullptr, SCRIPT_SCOPE, kNormalFunction);
- }
-
Scope* NewScope(ScopeType scope_type) {
return NewScopeWithParent(scope(), scope_type);
}

Powered by Google App Engine
This is Rietveld 408576698