blob: fb951ba24bd6f08b6772fc1d4fe0fa945de85592 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ART_SRC_COMPILER_LLVM_RUNTIME_SUPPORT_LLVM_H_
#define ART_SRC_COMPILER_LLVM_RUNTIME_SUPPORT_LLVM_H_
namespace art {
//----------------------------------------------------------------------------
// Thread
//----------------------------------------------------------------------------
void art_push_shadow_frame_from_code(void* new_shadow_frame);
void art_pop_shadow_frame_from_code();
//----------------------------------------------------------------------------
// Exception
//----------------------------------------------------------------------------
bool art_is_exception_pending_from_code();
void art_throw_div_zero_from_code();
void art_throw_array_bounds_from_code(int32_t length, int32_t index);
void art_throw_no_such_method_from_code(int32_t method_idx);
void art_throw_null_pointer_exception_from_code();
void art_throw_stack_overflow_from_code(void*);
void art_throw_exception_from_code(Object* exception);
int32_t art_find_catch_block_from_code(Object* exception, int32_t dex_pc);
void art_test_suspend_from_code();
void art_set_current_thread_from_code(void* thread_object_addr);
//----------------------------------------------------------------------------
// Runtime Support Function Lookup Callback
//----------------------------------------------------------------------------
void* art_find_runtime_support_func(void* context, char const* name);
} // namespace art
#endif // ART_SRC_COMPILER_LLVM_RUNTIME_SUPPORT_LLVM_H_
|