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/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/parsing/parser-base.h" | 10 #include "src/parsing/parser-base.h" |
(...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1664 } | 1664 } |
1665 | 1665 |
1666 V8_INLINE ZoneList<PreParserExpression>* GetNonPatternList() const { | 1666 V8_INLINE ZoneList<PreParserExpression>* GetNonPatternList() const { |
1667 return function_state_->non_patterns_to_rewrite(); | 1667 return function_state_->non_patterns_to_rewrite(); |
1668 } | 1668 } |
1669 | 1669 |
1670 V8_INLINE void CountUsage(v8::Isolate::UseCounterFeature feature) { | 1670 V8_INLINE void CountUsage(v8::Isolate::UseCounterFeature feature) { |
1671 if (use_counts_ != nullptr) ++use_counts_[feature]; | 1671 if (use_counts_ != nullptr) ++use_counts_[feature]; |
1672 } | 1672 } |
1673 | 1673 |
| 1674 V8_INLINE bool ParsingDynamicFunctionDeclaration() const { return false; } |
| 1675 |
1674 // Preparser's private field members. | 1676 // Preparser's private field members. |
1675 | 1677 |
1676 int* use_counts_; | 1678 int* use_counts_; |
1677 bool track_unresolved_variables_; | 1679 bool track_unresolved_variables_; |
1678 PreParserLogger log_; | 1680 PreParserLogger log_; |
1679 PendingCompilationErrorHandler* pending_error_handler_; | 1681 PendingCompilationErrorHandler* pending_error_handler_; |
1680 }; | 1682 }; |
1681 | 1683 |
1682 PreParserExpression PreParser::SpreadCall(PreParserExpression function, | 1684 PreParserExpression PreParser::SpreadCall(PreParserExpression function, |
1683 PreParserExpressionList args, int pos, | 1685 PreParserExpressionList args, int pos, |
(...skipping 16 matching lines...) Expand all Loading... |
1700 function_state_->NextMaterializedLiteralIndex(); | 1702 function_state_->NextMaterializedLiteralIndex(); |
1701 function_state_->NextMaterializedLiteralIndex(); | 1703 function_state_->NextMaterializedLiteralIndex(); |
1702 } | 1704 } |
1703 return EmptyExpression(); | 1705 return EmptyExpression(); |
1704 } | 1706 } |
1705 | 1707 |
1706 } // namespace internal | 1708 } // namespace internal |
1707 } // namespace v8 | 1709 } // namespace v8 |
1708 | 1710 |
1709 #endif // V8_PARSING_PREPARSER_H | 1711 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |