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 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 V8_INLINE void CheckConflictingVarDeclarations(Scope* scope, bool* ok) {} | 946 V8_INLINE void CheckConflictingVarDeclarations(Scope* scope, bool* ok) {} |
947 | 947 |
948 V8_INLINE void SetLanguageMode(Scope* scope, LanguageMode mode) { | 948 V8_INLINE void SetLanguageMode(Scope* scope, LanguageMode mode) { |
949 scope->SetLanguageMode(mode); | 949 scope->SetLanguageMode(mode); |
950 } | 950 } |
951 V8_INLINE void SetAsmModule() {} | 951 V8_INLINE void SetAsmModule() {} |
952 | 952 |
953 V8_INLINE void MarkCollectedTailCallExpressions() {} | 953 V8_INLINE void MarkCollectedTailCallExpressions() {} |
954 V8_INLINE void MarkTailPosition(PreParserExpression expression) {} | 954 V8_INLINE void MarkTailPosition(PreParserExpression expression) {} |
955 | 955 |
956 V8_INLINE PreParserExpressionList | |
957 PrepareSpreadArguments(PreParserExpressionList list) { | |
958 return list; | |
959 } | |
960 | |
961 V8_INLINE PreParserExpression SpreadCall(PreParserExpression function, | 956 V8_INLINE PreParserExpression SpreadCall(PreParserExpression function, |
962 PreParserExpressionList args, | 957 PreParserExpressionList args, |
963 int pos); | 958 int pos); |
964 V8_INLINE PreParserExpression SpreadCallNew(PreParserExpression function, | 959 V8_INLINE PreParserExpression SpreadCallNew(PreParserExpression function, |
965 PreParserExpressionList args, | 960 PreParserExpressionList args, |
966 int pos); | 961 int pos); |
967 | 962 |
968 V8_INLINE PreParserExpression | 963 V8_INLINE PreParserExpression |
969 RewriteSuperCall(PreParserExpression call_expression) { | 964 RewriteSuperCall(PreParserExpression call_expression) { |
970 return call_expression; | 965 return call_expression; |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1563 function_state_->NextMaterializedLiteralIndex(); | 1558 function_state_->NextMaterializedLiteralIndex(); |
1564 function_state_->NextMaterializedLiteralIndex(); | 1559 function_state_->NextMaterializedLiteralIndex(); |
1565 } | 1560 } |
1566 return EmptyExpression(); | 1561 return EmptyExpression(); |
1567 } | 1562 } |
1568 | 1563 |
1569 } // namespace internal | 1564 } // namespace internal |
1570 } // namespace v8 | 1565 } // namespace v8 |
1571 | 1566 |
1572 #endif // V8_PARSING_PREPARSER_H | 1567 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |