| 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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 int pos) { | 797 int pos) { |
| 798 return PreParserExpression::Default(); | 798 return PreParserExpression::Default(); |
| 799 } | 799 } |
| 800 | 800 |
| 801 static PreParserExpression FunctionSentExpression(Scope* scope, | 801 static PreParserExpression FunctionSentExpression(Scope* scope, |
| 802 PreParserFactory* factory, | 802 PreParserFactory* factory, |
| 803 int pos) { | 803 int pos) { |
| 804 return PreParserExpression::Default(); | 804 return PreParserExpression::Default(); |
| 805 } | 805 } |
| 806 | 806 |
| 807 static PreParserExpression DefaultConstructor(bool call_super, Scope* scope, | |
| 808 int pos, int end_pos) { | |
| 809 return PreParserExpression::Default(); | |
| 810 } | |
| 811 | |
| 812 static PreParserExpression ExpressionFromLiteral( | 807 static PreParserExpression ExpressionFromLiteral( |
| 813 Token::Value token, int pos, Scanner* scanner, | 808 Token::Value token, int pos, Scanner* scanner, |
| 814 PreParserFactory* factory) { | 809 PreParserFactory* factory) { |
| 815 return PreParserExpression::Default(); | 810 return PreParserExpression::Default(); |
| 816 } | 811 } |
| 817 | 812 |
| 818 static PreParserExpression ExpressionFromIdentifier( | 813 static PreParserExpression ExpressionFromIdentifier( |
| 819 PreParserIdentifier name, int start_position, int end_position, | 814 PreParserIdentifier name, int start_position, int end_position, |
| 820 Scope* scope, PreParserFactory* factory) { | 815 Scope* scope, PreParserFactory* factory) { |
| 821 return PreParserExpression::FromIdentifier(name); | 816 return PreParserExpression::FromIdentifier(name); |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1162 const PreParserFormalParameters& parameters, FunctionKind kind, | 1157 const PreParserFormalParameters& parameters, FunctionKind kind, |
| 1163 FunctionLiteral::FunctionType function_type, bool* ok) { | 1158 FunctionLiteral::FunctionType function_type, bool* ok) { |
| 1164 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, | 1159 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, |
| 1165 kind, function_type, ok); | 1160 kind, function_type, ok); |
| 1166 } | 1161 } |
| 1167 | 1162 |
| 1168 } // namespace internal | 1163 } // namespace internal |
| 1169 } // namespace v8 | 1164 } // namespace v8 |
| 1170 | 1165 |
| 1171 #endif // V8_PARSING_PREPARSER_H | 1166 #endif // V8_PARSING_PREPARSER_H |
| OLD | NEW |