| 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 VM_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
| 6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
| (...skipping 2810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2821 void GetHandlerInfo(intptr_t try_index, | 2821 void GetHandlerInfo(intptr_t try_index, |
| 2822 RawExceptionHandlers::HandlerInfo* info) const; | 2822 RawExceptionHandlers::HandlerInfo* info) const; |
| 2823 | 2823 |
| 2824 intptr_t HandlerPC(intptr_t try_index) const; | 2824 intptr_t HandlerPC(intptr_t try_index) const; |
| 2825 intptr_t OuterTryIndex(intptr_t try_index) const; | 2825 intptr_t OuterTryIndex(intptr_t try_index) const; |
| 2826 bool NeedsStacktrace(intptr_t try_index) const; | 2826 bool NeedsStacktrace(intptr_t try_index) const; |
| 2827 | 2827 |
| 2828 void SetHandlerInfo(intptr_t try_index, | 2828 void SetHandlerInfo(intptr_t try_index, |
| 2829 intptr_t outer_try_index, | 2829 intptr_t outer_try_index, |
| 2830 intptr_t handler_pc, | 2830 intptr_t handler_pc, |
| 2831 bool needs_stacktrace) const; | 2831 bool needs_stacktrace, |
| 2832 bool has_catch_all) const; |
| 2832 | 2833 |
| 2833 RawArray* GetHandledTypes(intptr_t try_index) const; | 2834 RawArray* GetHandledTypes(intptr_t try_index) const; |
| 2834 void SetHandledTypes(intptr_t try_index, const Array& handled_types) const; | 2835 void SetHandledTypes(intptr_t try_index, const Array& handled_types) const; |
| 2835 bool HasCatchAll(intptr_t try_index) const; | 2836 bool HasCatchAll(intptr_t try_index) const; |
| 2836 | 2837 |
| 2837 static intptr_t InstanceSize() { | 2838 static intptr_t InstanceSize() { |
| 2838 ASSERT(sizeof(RawExceptionHandlers) == OFFSET_OF(RawExceptionHandlers, | 2839 ASSERT(sizeof(RawExceptionHandlers) == OFFSET_OF(RawExceptionHandlers, |
| 2839 data_)); | 2840 data_)); |
| 2840 return 0; | 2841 return 0; |
| 2841 } | 2842 } |
| (...skipping 3307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6149 | 6150 |
| 6150 | 6151 |
| 6151 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6152 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6152 intptr_t index) { | 6153 intptr_t index) { |
| 6153 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6154 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6154 } | 6155 } |
| 6155 | 6156 |
| 6156 } // namespace dart | 6157 } // namespace dart |
| 6157 | 6158 |
| 6158 #endif // VM_OBJECT_H_ | 6159 #endif // VM_OBJECT_H_ |
| OLD | NEW |