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

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

Issue 2703563002: [ESNext] Implement DynamicImportCall (Closed)
Patch Set: add test + comments Created 3 years, 9 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
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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 int pos) { 768 int pos) {
769 return PreParserStatement::Default(); 769 return PreParserStatement::Default();
770 } 770 }
771 771
772 PreParserExpression NewCallRuntime(Runtime::FunctionId id, 772 PreParserExpression NewCallRuntime(Runtime::FunctionId id,
773 ZoneList<PreParserExpression>* arguments, 773 ZoneList<PreParserExpression>* arguments,
774 int pos) { 774 int pos) {
775 return PreParserExpression::Default(); 775 return PreParserExpression::Default();
776 } 776 }
777 777
778 PreParserExpression NewImportCallExpression(PreParserExpression args,
779 int pos) {
780 return PreParserExpression::Default();
781 }
782
778 // Return the object itself as AstVisitor and implement the needed 783 // Return the object itself as AstVisitor and implement the needed
779 // dummy method right in this class. 784 // dummy method right in this class.
780 PreParserFactory* visitor() { return this; } 785 PreParserFactory* visitor() { return this; }
781 int* ast_properties() { 786 int* ast_properties() {
782 static int dummy = 42; 787 static int dummy = 42;
783 return &dummy; 788 return &dummy;
784 } 789 }
785 790
786 private: 791 private:
787 AstValueFactory* ast_value_factory_; 792 AstValueFactory* ast_value_factory_;
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
1678 PreParserExpression PreParser::CloseTemplateLiteral(TemplateLiteralState* state, 1683 PreParserExpression PreParser::CloseTemplateLiteral(TemplateLiteralState* state,
1679 int start, 1684 int start,
1680 PreParserExpression tag) { 1685 PreParserExpression tag) {
1681 return EmptyExpression(); 1686 return EmptyExpression();
1682 } 1687 }
1683 1688
1684 } // namespace internal 1689 } // namespace internal
1685 } // namespace v8 1690 } // namespace v8
1686 1691
1687 #endif // V8_PARSING_PREPARSER_H 1692 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« include/v8.h ('K') | « src/parsing/pattern-rewriter.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698