| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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_EXCEPTIONS_H_ | 5 #ifndef RUNTIME_VM_EXCEPTIONS_H_ |
| 6 #define RUNTIME_VM_EXCEPTIONS_H_ | 6 #define RUNTIME_VM_EXCEPTIONS_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/token_position.h" | 9 #include "vm/token_position.h" |
| 10 | 10 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 DISALLOW_COPY_AND_ASSIGN(Exceptions); | 90 DISALLOW_COPY_AND_ASSIGN(Exceptions); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 // The index into the ExceptionHandlers table corresponds to | 93 // The index into the ExceptionHandlers table corresponds to |
| 94 // the try_index of the handler. | 94 // the try_index of the handler. |
| 95 struct ExceptionHandlerInfo { | 95 struct ExceptionHandlerInfo { |
| 96 uint32_t handler_pc_offset; // PC offset value of handler. | 96 uint32_t handler_pc_offset; // PC offset value of handler. |
| 97 int16_t outer_try_index; // Try block index of enclosing try block. | 97 int16_t outer_try_index; // Try block index of enclosing try block. |
| 98 int8_t needs_stacktrace; // True if a stacktrace is needed. | 98 int8_t needs_stacktrace; // True if a stacktrace is needed. |
| 99 int8_t has_catch_all; // Catches all exceptions. | 99 int8_t has_catch_all; // Catches all exceptions. |
| 100 int8_t is_generated; // True if this is a generated handler. |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } // namespace dart | 103 } // namespace dart |
| 103 | 104 |
| 104 #endif // RUNTIME_VM_EXCEPTIONS_H_ | 105 #endif // RUNTIME_VM_EXCEPTIONS_H_ |
| OLD | NEW |