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

Unified Diff: src/parser.cc

Issue 912563004: Get rid of PreParserScope. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/parser.h ('k') | src/preparser.h » ('j') | src/preparser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 78039f63f6883dfbd0d8055d4418d29094919ef1..330cd0b6a6e04a3966dd813f62080468e267395b 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -263,21 +263,6 @@ void Parser::SetCachedData() {
}
-Scope* Parser::NewScope(Scope* parent, ScopeType scope_type,
- FunctionKind kind) {
- DCHECK(ast_value_factory());
- DCHECK(scope_type != MODULE_SCOPE || allow_harmony_modules());
- DCHECK((scope_type == FUNCTION_SCOPE && IsValidFunctionKind(kind)) ||
- kind == kNormalFunction);
- Scope* result = new (zone())
- Scope(isolate(), zone(), parent, scope_type, ast_value_factory());
- bool uninitialized_this =
- FLAG_experimental_classes && IsSubclassConstructor(kind);
- result->Initialize(uninitialized_this);
- return result;
-}
-
-
FunctionLiteral* Parser::DefaultConstructor(bool call_super, Scope* scope,
int pos, int end_pos) {
int materialized_literal_count = -1;
« no previous file with comments | « src/parser.h ('k') | src/preparser.h » ('j') | src/preparser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698