Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: src/parsing/parser.h

Issue 2127833002: [parser] Add convenient Print function for debugging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698