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