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