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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1677 PreParserExpression PreParser::CloseTemplateLiteral(TemplateLiteralState* state, | 1682 PreParserExpression PreParser::CloseTemplateLiteral(TemplateLiteralState* state, |
1678 int start, | 1683 int start, |
1679 PreParserExpression tag) { | 1684 PreParserExpression tag) { |
1680 return EmptyExpression(); | 1685 return EmptyExpression(); |
1681 } | 1686 } |
1682 | 1687 |
1683 } // namespace internal | 1688 } // namespace internal |
1684 } // namespace v8 | 1689 } // namespace v8 |
1685 | 1690 |
1686 #endif // V8_PARSING_PREPARSER_H | 1691 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |