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

Side by Side Diff: runtime/vm/ast.h

Issue 2692803006: Track the 'awaiter return' call stack use it to detect uncaught exceptions in async functions (Closed)
Patch Set: rmacnak review Created 3 years, 9 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698