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 RUNTIME_VM_AST_H_ | 5 #ifndef RUNTIME_VM_AST_H_ |
6 #define RUNTIME_VM_AST_H_ | 6 #define RUNTIME_VM_AST_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
(...skipping 1783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1794 LocalScope* scope_; | 1794 LocalScope* scope_; |
1795 const bool link_lazily_; | 1795 const bool link_lazily_; |
1796 | 1796 |
1797 DISALLOW_IMPLICIT_CONSTRUCTORS(NativeBodyNode); | 1797 DISALLOW_IMPLICIT_CONSTRUCTORS(NativeBodyNode); |
1798 }; | 1798 }; |
1799 | 1799 |
1800 | 1800 |
1801 class CatchClauseNode : public AstNode { | 1801 class CatchClauseNode : public AstNode { |
1802 public: | 1802 public: |
1803 static const intptr_t kInvalidTryIndex = -1; | 1803 static const intptr_t kInvalidTryIndex = -1; |
| 1804 static const intptr_t kImplicitAsyncTryIndex = 0; |
1804 | 1805 |
1805 CatchClauseNode(TokenPosition token_pos, | 1806 CatchClauseNode(TokenPosition token_pos, |
1806 SequenceNode* catch_block, | 1807 SequenceNode* catch_block, |
1807 const Array& handler_types, | 1808 const Array& handler_types, |
1808 const LocalVariable* context_var, | 1809 const LocalVariable* context_var, |
1809 const LocalVariable* exception_var, | 1810 const LocalVariable* exception_var, |
1810 const LocalVariable* stacktrace_var, | 1811 const LocalVariable* stacktrace_var, |
1811 const LocalVariable* rethrow_exception_var, | 1812 const LocalVariable* rethrow_exception_var, |
1812 const LocalVariable* rethrow_stacktrace_var, | 1813 const LocalVariable* rethrow_stacktrace_var, |
1813 intptr_t catch_handler_index, | 1814 intptr_t catch_handler_index, |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1974 const intptr_t try_index_; | 1975 const intptr_t try_index_; |
1975 | 1976 |
1976 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); | 1977 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); |
1977 }; | 1978 }; |
1978 | 1979 |
1979 } // namespace dart | 1980 } // namespace dart |
1980 | 1981 |
1981 #undef DECLARE_COMMON_NODE_FUNCTIONS | 1982 #undef DECLARE_COMMON_NODE_FUNCTIONS |
1982 | 1983 |
1983 #endif // RUNTIME_VM_AST_H_ | 1984 #endif // RUNTIME_VM_AST_H_ |
OLD | NEW |