1 | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
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. |
4 | |
5 | #ifndef RUNTIME_LIB_STACKTRACE_H_ |
6 | #define RUNTIME_LIB_STACKTRACE_H_ |
7 | |
8 | #include "vm/tagged_pointer.h" |
9 | |
10 | namespace dart { |
11 | |
12 | class StackTrace; |
13 | |
14 | // Creates a StackTrace object from the current stack. Skips the |
15 | // first skip_frames Dart frames. |
16 | // |
17 | // This function is exposed to provide stack trace printing in |
18 | // assertion failures, etc. |
19 | const StackTrace& GetCurrentStackTrace(int skip_frames); |
20 | |
21 | // Creates a StackTrace object to be attached to an exception. |
22 | StackTracePtr GetStackTraceForException(); |
23 | |
24 | } // namespace dart |
25 | |
26 | #endif // RUNTIME_LIB_STACKTRACE_H_ |
27 | |