| 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_PREPARSER_H | 5 #ifndef V8_PREPARSER_H |
| 6 #define V8_PREPARSER_H | 6 #define V8_PREPARSER_H |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
| (...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1607 bool name_is_strict_reserved, FunctionKind kind, int function_token_pos, | 1607 bool name_is_strict_reserved, FunctionKind kind, int function_token_pos, |
| 1608 FunctionLiteral::FunctionType function_type, | 1608 FunctionLiteral::FunctionType function_type, |
| 1609 FunctionLiteral::ArityRestriction arity_restriction, bool* ok); | 1609 FunctionLiteral::ArityRestriction arity_restriction, bool* ok); |
| 1610 void ParseLazyFunctionLiteralBody(bool* ok); | 1610 void ParseLazyFunctionLiteralBody(bool* ok); |
| 1611 | 1611 |
| 1612 PreParserExpression ParseClassLiteral(PreParserIdentifier name, | 1612 PreParserExpression ParseClassLiteral(PreParserIdentifier name, |
| 1613 Scanner::Location class_name_location, | 1613 Scanner::Location class_name_location, |
| 1614 bool name_is_strict_reserved, int pos, | 1614 bool name_is_strict_reserved, int pos, |
| 1615 bool* ok); | 1615 bool* ok); |
| 1616 | 1616 |
| 1617 bool CheckInOrOf(bool accept_OF); | 1617 bool CheckInOrOf(bool accept_OF, bool* ok); |
| 1618 }; | 1618 }; |
| 1619 | 1619 |
| 1620 | 1620 |
| 1621 void PreParserTraits::MaterializeTemplateCallsiteLiterals() { | 1621 void PreParserTraits::MaterializeTemplateCallsiteLiterals() { |
| 1622 pre_parser_->function_state_->NextMaterializedLiteralIndex(); | 1622 pre_parser_->function_state_->NextMaterializedLiteralIndex(); |
| 1623 pre_parser_->function_state_->NextMaterializedLiteralIndex(); | 1623 pre_parser_->function_state_->NextMaterializedLiteralIndex(); |
| 1624 } | 1624 } |
| 1625 | 1625 |
| 1626 | 1626 |
| 1627 PreParserStatementList PreParser::ParseEagerFunctionBody( | 1627 PreParserStatementList PreParser::ParseEagerFunctionBody( |
| (...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3083 *ok = false; | 3083 *ok = false; |
| 3084 return; | 3084 return; |
| 3085 } | 3085 } |
| 3086 has_seen_constructor_ = true; | 3086 has_seen_constructor_ = true; |
| 3087 return; | 3087 return; |
| 3088 } | 3088 } |
| 3089 } | 3089 } |
| 3090 } } // v8::internal | 3090 } } // v8::internal |
| 3091 | 3091 |
| 3092 #endif // V8_PREPARSER_H | 3092 #endif // V8_PREPARSER_H |
| OLD | NEW |