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_PARSER_H_ | 5 #ifndef V8_PARSER_H_ |
6 #define V8_PARSER_H_ | 6 #define V8_PARSER_H_ |
7 | 7 |
8 #include "allocation.h" | 8 #include "allocation.h" |
9 #include "ast.h" | 9 #include "ast.h" |
10 #include "compiler.h" // For CachedDataMode | 10 #include "compiler.h" // For CachedDataMode |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 DebuggerStatement* ParseDebuggerStatement(bool* ok); | 711 DebuggerStatement* ParseDebuggerStatement(bool* ok); |
712 | 712 |
713 // Support for hamony block scoped bindings. | 713 // Support for hamony block scoped bindings. |
714 Block* ParseScopedBlock(ZoneStringList* labels, bool* ok); | 714 Block* ParseScopedBlock(ZoneStringList* labels, bool* ok); |
715 | 715 |
716 // Initialize the components of a for-in / for-of statement. | 716 // Initialize the components of a for-in / for-of statement. |
717 void InitializeForEachStatement(ForEachStatement* stmt, | 717 void InitializeForEachStatement(ForEachStatement* stmt, |
718 Expression* each, | 718 Expression* each, |
719 Expression* subject, | 719 Expression* subject, |
720 Statement* body); | 720 Statement* body); |
| 721 Statement* DesugarLetBindingsInForStatement( |
| 722 Scope* inner_scope, ZoneStringList* names, ForStatement* loop, |
| 723 Statement* init, Expression* cond, Statement* next, Statement* body, |
| 724 bool* ok); |
721 | 725 |
722 FunctionLiteral* ParseFunctionLiteral( | 726 FunctionLiteral* ParseFunctionLiteral( |
723 Handle<String> name, | 727 Handle<String> name, |
724 Scanner::Location function_name_location, | 728 Scanner::Location function_name_location, |
725 bool name_is_strict_reserved, | 729 bool name_is_strict_reserved, |
726 bool is_generator, | 730 bool is_generator, |
727 int function_token_position, | 731 int function_token_position, |
728 FunctionLiteral::FunctionType type, | 732 FunctionLiteral::FunctionType type, |
729 bool* ok); | 733 bool* ok); |
730 | 734 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 private: | 833 private: |
830 static const int kLiteralTypeSlot = 0; | 834 static const int kLiteralTypeSlot = 0; |
831 static const int kElementsSlot = 1; | 835 static const int kElementsSlot = 1; |
832 | 836 |
833 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 837 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
834 }; | 838 }; |
835 | 839 |
836 } } // namespace v8::internal | 840 } } // namespace v8::internal |
837 | 841 |
838 #endif // V8_PARSER_H_ | 842 #endif // V8_PARSER_H_ |
OLD | NEW |