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

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

Issue 1932213002: Version 5.1.281.23 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.1
Patch Set: Created 4 years, 7 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/parser-base.h ('k') | test/mjsunit/es6/tail-call.js » ('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/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 PreParserIdentifier name, Scanner::Location function_name_location, 880 PreParserIdentifier name, Scanner::Location function_name_location,
881 FunctionNameValidity function_name_validity, FunctionKind kind, 881 FunctionNameValidity function_name_validity, FunctionKind kind,
882 int function_token_position, FunctionLiteral::FunctionType type, 882 int function_token_position, FunctionLiteral::FunctionType type,
883 LanguageMode language_mode, bool* ok); 883 LanguageMode language_mode, bool* ok);
884 884
885 PreParserExpression ParseClassLiteral(PreParserIdentifier name, 885 PreParserExpression ParseClassLiteral(PreParserIdentifier name,
886 Scanner::Location class_name_location, 886 Scanner::Location class_name_location,
887 bool name_is_strict_reserved, int pos, 887 bool name_is_strict_reserved, int pos,
888 bool* ok); 888 bool* ok);
889 889
890 V8_INLINE void MarkTailPosition(PreParserExpression) {}
891
890 PreParserExpressionList PrepareSpreadArguments(PreParserExpressionList list) { 892 PreParserExpressionList PrepareSpreadArguments(PreParserExpressionList list) {
891 return list; 893 return list;
892 } 894 }
893 895
894 inline void MaterializeUnspreadArgumentsLiterals(int count); 896 inline void MaterializeUnspreadArgumentsLiterals(int count);
895 897
896 inline PreParserExpression SpreadCall(PreParserExpression function, 898 inline PreParserExpression SpreadCall(PreParserExpression function,
897 PreParserExpressionList args, int pos); 899 PreParserExpressionList args, int pos);
898 900
899 inline PreParserExpression SpreadCallNew(PreParserExpression function, 901 inline PreParserExpression SpreadCallNew(PreParserExpression function,
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 const PreParserFormalParameters& parameters, FunctionKind kind, 1164 const PreParserFormalParameters& parameters, FunctionKind kind,
1163 FunctionLiteral::FunctionType function_type, bool* ok) { 1165 FunctionLiteral::FunctionType function_type, bool* ok) {
1164 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1166 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1165 kind, function_type, ok); 1167 kind, function_type, ok);
1166 } 1168 }
1167 1169
1168 } // namespace internal 1170 } // namespace internal
1169 } // namespace v8 1171 } // namespace v8
1170 1172
1171 #endif // V8_PARSING_PREPARSER_H 1173 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | test/mjsunit/es6/tail-call.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698