| 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 495   PreParserExpression NewRewritableExpression(PreParserExpression expression) { | 495   PreParserExpression NewRewritableExpression(PreParserExpression expression) { | 
| 496     return expression; | 496     return expression; | 
| 497   } | 497   } | 
| 498   PreParserExpression NewAssignment(Token::Value op, | 498   PreParserExpression NewAssignment(Token::Value op, | 
| 499                                     PreParserExpression left, | 499                                     PreParserExpression left, | 
| 500                                     PreParserExpression right, | 500                                     PreParserExpression right, | 
| 501                                     int pos) { | 501                                     int pos) { | 
| 502     return PreParserExpression::Assignment(); | 502     return PreParserExpression::Assignment(); | 
| 503   } | 503   } | 
| 504   PreParserExpression NewYield(PreParserExpression generator_object, | 504   PreParserExpression NewYield(PreParserExpression generator_object, | 
| 505                                PreParserExpression expression, | 505                                PreParserExpression expression, int pos, | 
| 506                                int pos) { | 506                                Yield::OnException on_exception) { | 
| 507     return PreParserExpression::Default(); | 507     return PreParserExpression::Default(); | 
| 508   } | 508   } | 
| 509   PreParserExpression NewConditional(PreParserExpression condition, | 509   PreParserExpression NewConditional(PreParserExpression condition, | 
| 510                                      PreParserExpression then_expression, | 510                                      PreParserExpression then_expression, | 
| 511                                      PreParserExpression else_expression, | 511                                      PreParserExpression else_expression, | 
| 512                                      int pos) { | 512                                      int pos) { | 
| 513     return PreParserExpression::Default(); | 513     return PreParserExpression::Default(); | 
| 514   } | 514   } | 
| 515   PreParserExpression NewCountOperation(Token::Value op, | 515   PreParserExpression NewCountOperation(Token::Value op, | 
| 516                                         bool is_prefix, | 516                                         bool is_prefix, | 
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1262     const PreParserFormalParameters& parameters, FunctionKind kind, | 1262     const PreParserFormalParameters& parameters, FunctionKind kind, | 
| 1263     FunctionLiteral::FunctionType function_type, bool* ok) { | 1263     FunctionLiteral::FunctionType function_type, bool* ok) { | 
| 1264   return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, | 1264   return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, | 
| 1265                                              kind, function_type, ok); | 1265                                              kind, function_type, ok); | 
| 1266 } | 1266 } | 
| 1267 | 1267 | 
| 1268 }  // namespace internal | 1268 }  // namespace internal | 
| 1269 }  // namespace v8 | 1269 }  // namespace v8 | 
| 1270 | 1270 | 
| 1271 #endif  // V8_PARSING_PREPARSER_H | 1271 #endif  // V8_PARSING_PREPARSER_H | 
| OLD | NEW | 
|---|