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 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 V8_INLINE void SetLanguageMode(Scope* scope, LanguageMode mode) { | 981 V8_INLINE void SetLanguageMode(Scope* scope, LanguageMode mode) { |
982 scope->SetLanguageMode(mode); | 982 scope->SetLanguageMode(mode); |
983 } | 983 } |
984 V8_INLINE void SetAsmModule() {} | 984 V8_INLINE void SetAsmModule() {} |
985 | 985 |
986 V8_INLINE void MarkCollectedTailCallExpressions() {} | 986 V8_INLINE void MarkCollectedTailCallExpressions() {} |
987 V8_INLINE void MarkTailPosition(PreParserExpression expression) {} | 987 V8_INLINE void MarkTailPosition(PreParserExpression expression) {} |
988 | 988 |
989 V8_INLINE PreParserExpression SpreadCall(PreParserExpression function, | 989 V8_INLINE PreParserExpression SpreadCall(PreParserExpression function, |
990 PreParserExpressionList args, | 990 PreParserExpressionList args, |
991 int pos, | 991 int pos); |
992 Call::PossiblyEval possibly_eval); | |
993 V8_INLINE PreParserExpression SpreadCallNew(PreParserExpression function, | 992 V8_INLINE PreParserExpression SpreadCallNew(PreParserExpression function, |
994 PreParserExpressionList args, | 993 PreParserExpressionList args, |
995 int pos); | 994 int pos); |
996 | 995 |
997 V8_INLINE void RewriteDestructuringAssignments() {} | 996 V8_INLINE void RewriteDestructuringAssignments() {} |
998 | 997 |
999 V8_INLINE PreParserExpression RewriteExponentiation(PreParserExpression left, | 998 V8_INLINE PreParserExpression RewriteExponentiation(PreParserExpression left, |
1000 PreParserExpression right, | 999 PreParserExpression right, |
1001 int pos) { | 1000 int pos) { |
1002 return left; | 1001 return left; |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1606 | 1605 |
1607 // Preparser's private field members. | 1606 // Preparser's private field members. |
1608 | 1607 |
1609 int* use_counts_; | 1608 int* use_counts_; |
1610 bool track_unresolved_variables_; | 1609 bool track_unresolved_variables_; |
1611 PreParserLogger log_; | 1610 PreParserLogger log_; |
1612 PendingCompilationErrorHandler* pending_error_handler_; | 1611 PendingCompilationErrorHandler* pending_error_handler_; |
1613 }; | 1612 }; |
1614 | 1613 |
1615 PreParserExpression PreParser::SpreadCall(PreParserExpression function, | 1614 PreParserExpression PreParser::SpreadCall(PreParserExpression function, |
1616 PreParserExpressionList args, int pos, | 1615 PreParserExpressionList args, |
1617 Call::PossiblyEval possibly_eval) { | 1616 int pos) { |
1618 return factory()->NewCall(function, args, pos, possibly_eval); | 1617 return factory()->NewCall(function, args, pos); |
1619 } | 1618 } |
1620 | 1619 |
1621 PreParserExpression PreParser::SpreadCallNew(PreParserExpression function, | 1620 PreParserExpression PreParser::SpreadCallNew(PreParserExpression function, |
1622 PreParserExpressionList args, | 1621 PreParserExpressionList args, |
1623 int pos) { | 1622 int pos) { |
1624 return factory()->NewCallNew(function, args, pos); | 1623 return factory()->NewCallNew(function, args, pos); |
1625 } | 1624 } |
1626 | 1625 |
1627 PreParserStatementList PreParser::ParseEagerFunctionBody( | 1626 PreParserStatementList PreParser::ParseEagerFunctionBody( |
1628 PreParserIdentifier function_name, int pos, | 1627 PreParserIdentifier function_name, int pos, |
(...skipping 27 matching lines...) Expand all Loading... |
1656 function_state_->NextMaterializedLiteralIndex(); | 1655 function_state_->NextMaterializedLiteralIndex(); |
1657 function_state_->NextMaterializedLiteralIndex(); | 1656 function_state_->NextMaterializedLiteralIndex(); |
1658 } | 1657 } |
1659 return EmptyExpression(); | 1658 return EmptyExpression(); |
1660 } | 1659 } |
1661 | 1660 |
1662 } // namespace internal | 1661 } // namespace internal |
1663 } // namespace v8 | 1662 } // namespace v8 |
1664 | 1663 |
1665 #endif // V8_PARSING_PREPARSER_H | 1664 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |