| 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 PreParserExpression else_expression, | 513 PreParserExpression else_expression, |
| 514 int pos) { | 514 int pos) { |
| 515 return PreParserExpression::Default(); | 515 return PreParserExpression::Default(); |
| 516 } | 516 } |
| 517 PreParserExpression NewCountOperation(Token::Value op, | 517 PreParserExpression NewCountOperation(Token::Value op, |
| 518 bool is_prefix, | 518 bool is_prefix, |
| 519 PreParserExpression expression, | 519 PreParserExpression expression, |
| 520 int pos) { | 520 int pos) { |
| 521 return PreParserExpression::Default(); | 521 return PreParserExpression::Default(); |
| 522 } | 522 } |
| 523 PreParserExpression NewCall(PreParserExpression expression, | 523 PreParserExpression NewCall( |
| 524 PreParserExpressionList arguments, | 524 PreParserExpression expression, PreParserExpressionList arguments, |
| 525 int pos) { | 525 int pos, Call::PossiblyEval possibly_eval = Call::NOT_EVAL) { |
| 526 if (expression.IsIdentifier() && expression.AsIdentifier().IsEval()) { | 526 if (possibly_eval == Call::IS_POSSIBLY_EVAL) { |
| 527 DCHECK(expression.IsIdentifier() && expression.AsIdentifier().IsEval()); |
| 527 return PreParserExpression::CallEval(); | 528 return PreParserExpression::CallEval(); |
| 528 } | 529 } |
| 529 return PreParserExpression::Call(); | 530 return PreParserExpression::Call(); |
| 530 } | 531 } |
| 531 PreParserExpression NewCallNew(PreParserExpression expression, | 532 PreParserExpression NewCallNew(PreParserExpression expression, |
| 532 PreParserExpressionList arguments, | 533 PreParserExpressionList arguments, |
| 533 int pos) { | 534 int pos) { |
| 534 return PreParserExpression::Default(); | 535 return PreParserExpression::Default(); |
| 535 } | 536 } |
| 536 PreParserExpression NewCallRuntime(const AstRawString* name, | 537 PreParserExpression NewCallRuntime(const AstRawString* name, |
| (...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1258 const PreParserFormalParameters& parameters, FunctionKind kind, | 1259 const PreParserFormalParameters& parameters, FunctionKind kind, |
| 1259 FunctionLiteral::FunctionType function_type, bool* ok) { | 1260 FunctionLiteral::FunctionType function_type, bool* ok) { |
| 1260 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, | 1261 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, |
| 1261 kind, function_type, ok); | 1262 kind, function_type, ok); |
| 1262 } | 1263 } |
| 1263 | 1264 |
| 1264 } // namespace internal | 1265 } // namespace internal |
| 1265 } // namespace v8 | 1266 } // namespace v8 |
| 1266 | 1267 |
| 1267 #endif // V8_PARSING_PREPARSER_H | 1268 #endif // V8_PARSING_PREPARSER_H |
| OLD | NEW |