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

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: Created 4 years, 9 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 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 895
896 inline PreParserExpression SpreadCall(PreParserExpression function, 896 inline PreParserExpression SpreadCall(PreParserExpression function,
897 PreParserExpressionList args, int pos); 897 PreParserExpressionList args, int pos);
898 898
899 inline PreParserExpression SpreadCallNew(PreParserExpression function, 899 inline PreParserExpression SpreadCallNew(PreParserExpression function,
900 PreParserExpressionList args, 900 PreParserExpressionList args,
901 int pos); 901 int pos);
902 902
903 inline void RewriteDestructuringAssignments() {} 903 inline void RewriteDestructuringAssignments() {}
904 904
905 inline PreParserExpression RewriteExponentiation(PreParserExpression left,
906 PreParserExpression right,
907 int pos) {
908 return left;
909 }
910 inline PreParserExpression RewriteAssignExponentiation(
911 PreParserExpression left, PreParserExpression right, int pos) {
912 return left;
913 }
914
905 inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {} 915 inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {}
906 inline void QueueNonPatternForRewriting(PreParserExpression) {} 916 inline void QueueNonPatternForRewriting(PreParserExpression) {}
907 917
908 void SetFunctionNameFromPropertyName(PreParserExpression, 918 void SetFunctionNameFromPropertyName(PreParserExpression,
909 PreParserIdentifier) {} 919 PreParserIdentifier) {}
910 void SetFunctionNameFromIdentifierRef(PreParserExpression, 920 void SetFunctionNameFromIdentifierRef(PreParserExpression,
911 PreParserExpression) {} 921 PreParserExpression) {}
912 922
913 inline void RewriteNonPattern(Type::ExpressionClassifier* classifier, 923 inline void RewriteNonPattern(Type::ExpressionClassifier* classifier,
914 bool* ok); 924 bool* ok);
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 const PreParserFormalParameters& parameters, FunctionKind kind, 1159 const PreParserFormalParameters& parameters, FunctionKind kind,
1150 FunctionLiteral::FunctionType function_type, bool* ok) { 1160 FunctionLiteral::FunctionType function_type, bool* ok) {
1151 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1161 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1152 kind, function_type, ok); 1162 kind, function_type, ok);
1153 } 1163 }
1154 1164
1155 } // namespace internal 1165 } // namespace internal
1156 } // namespace v8 1166 } // namespace v8
1157 1167
1158 #endif // V8_PARSING_PREPARSER_H 1168 #endif // V8_PARSING_PREPARSER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698