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

Side by Side Diff: src/parsing/preparser.h

Issue 2142233003: Templatize AstVisitor with its subclass (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | src/parsing/rewriter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PARSING_PREPARSER_H 5 #ifndef V8_PARSING_PREPARSER_H
6 #define V8_PARSING_PREPARSER_H 6 #define V8_PARSING_PREPARSER_H
7 7
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/base/hashmap.h" 10 #include "src/base/hashmap.h"
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 static PreParserIdentifier GetNextSymbol(Scanner* scanner) { 795 static PreParserIdentifier GetNextSymbol(Scanner* scanner) {
796 return PreParserIdentifier::Default(); 796 return PreParserIdentifier::Default();
797 } 797 }
798 798
799 static PreParserExpression ThisExpression(Scope* scope, 799 static PreParserExpression ThisExpression(Scope* scope,
800 PreParserFactory* factory, 800 PreParserFactory* factory,
801 int pos) { 801 int pos) {
802 return PreParserExpression::This(); 802 return PreParserExpression::This();
803 } 803 }
804 804
805 static PreParserExpression SuperPropertyReference(Scope* scope, 805 static PreParserExpression NewSuperPropertyReference(
806 PreParserFactory* factory, 806 Scope* scope, PreParserFactory* factory, int pos) {
807 int pos) {
808 return PreParserExpression::Default(); 807 return PreParserExpression::Default();
809 } 808 }
810 809
811 static PreParserExpression SuperCallReference(Scope* scope, 810 static PreParserExpression NewSuperCallReference(Scope* scope,
812 PreParserFactory* factory, 811 PreParserFactory* factory,
813 int pos) { 812 int pos) {
814 return PreParserExpression::SuperCallReference(); 813 return PreParserExpression::SuperCallReference();
815 } 814 }
816 815
817 static PreParserExpression NewTargetExpression(Scope* scope, 816 static PreParserExpression NewTargetExpression(Scope* scope,
818 PreParserFactory* factory, 817 PreParserFactory* factory,
819 int pos) { 818 int pos) {
820 return PreParserExpression::Default(); 819 return PreParserExpression::Default();
821 } 820 }
822 821
823 static PreParserExpression FunctionSentExpression(Scope* scope, 822 static PreParserExpression FunctionSentExpression(Scope* scope,
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 const PreParserFormalParameters& parameters, FunctionKind kind, 1261 const PreParserFormalParameters& parameters, FunctionKind kind,
1263 FunctionLiteral::FunctionType function_type, bool* ok) { 1262 FunctionLiteral::FunctionType function_type, bool* ok) {
1264 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1263 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1265 kind, function_type, ok); 1264 kind, function_type, ok);
1266 } 1265 }
1267 1266
1268 } // namespace internal 1267 } // namespace internal
1269 } // namespace v8 1268 } // namespace v8
1270 1269
1271 #endif // V8_PARSING_PREPARSER_H 1270 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | src/parsing/rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698