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

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

Issue 2233473002: Redirect most NewUnresolved calls over Parser (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment 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 unified diff | Download patch
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | no next file » | 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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 } 794 }
795 795
796 // Producing data during the recursive descent. 796 // Producing data during the recursive descent.
797 PreParserIdentifier GetSymbol(Scanner* scanner); 797 PreParserIdentifier GetSymbol(Scanner* scanner);
798 PreParserIdentifier GetNumberAsSymbol(Scanner* scanner); 798 PreParserIdentifier GetNumberAsSymbol(Scanner* scanner);
799 799
800 static PreParserIdentifier GetNextSymbol(Scanner* scanner) { 800 static PreParserIdentifier GetNextSymbol(Scanner* scanner) {
801 return PreParserIdentifier::Default(); 801 return PreParserIdentifier::Default();
802 } 802 }
803 803
804 static PreParserExpression ThisExpression(PreParserFactory* factory, 804 static PreParserExpression ThisExpression(int pos) {
805 int pos) {
806 return PreParserExpression::This(); 805 return PreParserExpression::This();
807 } 806 }
808 807
809 static PreParserExpression NewSuperPropertyReference( 808 static PreParserExpression NewSuperPropertyReference(
810 PreParserFactory* factory, int pos) { 809 PreParserFactory* factory, int pos) {
811 return PreParserExpression::Default(); 810 return PreParserExpression::Default();
812 } 811 }
813 812
814 static PreParserExpression NewSuperCallReference(PreParserFactory* factory, 813 static PreParserExpression NewSuperCallReference(PreParserFactory* factory,
815 int pos) { 814 int pos) {
816 return PreParserExpression::SuperCallReference(); 815 return PreParserExpression::SuperCallReference();
817 } 816 }
818 817
819 static PreParserExpression NewTargetExpression(PreParserFactory* factory, 818 static PreParserExpression NewTargetExpression(int pos) {
820 int pos) {
821 return PreParserExpression::Default(); 819 return PreParserExpression::Default();
822 } 820 }
823 821
824 static PreParserExpression FunctionSentExpression(PreParserFactory* factory, 822 static PreParserExpression FunctionSentExpression(PreParserFactory* factory,
825 int pos) { 823 int pos) {
826 return PreParserExpression::Default(); 824 return PreParserExpression::Default();
827 } 825 }
828 826
829 static PreParserExpression ExpressionFromLiteral( 827 static PreParserExpression ExpressionFromLiteral(
830 Token::Value token, int pos, Scanner* scanner, 828 Token::Value token, int pos, Scanner* scanner,
831 PreParserFactory* factory) { 829 PreParserFactory* factory) {
832 return PreParserExpression::Default(); 830 return PreParserExpression::Default();
833 } 831 }
834 832
835 static PreParserExpression ExpressionFromIdentifier( 833 static PreParserExpression ExpressionFromIdentifier(PreParserIdentifier name,
836 PreParserIdentifier name, int start_position, int end_position, 834 int start_position,
837 PreParserFactory* factory) { 835 int end_position) {
838 return PreParserExpression::FromIdentifier(name); 836 return PreParserExpression::FromIdentifier(name);
839 } 837 }
840 838
841 PreParserExpression ExpressionFromString(int pos, 839 PreParserExpression ExpressionFromString(int pos,
842 Scanner* scanner, 840 Scanner* scanner,
843 PreParserFactory* factory = NULL); 841 PreParserFactory* factory = NULL);
844 842
845 PreParserExpression GetIterator(PreParserExpression iterable, 843 PreParserExpression GetIterator(PreParserExpression iterable,
846 PreParserFactory* factory, int pos) { 844 PreParserFactory* factory, int pos) {
847 return PreParserExpression::Default(); 845 return PreParserExpression::Default();
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 const PreParserFormalParameters& parameters, FunctionKind kind, 1258 const PreParserFormalParameters& parameters, FunctionKind kind,
1261 FunctionLiteral::FunctionType function_type, bool* ok) { 1259 FunctionLiteral::FunctionType function_type, bool* ok) {
1262 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1260 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1263 kind, function_type, ok); 1261 kind, function_type, ok);
1264 } 1262 }
1265 1263
1266 } // namespace internal 1264 } // namespace internal
1267 } // namespace v8 1265 } // namespace v8
1268 1266
1269 #endif // V8_PARSING_PREPARSER_H 1267 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698