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_PARSER_H_ | 5 #ifndef V8_PARSING_PARSER_H_ |
6 #define V8_PARSING_PARSER_H_ | 6 #define V8_PARSING_PARSER_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/base/compiler-specific.h" | 10 #include "src/base/compiler-specific.h" |
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1129 | 1129 |
1130 PendingCompilationErrorHandler pending_error_handler_; | 1130 PendingCompilationErrorHandler pending_error_handler_; |
1131 | 1131 |
1132 // Other information which will be stored in Parser and moved to Isolate after | 1132 // Other information which will be stored in Parser and moved to Isolate after |
1133 // parsing. | 1133 // parsing. |
1134 int use_counts_[v8::Isolate::kUseCounterFeatureCount]; | 1134 int use_counts_[v8::Isolate::kUseCounterFeatureCount]; |
1135 int total_preparse_skipped_; | 1135 int total_preparse_skipped_; |
1136 bool allow_lazy_; | 1136 bool allow_lazy_; |
1137 bool temp_zoned_; | 1137 bool temp_zoned_; |
1138 ParserLogger* log_; | 1138 ParserLogger* log_; |
1139 | |
1140 PreParsedScopeData* preparsed_scope_data_; | |
vogelheim
2017/01/25 10:00:18
nitpick: forward-declare PreParsedScopeData?
(It's
marja
2017/01/25 10:21:26
Done.
| |
1139 }; | 1141 }; |
1140 | 1142 |
1141 // ---------------------------------------------------------------------------- | 1143 // ---------------------------------------------------------------------------- |
1142 // Target is a support class to facilitate manipulation of the | 1144 // Target is a support class to facilitate manipulation of the |
1143 // Parser's target_stack_ (the stack of potential 'break' and | 1145 // Parser's target_stack_ (the stack of potential 'break' and |
1144 // 'continue' statement targets). Upon construction, a new target is | 1146 // 'continue' statement targets). Upon construction, a new target is |
1145 // added; it is removed upon destruction. | 1147 // added; it is removed upon destruction. |
1146 | 1148 |
1147 class ParserTarget BASE_EMBEDDED { | 1149 class ParserTarget BASE_EMBEDDED { |
1148 public: | 1150 public: |
(...skipping 27 matching lines...) Expand all Loading... | |
1176 | 1178 |
1177 private: | 1179 private: |
1178 ParserTarget** variable_; | 1180 ParserTarget** variable_; |
1179 ParserTarget* previous_; | 1181 ParserTarget* previous_; |
1180 }; | 1182 }; |
1181 | 1183 |
1182 } // namespace internal | 1184 } // namespace internal |
1183 } // namespace v8 | 1185 } // namespace v8 |
1184 | 1186 |
1185 #endif // V8_PARSING_PARSER_H_ | 1187 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |