Shih-wei Liao | a8a9c34 | 2012-03-03 22:35:16 -0800 | [diff] [blame] | 1 | // Copyright 2012 Google Inc. All Rights Reserved. |
| 2 | |
| 3 | #ifndef ART_SRC_COMPILER_LLVM_RUNTIME_SUPPORT_LLVM_H_ |
| 4 | #define ART_SRC_COMPILER_LLVM_RUNTIME_SUPPORT_LLVM_H_ |
| 5 | |
| 6 | namespace art { |
| 7 | |
Shih-wei Liao | 113f4fc | 2012-03-04 14:28:35 -0800 | [diff] [blame] | 8 | //---------------------------------------------------------------------------- |
| 9 | // Thread |
| 10 | //---------------------------------------------------------------------------- |
| 11 | |
Shih-wei Liao | a8a9c34 | 2012-03-03 22:35:16 -0800 | [diff] [blame] | 12 | void art_push_shadow_frame_from_code(void* new_shadow_frame); |
| 13 | |
| 14 | void art_pop_shadow_frame_from_code(); |
| 15 | |
Shih-wei Liao | 113f4fc | 2012-03-04 14:28:35 -0800 | [diff] [blame] | 16 | |
| 17 | //---------------------------------------------------------------------------- |
| 18 | // Exception |
| 19 | //---------------------------------------------------------------------------- |
| 20 | |
Shih-wei Liao | a8a9c34 | 2012-03-03 22:35:16 -0800 | [diff] [blame] | 21 | bool art_is_exception_pending_from_code(); |
| 22 | |
Shih-wei Liao | 113f4fc | 2012-03-04 14:28:35 -0800 | [diff] [blame] | 23 | void art_throw_div_zero_from_code(); |
| 24 | |
| 25 | void art_throw_array_bounds_from_code(int32_t length, int32_t index); |
| 26 | |
| 27 | void art_throw_no_such_method_from_code(int32_t method_idx); |
| 28 | |
| 29 | void art_throw_null_pointer_exception_from_code(); |
| 30 | |
| 31 | void art_throw_stack_overflow_from_code(void*); |
| 32 | |
| 33 | void art_throw_exception_from_code(Object* exception); |
| 34 | |
| 35 | int32_t art_find_catch_block_from_code(Object* exception, int32_t dex_pc); |
| 36 | |
| 37 | |
Shih-wei Liao | a8a9c34 | 2012-03-03 22:35:16 -0800 | [diff] [blame] | 38 | void art_test_suspend_from_code(); |
| 39 | |
| 40 | void art_set_current_thread_from_code(void* thread_object_addr); |
| 41 | |
Logan Chien | 2771fb1 | 2012-03-06 16:28:35 +0800 | [diff] [blame] | 42 | |
| 43 | //---------------------------------------------------------------------------- |
| 44 | // Runtime Support Function Lookup Callback |
| 45 | //---------------------------------------------------------------------------- |
| 46 | |
| 47 | void* art_find_runtime_support_func(void* context, char const* name); |
| 48 | |
Shih-wei Liao | a8a9c34 | 2012-03-03 22:35:16 -0800 | [diff] [blame] | 49 | } // namespace art |
| 50 | |
| 51 | #endif // ART_SRC_COMPILER_LLVM_RUNTIME_SUPPORT_LLVM_H_ |