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

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

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 | « src/parsing/parser.h ('k') | no next file » | 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 #include "src/parsing/parser.h" 5 #include "src/parsing/parser.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/ast-expression-rewriter.h" 9 #include "src/ast/ast-expression-rewriter.h"
10 #include "src/ast/ast-expression-visitor.h" 10 #include "src/ast/ast-expression-visitor.h"
(...skipping 6983 matching lines...) Expand 10 before | Expand all | Expand 10 after
6994 try_block->statements()->Add(loop, zone); 6994 try_block->statements()->Add(loop, zone);
6995 6995
6996 FinalizeIteratorUse(var_completion, closing_condition, loop->iterator(), 6996 FinalizeIteratorUse(var_completion, closing_condition, loop->iterator(),
6997 try_block, target); 6997 try_block, target);
6998 final_loop = target; 6998 final_loop = target;
6999 } 6999 }
7000 7000
7001 return final_loop; 7001 return final_loop;
7002 } 7002 }
7003 7003
7004 #ifdef DEBUG
7005 void Parser::Print(AstNode* node) {
7006 ast_value_factory()->Internalize(Isolate::Current());
7007 node->Print(Isolate::Current());
7008 }
7009 #endif // DEBUG
7004 7010
7005 } // namespace internal 7011 } // namespace internal
7006 } // namespace v8 7012 } // namespace v8
OLDNEW
« no previous file with comments | « src/parsing/parser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698