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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 PreParserFormalParameters* formals, bool has_duplicate_parameters, | 973 PreParserFormalParameters* formals, bool has_duplicate_parameters, |
974 bool maybe_abort, bool* ok); | 974 bool maybe_abort, bool* ok); |
975 | 975 |
976 struct TemplateLiteralState {}; | 976 struct TemplateLiteralState {}; |
977 | 977 |
978 V8_INLINE TemplateLiteralState OpenTemplateLiteral(int pos) { | 978 V8_INLINE TemplateLiteralState OpenTemplateLiteral(int pos) { |
979 return TemplateLiteralState(); | 979 return TemplateLiteralState(); |
980 } | 980 } |
981 V8_INLINE void AddTemplateExpression(TemplateLiteralState* state, | 981 V8_INLINE void AddTemplateExpression(TemplateLiteralState* state, |
982 PreParserExpression expression) {} | 982 PreParserExpression expression) {} |
983 V8_INLINE void AddTemplateSpan(TemplateLiteralState* state, bool tail) {} | 983 V8_INLINE void AddTemplateSpan(TemplateLiteralState* state, bool should_cook, |
| 984 bool tail) {} |
984 V8_INLINE PreParserExpression CloseTemplateLiteral( | 985 V8_INLINE PreParserExpression CloseTemplateLiteral( |
985 TemplateLiteralState* state, int start, PreParserExpression tag); | 986 TemplateLiteralState* state, int start, PreParserExpression tag); |
986 V8_INLINE void CheckConflictingVarDeclarations(Scope* scope, bool* ok) {} | 987 V8_INLINE void CheckConflictingVarDeclarations(Scope* scope, bool* ok) {} |
987 | 988 |
988 V8_INLINE void SetLanguageMode(Scope* scope, LanguageMode mode) { | 989 V8_INLINE void SetLanguageMode(Scope* scope, LanguageMode mode) { |
989 scope->SetLanguageMode(mode); | 990 scope->SetLanguageMode(mode); |
990 } | 991 } |
991 V8_INLINE void SetAsmModule() {} | 992 V8_INLINE void SetAsmModule() {} |
992 | 993 |
993 V8_INLINE void MarkCollectedTailCallExpressions() {} | 994 V8_INLINE void MarkCollectedTailCallExpressions() {} |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1700 function_state_->NextMaterializedLiteralIndex(); | 1701 function_state_->NextMaterializedLiteralIndex(); |
1701 function_state_->NextMaterializedLiteralIndex(); | 1702 function_state_->NextMaterializedLiteralIndex(); |
1702 } | 1703 } |
1703 return EmptyExpression(); | 1704 return EmptyExpression(); |
1704 } | 1705 } |
1705 | 1706 |
1706 } // namespace internal | 1707 } // namespace internal |
1707 } // namespace v8 | 1708 } // namespace v8 |
1708 | 1709 |
1709 #endif // V8_PARSING_PREPARSER_H | 1710 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |