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

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

Issue 2665513002: [parser] Lift template literal invalid escape restriction (Closed)
Patch Set: reintroduce DCHECK_EQ Created 3 years, 10 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/parsing/scanner.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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/parsing/scanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698