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