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

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: 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
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 MarkCollectedTailCallExpressions() {}
890 V8_INLINE void MarkTailPosition(PreParserExpression) {} 891 V8_INLINE void MarkTailPosition(PreParserExpression) {}
891 892
892 PreParserExpressionList PrepareSpreadArguments(PreParserExpressionList list) { 893 PreParserExpressionList PrepareSpreadArguments(PreParserExpressionList list) {
893 return list; 894 return list;
894 } 895 }
895 896
896 inline void MaterializeUnspreadArgumentsLiterals(int count); 897 inline void MaterializeUnspreadArgumentsLiterals(int count);
897 898
898 inline PreParserExpression SpreadCall(PreParserExpression function, 899 inline PreParserExpression SpreadCall(PreParserExpression function,
899 PreParserExpressionList args, int pos); 900 PreParserExpressionList args, int pos);
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 const PreParserFormalParameters& parameters, FunctionKind kind, 1177 const PreParserFormalParameters& parameters, FunctionKind kind,
1177 FunctionLiteral::FunctionType function_type, bool* ok) { 1178 FunctionLiteral::FunctionType function_type, bool* ok) {
1178 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1179 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1179 kind, function_type, ok); 1180 kind, function_type, ok);
1180 } 1181 }
1181 1182
1182 } // namespace internal 1183 } // namespace internal
1183 } // namespace v8 1184 } // namespace v8
1184 1185
1185 #endif // V8_PARSING_PREPARSER_H 1186 #endif // V8_PARSING_PREPARSER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698