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

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

Issue 2313723005: [parser] Simplify parse-time function name inference for properties (Closed)
Patch Set: Created 4 years, 3 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') | 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/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/parsing/parser-base.h" 10 #include "src/parsing/parser-base.h"
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 1010
1011 V8_INLINE Expression* NoTemplateTag() { return NULL; } 1011 V8_INLINE Expression* NoTemplateTag() { return NULL; }
1012 V8_INLINE static bool IsTaggedTemplate(const Expression* tag) { 1012 V8_INLINE static bool IsTaggedTemplate(const Expression* tag) {
1013 return tag != NULL; 1013 return tag != NULL;
1014 } 1014 }
1015 1015
1016 V8_INLINE void MaterializeUnspreadArgumentsLiterals(int count) {} 1016 V8_INLINE void MaterializeUnspreadArgumentsLiterals(int count) {}
1017 1017
1018 Expression* ExpressionListToExpression(ZoneList<Expression*>* args); 1018 Expression* ExpressionListToExpression(ZoneList<Expression*>* args);
1019 1019
1020 void AddAccessorPrefixToFunctionName(bool is_get, FunctionLiteral* function,
1021 const AstRawString* name);
1022
1020 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property, 1023 void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property,
1021 const AstRawString* name); 1024 const AstRawString* name);
1022 void SetFunctionNameFromPropertyName(ClassLiteralProperty* property,
1023 const AstRawString* name);
1024 1025
1025 void SetFunctionNameFromIdentifierRef(Expression* value, 1026 void SetFunctionNameFromIdentifierRef(Expression* value,
1026 Expression* identifier); 1027 Expression* identifier);
1027 1028
1028 V8_INLINE ZoneList<typename ExpressionClassifier::Error>* 1029 V8_INLINE ZoneList<typename ExpressionClassifier::Error>*
1029 GetReportedErrorList() const { 1030 GetReportedErrorList() const {
1030 return function_state_->GetReportedErrorList(); 1031 return function_state_->GetReportedErrorList();
1031 } 1032 }
1032 1033
1033 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const { 1034 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const {
(...skipping 25 matching lines...) Expand all
1059 1060
1060 #ifdef DEBUG 1061 #ifdef DEBUG
1061 void Print(AstNode* node); 1062 void Print(AstNode* node);
1062 #endif // DEBUG 1063 #endif // DEBUG
1063 }; 1064 };
1064 1065
1065 } // namespace internal 1066 } // namespace internal
1066 } // namespace v8 1067 } // namespace v8
1067 1068
1068 #endif // V8_PARSING_PARSER_H_ 1069 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698