OLD | NEW |
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 Loading... |
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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 const PreParserFormalParameters& parameters, FunctionKind kind, | 1162 const PreParserFormalParameters& parameters, FunctionKind kind, |
1157 FunctionLiteral::FunctionType function_type, bool* ok) { | 1163 FunctionLiteral::FunctionType function_type, bool* ok) { |
1158 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, | 1164 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, |
1159 kind, function_type, ok); | 1165 kind, function_type, ok); |
1160 } | 1166 } |
1161 | 1167 |
1162 } // namespace internal | 1168 } // namespace internal |
1163 } // namespace v8 | 1169 } // namespace v8 |
1164 | 1170 |
1165 #endif // V8_PARSING_PREPARSER_H | 1171 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |