| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_PARSER_H_ | 5 #ifndef VM_PARSER_H_ |
| 6 #define VM_PARSER_H_ | 6 #define VM_PARSER_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 #include "lib/invocation_mirror.h" | 10 #include "lib/invocation_mirror.h" |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 // When parsing a function, this is the library in which the function | 679 // When parsing a function, this is the library in which the function |
| 680 // is defined. This can be the library in which the current_class_ is | 680 // is defined. This can be the library in which the current_class_ is |
| 681 // defined, or the library of a mixin class where the function originates. | 681 // defined, or the library of a mixin class where the function originates. |
| 682 Library& library_; | 682 Library& library_; |
| 683 | 683 |
| 684 // List of try blocks seen so far, this is used to generate inlined finally | 684 // List of try blocks seen so far, this is used to generate inlined finally |
| 685 // code at all points in the try block where an exit from the block is | 685 // code at all points in the try block where an exit from the block is |
| 686 // done using 'return', 'break' or 'continue' statements. | 686 // done using 'return', 'break' or 'continue' statements. |
| 687 TryBlocks* try_blocks_list_; | 687 TryBlocks* try_blocks_list_; |
| 688 | 688 |
| 689 // Each try in this function gets its own try index. |
| 690 intptr_t AllocateTryIndex() { return ++last_used_try_index_; } |
| 691 intptr_t last_used_try_index_; |
| 692 |
| 689 DISALLOW_COPY_AND_ASSIGN(Parser); | 693 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 690 }; | 694 }; |
| 691 | 695 |
| 692 } // namespace dart | 696 } // namespace dart |
| 693 | 697 |
| 694 #endif // VM_PARSER_H_ | 698 #endif // VM_PARSER_H_ |
| OLD | NEW |