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

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

Issue 2661933003: [ESnext] Parse dynamic import expression (Closed)
Patch Set: fix 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/runtime/runtime.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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 int pos) { 752 int pos) {
753 return PreParserStatement::Default(); 753 return PreParserStatement::Default();
754 } 754 }
755 755
756 PreParserStatement NewForEachStatement(ForEachStatement::VisitMode visit_mode, 756 PreParserStatement NewForEachStatement(ForEachStatement::VisitMode visit_mode,
757 ZoneList<const AstRawString*>* labels, 757 ZoneList<const AstRawString*>* labels,
758 int pos) { 758 int pos) {
759 return PreParserStatement::Default(); 759 return PreParserStatement::Default();
760 } 760 }
761 761
762 PreParserExpression NewCallRuntime(Runtime::FunctionId id,
763 ZoneList<PreParserExpression>* arguments,
764 int pos) {
765 return PreParserExpression::Default();
766 }
767
762 // Return the object itself as AstVisitor and implement the needed 768 // Return the object itself as AstVisitor and implement the needed
763 // dummy method right in this class. 769 // dummy method right in this class.
764 PreParserFactory* visitor() { return this; } 770 PreParserFactory* visitor() { return this; }
765 int* ast_properties() { 771 int* ast_properties() {
766 static int dummy = 42; 772 static int dummy = 42;
767 return &dummy; 773 return &dummy;
768 } 774 }
769 775
770 private: 776 private:
771 AstValueFactory* ast_value_factory_; 777 AstValueFactory* ast_value_factory_;
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 function_state_->NextMaterializedLiteralIndex(); 1657 function_state_->NextMaterializedLiteralIndex();
1652 function_state_->NextMaterializedLiteralIndex(); 1658 function_state_->NextMaterializedLiteralIndex();
1653 } 1659 }
1654 return EmptyExpression(); 1660 return EmptyExpression();
1655 } 1661 }
1656 1662
1657 } // namespace internal 1663 } // namespace internal
1658 } // namespace v8 1664 } // namespace v8
1659 1665
1660 #endif // V8_PARSING_PREPARSER_H 1666 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698