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

Side by Side Diff: src/parsing/parser.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/ast/ast-value-factory.h ('k') | src/parsing/parser.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_PARSER_H_ 5 #ifndef V8_PARSING_PARSER_H_
6 #define V8_PARSING_PARSER_H_ 6 #define V8_PARSING_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 V8_INLINE Expression* SpreadCallNew(Expression* function, 899 V8_INLINE Expression* SpreadCallNew(Expression* function,
900 ZoneList<v8::internal::Expression*>* args, 900 ZoneList<v8::internal::Expression*>* args,
901 int pos); 901 int pos);
902 902
903 // Rewrite all DestructuringAssignments in the current FunctionState. 903 // Rewrite all DestructuringAssignments in the current FunctionState.
904 V8_INLINE void RewriteDestructuringAssignments(); 904 V8_INLINE void RewriteDestructuringAssignments();
905 905
906 V8_INLINE void QueueDestructuringAssignmentForRewriting( 906 V8_INLINE void QueueDestructuringAssignmentForRewriting(
907 Expression* assignment); 907 Expression* assignment);
908 908
909 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property,
910 const AstRawString* name);
911
909 private: 912 private:
910 Parser* parser_; 913 Parser* parser_;
911 }; 914 };
912 915
913 916
914 class Parser : public ParserBase<ParserTraits> { 917 class Parser : public ParserBase<ParserTraits> {
915 public: 918 public:
916 explicit Parser(ParseInfo* info); 919 explicit Parser(ParseInfo* info);
917 ~Parser() { 920 ~Parser() {
918 delete reusable_preparser_; 921 delete reusable_preparser_;
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 1450
1448 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1451 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1449 return parser_->ParseDoExpression(ok); 1452 return parser_->ParseDoExpression(ok);
1450 } 1453 }
1451 1454
1452 1455
1453 } // namespace internal 1456 } // namespace internal
1454 } // namespace v8 1457 } // namespace v8
1455 1458
1456 #endif // V8_PARSING_PARSER_H_ 1459 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/ast/ast-value-factory.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698