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

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

Issue 1582783004: [es6] add SetFunctionName() behaviour to AssignmentExpression (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add a bunch more tests 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 | « no previous file | src/parsing/parser.cc » ('j') | test/mjsunit/harmony/function-name.js » ('J')
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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 639
640 // Rewrite all DestructuringAssignments in the current FunctionState. 640 // Rewrite all DestructuringAssignments in the current FunctionState.
641 V8_INLINE void RewriteDestructuringAssignments(); 641 V8_INLINE void RewriteDestructuringAssignments();
642 642
643 V8_INLINE void QueueDestructuringAssignmentForRewriting( 643 V8_INLINE void QueueDestructuringAssignmentForRewriting(
644 Expression* assignment); 644 Expression* assignment);
645 645
646 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property, 646 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property,
647 const AstRawString* name); 647 const AstRawString* name);
648 648
649 void SetFunctionNameFromIdentifierRef(Expression* value,
650 Expression* identifier);
651
649 private: 652 private:
650 Parser* parser_; 653 Parser* parser_;
651 }; 654 };
652 655
653 656
654 class Parser : public ParserBase<ParserTraits> { 657 class Parser : public ParserBase<ParserTraits> {
655 public: 658 public:
656 explicit Parser(ParseInfo* info); 659 explicit Parser(ParseInfo* info);
657 ~Parser() { 660 ~Parser() {
658 delete reusable_preparser_; 661 delete reusable_preparser_;
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 1192
1190 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1193 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1191 return parser_->ParseDoExpression(ok); 1194 return parser_->ParseDoExpression(ok);
1192 } 1195 }
1193 1196
1194 1197
1195 } // namespace internal 1198 } // namespace internal
1196 } // namespace v8 1199 } // namespace v8
1197 1200
1198 #endif // V8_PARSING_PARSER_H_ 1201 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | test/mjsunit/harmony/function-name.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698