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 #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 Loading... |
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 |
OLD | NEW |