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

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

Issue 1620253003: Implement the function.sent proposal. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 int pos) { 791 int pos) {
792 return PreParserExpression::SuperCallReference(); 792 return PreParserExpression::SuperCallReference();
793 } 793 }
794 794
795 static PreParserExpression NewTargetExpression(Scope* scope, 795 static PreParserExpression NewTargetExpression(Scope* scope,
796 PreParserFactory* factory, 796 PreParserFactory* factory,
797 int pos) { 797 int pos) {
798 return PreParserExpression::Default(); 798 return PreParserExpression::Default();
799 } 799 }
800 800
801 static PreParserExpression FunctionSentExpression(Scope* scope,
802 PreParserFactory* factory,
803 int pos) {
804 return PreParserExpression::Default();
805 }
806
801 static PreParserExpression DefaultConstructor(bool call_super, Scope* scope, 807 static PreParserExpression DefaultConstructor(bool call_super, Scope* scope,
802 int pos, int end_pos) { 808 int pos, int end_pos) {
803 return PreParserExpression::Default(); 809 return PreParserExpression::Default();
804 } 810 }
805 811
806 static PreParserExpression ExpressionFromLiteral( 812 static PreParserExpression ExpressionFromLiteral(
807 Token::Value token, int pos, Scanner* scanner, 813 Token::Value token, int pos, Scanner* scanner,
808 PreParserFactory* factory) { 814 PreParserFactory* factory) {
809 return PreParserExpression::Default(); 815 return PreParserExpression::Default();
810 } 816 }
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 const PreParserFormalParameters& parameters, FunctionKind kind, 1173 const PreParserFormalParameters& parameters, FunctionKind kind,
1168 FunctionLiteral::FunctionType function_type, bool* ok) { 1174 FunctionLiteral::FunctionType function_type, bool* ok) {
1169 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1175 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1170 kind, function_type, ok); 1176 kind, function_type, ok);
1171 } 1177 }
1172 1178
1173 } // namespace internal 1179 } // namespace internal
1174 } // namespace v8 1180 } // namespace v8
1175 1181
1176 #endif // V8_PARSING_PREPARSER_H 1182 #endif // V8_PARSING_PREPARSER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698