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/base/hashmap.h" | 10 #include "src/base/hashmap.h" |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 int pos) { | 823 int pos) { |
824 return PreParserExpression::Default(); | 824 return PreParserExpression::Default(); |
825 } | 825 } |
826 | 826 |
827 static PreParserExpression ExpressionFromLiteral( | 827 static PreParserExpression ExpressionFromLiteral( |
828 Token::Value token, int pos, Scanner* scanner, | 828 Token::Value token, int pos, Scanner* scanner, |
829 PreParserFactory* factory) { | 829 PreParserFactory* factory) { |
830 return PreParserExpression::Default(); | 830 return PreParserExpression::Default(); |
831 } | 831 } |
832 | 832 |
833 static PreParserExpression ExpressionFromIdentifier(PreParserIdentifier name, | 833 static PreParserExpression ExpressionFromIdentifier( |
834 int start_position, | 834 PreParserIdentifier name, int start_position, int end_position, |
835 int end_position) { | 835 InferName = InferName::Yes) { |
836 return PreParserExpression::FromIdentifier(name); | 836 return PreParserExpression::FromIdentifier(name); |
837 } | 837 } |
838 | 838 |
839 PreParserExpression ExpressionFromString(int pos, | 839 PreParserExpression ExpressionFromString(int pos, |
840 Scanner* scanner, | 840 Scanner* scanner, |
841 PreParserFactory* factory = NULL); | 841 PreParserFactory* factory = NULL); |
842 | 842 |
843 PreParserExpression GetIterator(PreParserExpression iterable, | 843 PreParserExpression GetIterator(PreParserExpression iterable, |
844 PreParserFactory* factory, int pos) { | 844 PreParserFactory* factory, int pos) { |
845 return PreParserExpression::Default(); | 845 return PreParserExpression::Default(); |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 const PreParserFormalParameters& parameters, FunctionKind kind, | 1258 const PreParserFormalParameters& parameters, FunctionKind kind, |
1259 FunctionLiteral::FunctionType function_type, bool* ok) { | 1259 FunctionLiteral::FunctionType function_type, bool* ok) { |
1260 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, | 1260 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, |
1261 kind, function_type, ok); | 1261 kind, function_type, ok); |
1262 } | 1262 } |
1263 | 1263 |
1264 } // namespace internal | 1264 } // namespace internal |
1265 } // namespace v8 | 1265 } // namespace v8 |
1266 | 1266 |
1267 #endif // V8_PARSING_PREPARSER_H | 1267 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |