| 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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 PreParserFormalParameters* formals, bool has_duplicate_parameters, | 998 PreParserFormalParameters* formals, bool has_duplicate_parameters, |
| 999 bool maybe_abort, bool* ok); | 999 bool maybe_abort, bool* ok); |
| 1000 | 1000 |
| 1001 struct TemplateLiteralState {}; | 1001 struct TemplateLiteralState {}; |
| 1002 | 1002 |
| 1003 V8_INLINE TemplateLiteralState OpenTemplateLiteral(int pos) { | 1003 V8_INLINE TemplateLiteralState OpenTemplateLiteral(int pos) { |
| 1004 return TemplateLiteralState(); | 1004 return TemplateLiteralState(); |
| 1005 } | 1005 } |
| 1006 V8_INLINE void AddTemplateExpression(TemplateLiteralState* state, | 1006 V8_INLINE void AddTemplateExpression(TemplateLiteralState* state, |
| 1007 PreParserExpression expression) {} | 1007 PreParserExpression expression) {} |
| 1008 V8_INLINE void AddTemplateSpan(TemplateLiteralState* state, bool tail) {} | 1008 V8_INLINE void AddTemplateSpan(TemplateLiteralState* state, bool should_cook, |
| 1009 bool tail) {} |
| 1009 V8_INLINE PreParserExpression CloseTemplateLiteral( | 1010 V8_INLINE PreParserExpression CloseTemplateLiteral( |
| 1010 TemplateLiteralState* state, int start, PreParserExpression tag); | 1011 TemplateLiteralState* state, int start, PreParserExpression tag); |
| 1011 V8_INLINE void CheckConflictingVarDeclarations(Scope* scope, bool* ok) {} | 1012 V8_INLINE void CheckConflictingVarDeclarations(Scope* scope, bool* ok) {} |
| 1012 | 1013 |
| 1013 V8_INLINE void SetLanguageMode(Scope* scope, LanguageMode mode) { | 1014 V8_INLINE void SetLanguageMode(Scope* scope, LanguageMode mode) { |
| 1014 scope->SetLanguageMode(mode); | 1015 scope->SetLanguageMode(mode); |
| 1015 } | 1016 } |
| 1016 V8_INLINE void SetAsmModule() {} | 1017 V8_INLINE void SetAsmModule() {} |
| 1017 | 1018 |
| 1018 V8_INLINE void MarkCollectedTailCallExpressions() {} | 1019 V8_INLINE void MarkCollectedTailCallExpressions() {} |
| (...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1743 PreParserExpression PreParser::CloseTemplateLiteral(TemplateLiteralState* state, | 1744 PreParserExpression PreParser::CloseTemplateLiteral(TemplateLiteralState* state, |
| 1744 int start, | 1745 int start, |
| 1745 PreParserExpression tag) { | 1746 PreParserExpression tag) { |
| 1746 return EmptyExpression(); | 1747 return EmptyExpression(); |
| 1747 } | 1748 } |
| 1748 | 1749 |
| 1749 } // namespace internal | 1750 } // namespace internal |
| 1750 } // namespace v8 | 1751 } // namespace v8 |
| 1751 | 1752 |
| 1752 #endif // V8_PARSING_PREPARSER_H | 1753 #endif // V8_PARSING_PREPARSER_H |
| OLD | NEW |