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/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 | 1110 |
1111 PendingCompilationErrorHandler pending_error_handler_; | 1111 PendingCompilationErrorHandler pending_error_handler_; |
1112 | 1112 |
1113 // Other information which will be stored in Parser and moved to Isolate after | 1113 // Other information which will be stored in Parser and moved to Isolate after |
1114 // parsing. | 1114 // parsing. |
1115 int use_counts_[v8::Isolate::kUseCounterFeatureCount]; | 1115 int use_counts_[v8::Isolate::kUseCounterFeatureCount]; |
1116 int total_preparse_skipped_; | 1116 int total_preparse_skipped_; |
1117 HistogramTimer* pre_parse_timer_; | 1117 HistogramTimer* pre_parse_timer_; |
1118 | 1118 |
1119 bool parsing_on_main_thread_; | 1119 bool parsing_on_main_thread_; |
| 1120 |
| 1121 #ifdef DEBUG |
| 1122 void Print(AstNode* node); |
| 1123 #endif // DEBUG |
1120 }; | 1124 }; |
1121 | 1125 |
1122 | 1126 |
1123 bool ParserTraits::IsFutureStrictReserved( | 1127 bool ParserTraits::IsFutureStrictReserved( |
1124 const AstRawString* identifier) const { | 1128 const AstRawString* identifier) const { |
1125 return parser_->scanner()->IdentifierIsFutureStrictReserved(identifier); | 1129 return parser_->scanner()->IdentifierIsFutureStrictReserved(identifier); |
1126 } | 1130 } |
1127 | 1131 |
1128 | 1132 |
1129 Scope* ParserTraits::NewScope(Scope* parent_scope, ScopeType scope_type, | 1133 Scope* ParserTraits::NewScope(Scope* parent_scope, ScopeType scope_type, |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1294 | 1298 |
1295 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1299 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1296 return parser_->ParseDoExpression(ok); | 1300 return parser_->ParseDoExpression(ok); |
1297 } | 1301 } |
1298 | 1302 |
1299 | 1303 |
1300 } // namespace internal | 1304 } // namespace internal |
1301 } // namespace v8 | 1305 } // namespace v8 |
1302 | 1306 |
1303 #endif // V8_PARSING_PARSER_H_ | 1307 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |