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

Side by Side Diff: src/parser.h

Issue 1060883004: [strong] Implement static restrictions on binding 'undefined' in arrow functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: linebreak Created 5 years, 8 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/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_PARSER_H_ 5 #ifndef V8_PARSER_H_
6 #define V8_PARSER_H_ 6 #define V8_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/compiler.h" // TODO(titzer): remove this include dependency 10 #include "src/compiler.h" // TODO(titzer): remove this include dependency
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 return new(zone) ZoneList<ObjectLiteral::Property*>(size, zone); 738 return new(zone) ZoneList<ObjectLiteral::Property*>(size, zone);
739 } 739 }
740 ZoneList<v8::internal::Statement*>* NewStatementList(int size, Zone* zone) { 740 ZoneList<v8::internal::Statement*>* NewStatementList(int size, Zone* zone) {
741 return new(zone) ZoneList<v8::internal::Statement*>(size, zone); 741 return new(zone) ZoneList<v8::internal::Statement*>(size, zone);
742 } 742 }
743 V8_INLINE Scope* NewScope(Scope* parent_scope, ScopeType scope_type, 743 V8_INLINE Scope* NewScope(Scope* parent_scope, ScopeType scope_type,
744 FunctionKind kind = kNormalFunction); 744 FunctionKind kind = kNormalFunction);
745 745
746 // Utility functions 746 // Utility functions
747 int DeclareArrowParametersFromExpression(Expression* expression, Scope* scope, 747 int DeclareArrowParametersFromExpression(Expression* expression, Scope* scope,
748 Scanner::Location* undefined_loc,
748 Scanner::Location* dupe_loc, 749 Scanner::Location* dupe_loc,
749 bool* ok); 750 bool* ok);
750 751
751 // Temporary glue; these functions will move to ParserBase. 752 // Temporary glue; these functions will move to ParserBase.
752 Expression* ParseV8Intrinsic(bool* ok); 753 Expression* ParseV8Intrinsic(bool* ok);
753 FunctionLiteral* ParseFunctionLiteral( 754 FunctionLiteral* ParseFunctionLiteral(
754 const AstRawString* name, Scanner::Location function_name_location, 755 const AstRawString* name, Scanner::Location function_name_location,
755 bool name_is_strict_reserved, FunctionKind kind, 756 bool name_is_strict_reserved, FunctionKind kind,
756 int function_token_position, FunctionLiteral::FunctionType type, 757 int function_token_position, FunctionLiteral::FunctionType type,
757 FunctionLiteral::ArityRestriction arity_restriction, bool* ok); 758 FunctionLiteral::ArityRestriction arity_restriction, bool* ok);
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 } 1161 }
1161 1162
1162 1163
1163 Expression* ParserTraits::SpreadCallNew( 1164 Expression* ParserTraits::SpreadCallNew(
1164 Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) { 1165 Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) {
1165 return parser_->SpreadCallNew(function, args, pos); 1166 return parser_->SpreadCallNew(function, args, pos);
1166 } 1167 }
1167 } } // namespace v8::internal 1168 } } // namespace v8::internal
1168 1169
1169 #endif // V8_PARSER_H_ 1170 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698