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/parsing/parser-base.h" | 9 #include "src/parsing/parser-base.h" |
10 #include "src/parsing/preparse-data.h" | 10 #include "src/parsing/preparse-data.h" |
(...skipping 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1503 } | 1503 } |
1504 | 1504 |
1505 V8_INLINE ZoneList<PreParserExpression>* GetNonPatternList() const { | 1505 V8_INLINE ZoneList<PreParserExpression>* GetNonPatternList() const { |
1506 return function_state_->non_patterns_to_rewrite(); | 1506 return function_state_->non_patterns_to_rewrite(); |
1507 } | 1507 } |
1508 | 1508 |
1509 V8_INLINE void CountUsage(v8::Isolate::UseCounterFeature feature) { | 1509 V8_INLINE void CountUsage(v8::Isolate::UseCounterFeature feature) { |
1510 if (use_counts_ != nullptr) ++use_counts_[feature]; | 1510 if (use_counts_ != nullptr) ++use_counts_[feature]; |
1511 } | 1511 } |
1512 | 1512 |
| 1513 V8_INLINE bool IgnoreFunctionName() const { return false; } |
| 1514 |
1513 // Preparser's private field members. | 1515 // Preparser's private field members. |
1514 | 1516 |
1515 int* use_counts_; | 1517 int* use_counts_; |
1516 bool track_unresolved_variables_; | 1518 bool track_unresolved_variables_; |
1517 PreParserLogger log_; | 1519 PreParserLogger log_; |
1518 PendingCompilationErrorHandler* pending_error_handler_; | 1520 PendingCompilationErrorHandler* pending_error_handler_; |
1519 }; | 1521 }; |
1520 | 1522 |
1521 PreParserExpression PreParser::SpreadCall(PreParserExpression function, | 1523 PreParserExpression PreParser::SpreadCall(PreParserExpression function, |
1522 PreParserExpressionList args, | 1524 PreParserExpressionList args, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1558 function_state_->NextMaterializedLiteralIndex(); | 1560 function_state_->NextMaterializedLiteralIndex(); |
1559 function_state_->NextMaterializedLiteralIndex(); | 1561 function_state_->NextMaterializedLiteralIndex(); |
1560 } | 1562 } |
1561 return EmptyExpression(); | 1563 return EmptyExpression(); |
1562 } | 1564 } |
1563 | 1565 |
1564 } // namespace internal | 1566 } // namespace internal |
1565 } // namespace v8 | 1567 } // namespace v8 |
1566 | 1568 |
1567 #endif // V8_PARSING_PREPARSER_H | 1569 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |