Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(999)

Side by Side Diff: src/parsing/preparser.h

Issue 2642843002: Revert of [Ignition/turbo] Add a CallWithSpread bytecode. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698