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 "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/ast.h" | 9 #include "src/ast.h" |
10 #include "src/compiler.h" // For CachedDataMode | 10 #include "src/compiler.h" // For CachedDataMode |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 Expression* tag); | 878 Expression* tag); |
879 uint32_t ComputeTemplateLiteralHash(const TemplateLiteral* lit); | 879 uint32_t ComputeTemplateLiteralHash(const TemplateLiteral* lit); |
880 | 880 |
881 Scanner scanner_; | 881 Scanner scanner_; |
882 PreParser* reusable_preparser_; | 882 PreParser* reusable_preparser_; |
883 Scope* original_scope_; // for ES5 function declarations in sloppy eval | 883 Scope* original_scope_; // for ES5 function declarations in sloppy eval |
884 Target* target_stack_; // for break, continue statements | 884 Target* target_stack_; // for break, continue statements |
885 ParseData* cached_parse_data_; | 885 ParseData* cached_parse_data_; |
886 | 886 |
887 CompilationInfo* info_; | 887 CompilationInfo* info_; |
| 888 bool parsing_lazy_arrow_parameters_; // for lazily parsed arrow functions. |
888 | 889 |
889 // Pending errors. | 890 // Pending errors. |
890 bool has_pending_error_; | 891 bool has_pending_error_; |
891 Scanner::Location pending_error_location_; | 892 Scanner::Location pending_error_location_; |
892 const char* pending_error_message_; | 893 const char* pending_error_message_; |
893 const AstRawString* pending_error_arg_; | 894 const AstRawString* pending_error_arg_; |
894 const char* pending_error_char_arg_; | 895 const char* pending_error_char_arg_; |
895 bool pending_error_is_reference_error_; | 896 bool pending_error_is_reference_error_; |
896 | 897 |
897 // Other information which will be stored in Parser and moved to Isolate after | 898 // Other information which will be stored in Parser and moved to Isolate after |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 } | 991 } |
991 | 992 |
992 | 993 |
993 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, | 994 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, |
994 int start, Expression* tag) { | 995 int start, Expression* tag) { |
995 return parser_->CloseTemplateLiteral(state, start, tag); | 996 return parser_->CloseTemplateLiteral(state, start, tag); |
996 } | 997 } |
997 } } // namespace v8::internal | 998 } } // namespace v8::internal |
998 | 999 |
999 #endif // V8_PARSER_H_ | 1000 #endif // V8_PARSER_H_ |
OLD | NEW |