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

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

Issue 1678303002: [es7] implement exponentiation operator proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 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 unified diff | Download patch
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/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 915
916 inline PreParserExpression SpreadCall(PreParserExpression function, 916 inline PreParserExpression SpreadCall(PreParserExpression function,
917 PreParserExpressionList args, int pos); 917 PreParserExpressionList args, int pos);
918 918
919 inline PreParserExpression SpreadCallNew(PreParserExpression function, 919 inline PreParserExpression SpreadCallNew(PreParserExpression function,
920 PreParserExpressionList args, 920 PreParserExpressionList args,
921 int pos); 921 int pos);
922 922
923 inline void RewriteDestructuringAssignments() {} 923 inline void RewriteDestructuringAssignments() {}
924 924
925 inline PreParserExpression RewriteExponentiation(PreParserExpression left,
926 PreParserExpression right,
927 Token::Value op, int pos) {
928 return left;
929 }
930
925 inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {} 931 inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {}
926 inline void QueueNonPatternForRewriting(PreParserExpression) {} 932 inline void QueueNonPatternForRewriting(PreParserExpression) {}
927 933
928 void SetFunctionNameFromPropertyName(PreParserExpression, 934 void SetFunctionNameFromPropertyName(PreParserExpression,
929 PreParserIdentifier) {} 935 PreParserIdentifier) {}
930 void SetFunctionNameFromIdentifierRef(PreParserExpression, 936 void SetFunctionNameFromIdentifierRef(PreParserExpression,
931 PreParserExpression) {} 937 PreParserExpression) {}
932 938
933 inline void RewriteNonPattern(Type::ExpressionClassifier* classifier, 939 inline void RewriteNonPattern(Type::ExpressionClassifier* classifier,
934 bool* ok); 940 bool* ok);
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 const PreParserFormalParameters& parameters, FunctionKind kind, 1175 const PreParserFormalParameters& parameters, FunctionKind kind,
1170 FunctionLiteral::FunctionType function_type, bool* ok) { 1176 FunctionLiteral::FunctionType function_type, bool* ok) {
1171 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1177 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1172 kind, function_type, ok); 1178 kind, function_type, ok);
1173 } 1179 }
1174 1180
1175 } // namespace internal 1181 } // namespace internal
1176 } // namespace v8 1182 } // namespace v8
1177 1183
1178 #endif // V8_PARSING_PREPARSER_H 1184 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« src/parsing/parser.cc ('K') | « src/parsing/parser-base.h ('k') | src/parsing/scanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698