| 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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |