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

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

Issue 1928203002: [es8] More spec compliant syntactic tail calls implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Some STC tests ported for PTC 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') | src/parsing/preparser.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/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 FunctionNameValidity function_name_validity, FunctionKind kind, 890 FunctionNameValidity function_name_validity, FunctionKind kind,
891 int function_token_position, FunctionLiteral::FunctionType type, 891 int function_token_position, FunctionLiteral::FunctionType type,
892 LanguageMode language_mode, bool* ok); 892 LanguageMode language_mode, bool* ok);
893 893
894 PreParserExpression ParseClassLiteral(Type::ExpressionClassifier* classifier, 894 PreParserExpression ParseClassLiteral(Type::ExpressionClassifier* classifier,
895 PreParserIdentifier name, 895 PreParserIdentifier name,
896 Scanner::Location class_name_location, 896 Scanner::Location class_name_location,
897 bool name_is_strict_reserved, int pos, 897 bool name_is_strict_reserved, int pos,
898 bool* ok); 898 bool* ok);
899 899
900 V8_INLINE void MarkCollectedTailCallExpressions() {}
900 V8_INLINE void MarkTailPosition(PreParserExpression) {} 901 V8_INLINE void MarkTailPosition(PreParserExpression) {}
901 902
902 PreParserExpressionList PrepareSpreadArguments(PreParserExpressionList list) { 903 PreParserExpressionList PrepareSpreadArguments(PreParserExpressionList list) {
903 return list; 904 return list;
904 } 905 }
905 906
906 inline void MaterializeUnspreadArgumentsLiterals(int count); 907 inline void MaterializeUnspreadArgumentsLiterals(int count);
907 908
908 inline PreParserExpression SpreadCall(PreParserExpression function, 909 inline PreParserExpression SpreadCall(PreParserExpression function,
909 PreParserExpressionList args, int pos); 910 PreParserExpressionList args, int pos);
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 const PreParserFormalParameters& parameters, FunctionKind kind, 1200 const PreParserFormalParameters& parameters, FunctionKind kind,
1200 FunctionLiteral::FunctionType function_type, bool* ok) { 1201 FunctionLiteral::FunctionType function_type, bool* ok) {
1201 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1202 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1202 kind, function_type, ok); 1203 kind, function_type, ok);
1203 } 1204 }
1204 1205
1205 } // namespace internal 1206 } // namespace internal
1206 } // namespace v8 1207 } // namespace v8
1207 1208
1208 #endif // V8_PARSING_PREPARSER_H 1209 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/parsing/preparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698