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 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 | 1138 |
1139 ScriptCompiler::CompileOptions compile_options_; | 1139 ScriptCompiler::CompileOptions compile_options_; |
1140 ParseData* cached_parse_data_; | 1140 ParseData* cached_parse_data_; |
1141 | 1141 |
1142 PendingCompilationErrorHandler pending_error_handler_; | 1142 PendingCompilationErrorHandler pending_error_handler_; |
1143 | 1143 |
1144 // Other information which will be stored in Parser and moved to Isolate after | 1144 // Other information which will be stored in Parser and moved to Isolate after |
1145 // parsing. | 1145 // parsing. |
1146 int use_counts_[v8::Isolate::kUseCounterFeatureCount]; | 1146 int use_counts_[v8::Isolate::kUseCounterFeatureCount]; |
1147 int total_preparse_skipped_; | 1147 int total_preparse_skipped_; |
1148 bool parsing_on_main_thread_; | |
1149 bool allow_lazy_; | 1148 bool allow_lazy_; |
1150 ParserLogger* log_; | 1149 ParserLogger* log_; |
1151 }; | 1150 }; |
1152 | 1151 |
1153 // ---------------------------------------------------------------------------- | 1152 // ---------------------------------------------------------------------------- |
1154 // Target is a support class to facilitate manipulation of the | 1153 // Target is a support class to facilitate manipulation of the |
1155 // Parser's target_stack_ (the stack of potential 'break' and | 1154 // Parser's target_stack_ (the stack of potential 'break' and |
1156 // 'continue' statement targets). Upon construction, a new target is | 1155 // 'continue' statement targets). Upon construction, a new target is |
1157 // added; it is removed upon destruction. | 1156 // added; it is removed upon destruction. |
1158 | 1157 |
(...skipping 29 matching lines...) Expand all Loading... |
1188 | 1187 |
1189 private: | 1188 private: |
1190 ParserTarget** variable_; | 1189 ParserTarget** variable_; |
1191 ParserTarget* previous_; | 1190 ParserTarget* previous_; |
1192 }; | 1191 }; |
1193 | 1192 |
1194 } // namespace internal | 1193 } // namespace internal |
1195 } // namespace v8 | 1194 } // namespace v8 |
1196 | 1195 |
1197 #endif // V8_PARSING_PARSER_H_ | 1196 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |