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

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

Issue 1563923002: [es6] Handle function names in object and class literals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Handled review comments Created 4 years, 11 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 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 PreParserExpressionList args, int pos); 916 PreParserExpressionList args, int pos);
917 917
918 inline PreParserExpression SpreadCallNew(PreParserExpression function, 918 inline PreParserExpression SpreadCallNew(PreParserExpression function,
919 PreParserExpressionList args, 919 PreParserExpressionList args,
920 int pos); 920 int pos);
921 921
922 inline void RewriteDestructuringAssignments() {} 922 inline void RewriteDestructuringAssignments() {}
923 923
924 inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {} 924 inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {}
925 925
926 void SetFunctionNameFromPropertyName(PreParserExpression,
927 PreParserIdentifier) {}
928
926 private: 929 private:
927 PreParser* pre_parser_; 930 PreParser* pre_parser_;
928 }; 931 };
929 932
930 933
931 // Preparsing checks a JavaScript program and emits preparse-data that helps 934 // Preparsing checks a JavaScript program and emits preparse-data that helps
932 // a later parsing to be faster. 935 // a later parsing to be faster.
933 // See preparse-data-format.h for the data format. 936 // See preparse-data-format.h for the data format.
934 937
935 // The PreParser checks that the syntax follows the grammar for JavaScript, 938 // The PreParser checks that the syntax follows the grammar for JavaScript,
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 const PreParserFormalParameters& parameters, FunctionKind kind, 1126 const PreParserFormalParameters& parameters, FunctionKind kind,
1124 FunctionLiteral::FunctionType function_type, bool* ok) { 1127 FunctionLiteral::FunctionType function_type, bool* ok) {
1125 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1128 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1126 kind, function_type, ok); 1129 kind, function_type, ok);
1127 } 1130 }
1128 1131
1129 } // namespace internal 1132 } // namespace internal
1130 } // namespace v8 1133 } // namespace v8
1131 1134
1132 #endif // V8_PARSING_PREPARSER_H 1135 #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