diff options
Diffstat (limited to 'runtime/arch')
-rw-r--r-- | runtime/arch/arm/entrypoints_init_arm.cc | 87 | ||||
-rw-r--r-- | runtime/arch/arm64/entrypoints_init_arm64.cc | 85 | ||||
-rw-r--r-- | runtime/arch/mips/entrypoints_init_mips.cc | 81 | ||||
-rw-r--r-- | runtime/arch/x86/entrypoints_init_x86.cc | 90 | ||||
-rw-r--r-- | runtime/arch/x86_64/entrypoints_init_x86_64.cc | 90 |
5 files changed, 12 insertions, 421 deletions
diff --git a/runtime/arch/arm/entrypoints_init_arm.cc b/runtime/arch/arm/entrypoints_init_arm.cc index d7d13c2..85a0dd2 100644 --- a/runtime/arch/arm/entrypoints_init_arm.cc +++ b/runtime/arch/arm/entrypoints_init_arm.cc @@ -18,63 +18,19 @@ #include "entrypoints/jni/jni_entrypoints.h" #include "entrypoints/portable/portable_entrypoints.h" #include "entrypoints/quick/quick_alloc_entrypoints.h" +#include "entrypoints/quick/quick_default_externs.h" #include "entrypoints/quick/quick_entrypoints.h" #include "entrypoints/entrypoint_utils.h" #include "entrypoints/math_entrypoints.h" +#include "entrypoints/runtime_asm_entrypoints.h" #include "interpreter/interpreter.h" namespace art { -// Portable entrypoints. -extern "C" void art_portable_resolution_trampoline(mirror::ArtMethod*); -extern "C" void art_portable_to_interpreter_bridge(mirror::ArtMethod*); - // Cast entrypoints. extern "C" uint32_t artIsAssignableFromCode(const mirror::Class* klass, const mirror::Class* ref_class); -extern "C" void art_quick_check_cast(void*, void*); - -// DexCache entrypoints. -extern "C" void* art_quick_initialize_static_storage(uint32_t, void*); -extern "C" void* art_quick_initialize_type(uint32_t, void*); -extern "C" void* art_quick_initialize_type_and_verify_access(uint32_t, void*); -extern "C" void* art_quick_resolve_string(void*, uint32_t); - -// Field entrypoints. -extern "C" int art_quick_set8_instance(uint32_t, void*, int8_t); -extern "C" int art_quick_set8_static(uint32_t, int8_t); -extern "C" int art_quick_set16_instance(uint32_t, void*, int16_t); -extern "C" int art_quick_set16_static(uint32_t, int16_t); -extern "C" int art_quick_set32_instance(uint32_t, void*, int32_t); -extern "C" int art_quick_set32_static(uint32_t, int32_t); -extern "C" int art_quick_set64_instance(uint32_t, void*, int64_t); -extern "C" int art_quick_set64_static(uint32_t, int64_t); -extern "C" int art_quick_set_obj_instance(uint32_t, void*, void*); -extern "C" int art_quick_set_obj_static(uint32_t, void*); -extern "C" int8_t art_quick_get_byte_instance(uint32_t, void*); -extern "C" uint8_t art_quick_get_boolean_instance(uint32_t, void*); -extern "C" int8_t art_quick_get_byte_static(uint32_t); -extern "C" uint8_t art_quick_get_boolean_static(uint32_t); -extern "C" int16_t art_quick_get_short_instance(uint32_t, void*); -extern "C" uint16_t art_quick_get_char_instance(uint32_t, void*); -extern "C" int16_t art_quick_get_short_static(uint32_t); -extern "C" uint16_t art_quick_get_char_static(uint32_t); -extern "C" int32_t art_quick_get32_instance(uint32_t, void*); -extern "C" int32_t art_quick_get32_static(uint32_t); -extern "C" int64_t art_quick_get64_instance(uint32_t, void*); -extern "C" int64_t art_quick_get64_static(uint32_t); -extern "C" void* art_quick_get_obj_instance(uint32_t, void*); -extern "C" void* art_quick_get_obj_static(uint32_t); - -// Array entrypoints. -extern "C" void art_quick_aput_obj_with_null_and_bound_check(void*, uint32_t, void*); -extern "C" void art_quick_aput_obj_with_bound_check(void*, uint32_t, void*); -extern "C" void art_quick_aput_obj(void*, uint32_t, void*); -extern "C" void art_quick_handle_fill_data(void*, void*); - -// Lock entrypoints. -extern "C" void art_quick_lock_object(void*); -extern "C" void art_quick_unlock_object(void*); + // Used by soft float. // Single-precision FP arithmetics. @@ -83,8 +39,6 @@ extern "C" float fmodf(float a, float b); // REM_FLOAT[_2ADDR] extern "C" double fmod(double a, double b); // REM_DOUBLE[_2ADDR] // Used by hard float. -extern "C" int64_t art_quick_f2l(float f); // FLOAT_TO_LONG -extern "C" int64_t art_quick_d2l(double d); // DOUBLE_TO_LONG extern "C" float art_quick_fmodf(float a, float b); // REM_FLOAT[_2ADDR] extern "C" double art_quick_fmod(double a, double b); // REM_DOUBLE[_2ADDR] @@ -93,41 +47,6 @@ extern "C" int __aeabi_idivmod(int32_t, int32_t); // [DIV|REM]_INT[_2ADDR|_LIT8 // Long long arithmetics - REM_LONG[_2ADDR] and DIV_LONG[_2ADDR] extern "C" int64_t __aeabi_ldivmod(int64_t, int64_t); -extern "C" int64_t art_quick_mul_long(int64_t, int64_t); -extern "C" uint64_t art_quick_shl_long(uint64_t, uint32_t); -extern "C" uint64_t art_quick_shr_long(uint64_t, uint32_t); -extern "C" uint64_t art_quick_ushr_long(uint64_t, uint32_t); - -// Intrinsic entrypoints. -extern "C" int32_t art_quick_indexof(void*, uint32_t, uint32_t, uint32_t); -extern "C" int32_t art_quick_string_compareto(void*, void*); - -// Invoke entrypoints. -extern "C" void art_quick_imt_conflict_trampoline(mirror::ArtMethod*); -extern "C" void art_quick_resolution_trampoline(mirror::ArtMethod*); -extern "C" void art_quick_to_interpreter_bridge(mirror::ArtMethod*); -extern "C" void art_quick_invoke_direct_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_interface_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_static_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_super_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_virtual_trampoline_with_access_check(uint32_t, void*); - -// Thread entrypoints. -extern "C" void art_quick_test_suspend(); - -// Throw entrypoints. -extern "C" void art_quick_deliver_exception(void*); -extern "C" void art_quick_throw_array_bounds(int32_t index, int32_t limit); -extern "C" void art_quick_throw_div_zero(); -extern "C" void art_quick_throw_no_such_method(int32_t method_idx); -extern "C" void art_quick_throw_null_pointer_exception(); -extern "C" void art_quick_throw_stack_overflow(void*); - -// Generic JNI downcall. -extern "C" void art_quick_generic_jni_trampoline(mirror::ArtMethod*); - -// JNI resolution. -extern "C" void* art_jni_dlsym_lookup_stub(JNIEnv*, jobject); void InitEntryPoints(InterpreterEntryPoints* ipoints, JniEntryPoints* jpoints, PortableEntryPoints* ppoints, QuickEntryPoints* qpoints) { diff --git a/runtime/arch/arm64/entrypoints_init_arm64.cc b/runtime/arch/arm64/entrypoints_init_arm64.cc index 871e1d1..2d26c03 100644 --- a/runtime/arch/arm64/entrypoints_init_arm64.cc +++ b/runtime/arch/arm64/entrypoints_init_arm64.cc @@ -17,6 +17,8 @@ #include "entrypoints/interpreter/interpreter_entrypoints.h" #include "entrypoints/jni/jni_entrypoints.h" #include "entrypoints/portable/portable_entrypoints.h" +#include "entrypoints/quick/quick_alloc_entrypoints.h" +#include "entrypoints/quick/quick_default_externs.h" #include "entrypoints/quick/quick_entrypoints.h" #include "entrypoints/entrypoint_utils.h" #include "entrypoints/math_entrypoints.h" @@ -25,95 +27,16 @@ namespace art { -// Portable entrypoints. -extern "C" void art_portable_resolution_trampoline(mirror::ArtMethod*); -extern "C" void art_portable_to_interpreter_bridge(mirror::ArtMethod*); - // Cast entrypoints. extern "C" uint32_t art_quick_assignable_from_code(const mirror::Class* klass, const mirror::Class* ref_class); -extern "C" void art_quick_check_cast(void*, void*); - -// DexCache entrypoints. -extern "C" void* art_quick_initialize_static_storage(uint32_t, void*); -extern "C" void* art_quick_initialize_type(uint32_t, void*); -extern "C" void* art_quick_initialize_type_and_verify_access(uint32_t, void*); -extern "C" void* art_quick_resolve_string(void*, uint32_t); - -// Field entrypoints. -extern "C" int art_quick_set8_instance(uint32_t, void*, int8_t); -extern "C" int art_quick_set8_static(uint32_t, int8_t); -extern "C" int art_quick_set16_instance(uint32_t, void*, int16_t); -extern "C" int art_quick_set16_static(uint32_t, int16_t); -extern "C" int art_quick_set32_instance(uint32_t, void*, int32_t); -extern "C" int art_quick_set32_static(uint32_t, int32_t); -extern "C" int art_quick_set64_instance(uint32_t, void*, int64_t); -extern "C" int art_quick_set64_static(uint32_t, int64_t); -extern "C" int art_quick_set_obj_instance(uint32_t, void*, void*); -extern "C" int art_quick_set_obj_static(uint32_t, void*); -extern "C" uint8_t art_quick_get_boolean_instance(uint32_t, void*); -extern "C" int8_t art_quick_get_byte_instance(uint32_t, void*); -extern "C" uint8_t art_quick_get_boolean_static(uint32_t); -extern "C" int8_t art_quick_get_byte_static(uint32_t); -extern "C" uint16_t art_quick_get_char_instance(uint32_t, void*); -extern "C" int16_t art_quick_get_short_instance(uint32_t, void*); -extern "C" uint16_t art_quick_get_char_static(uint32_t); -extern "C" int16_t art_quick_get_short_static(uint32_t); -extern "C" int32_t art_quick_get32_instance(uint32_t, void*); -extern "C" int32_t art_quick_get32_static(uint32_t); -extern "C" int64_t art_quick_get64_instance(uint32_t, void*); -extern "C" int64_t art_quick_get64_static(uint32_t); -extern "C" void* art_quick_get_obj_instance(uint32_t, void*); -extern "C" void* art_quick_get_obj_static(uint32_t); - -// Array entrypoints. -extern "C" void art_quick_aput_obj_with_null_and_bound_check(void*, uint32_t, void*); -extern "C" void art_quick_aput_obj_with_bound_check(void*, uint32_t, void*); -extern "C" void art_quick_aput_obj(void*, uint32_t, void*); -extern "C" void art_quick_handle_fill_data(void*, void*); - -// Lock entrypoints. -extern "C" void art_quick_lock_object(void*); -extern "C" void art_quick_unlock_object(void*); // Single-precision FP arithmetics. extern "C" float art_quick_fmodf(float a, float b); // REM_FLOAT[_2ADDR] // Double-precision FP arithmetics. -extern "C" double art_quick_fmod(double a, double b); // REM_DOUBLE[_2ADDR] - -// Memcpy -extern "C" void* art_quick_memcpy(void* __restrict, const void* __restrict, size_t); - -// Intrinsic entrypoints. -extern "C" int32_t art_quick_indexof(void*, uint32_t, uint32_t, uint32_t); -extern "C" int32_t art_quick_string_compareto(void*, void*); - -// Invoke entrypoints. -extern "C" void art_quick_imt_conflict_trampoline(mirror::ArtMethod*); -extern "C" void art_quick_resolution_trampoline(mirror::ArtMethod*); -extern "C" void art_quick_to_interpreter_bridge(mirror::ArtMethod*); -extern "C" void art_quick_invoke_direct_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_interface_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_static_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_super_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_virtual_trampoline_with_access_check(uint32_t, void*); - -// Thread entrypoints. -extern "C" void art_quick_test_suspend(); - -// Throw entrypoints. -extern "C" void art_quick_deliver_exception(void*); -extern "C" void art_quick_throw_array_bounds(int32_t index, int32_t limit); -extern "C" void art_quick_throw_div_zero(); -extern "C" void art_quick_throw_no_such_method(int32_t method_idx); -extern "C" void art_quick_throw_null_pointer_exception(); -extern "C" void art_quick_throw_stack_overflow(void*); - -extern void ResetQuickAllocEntryPoints(QuickEntryPoints* qpoints); - -// Generic JNI downcall -extern "C" void art_quick_generic_jni_trampoline(mirror::ArtMethod*); +extern "C" double art_quick_fmod(double a, double b); // REM_DOUBLE[_2ADDR] + void InitEntryPoints(InterpreterEntryPoints* ipoints, JniEntryPoints* jpoints, PortableEntryPoints* ppoints, QuickEntryPoints* qpoints) { diff --git a/runtime/arch/mips/entrypoints_init_mips.cc b/runtime/arch/mips/entrypoints_init_mips.cc index db0f71f..e86aa1c 100644 --- a/runtime/arch/mips/entrypoints_init_mips.cc +++ b/runtime/arch/mips/entrypoints_init_mips.cc @@ -19,6 +19,7 @@ #include "entrypoints/jni/jni_entrypoints.h" #include "entrypoints/portable/portable_entrypoints.h" #include "entrypoints/quick/quick_alloc_entrypoints.h" +#include "entrypoints/quick/quick_default_externs.h" #include "entrypoints/quick/quick_entrypoints.h" #include "entrypoints/entrypoint_utils.h" #include "entrypoints/math_entrypoints.h" @@ -27,56 +28,9 @@ namespace art { -// Portable entrypoints. -extern "C" void art_portable_resolution_trampoline(mirror::ArtMethod*); -extern "C" void art_portable_to_interpreter_bridge(mirror::ArtMethod*); - // Cast entrypoints. extern "C" uint32_t artIsAssignableFromCode(const mirror::Class* klass, const mirror::Class* ref_class); -extern "C" void art_quick_check_cast(void*, void*); - -// DexCache entrypoints. -extern "C" void* art_quick_initialize_static_storage(uint32_t, void*); -extern "C" void* art_quick_initialize_type(uint32_t, void*); -extern "C" void* art_quick_initialize_type_and_verify_access(uint32_t, void*); -extern "C" void* art_quick_resolve_string(void*, uint32_t); - -// Field entrypoints. -extern "C" int art_quick_set8_instance(uint32_t, void*, int8_t); -extern "C" int art_quick_set8_static(uint32_t, int8_t); -extern "C" int art_quick_set16_instance(uint32_t, void*, int16_t); -extern "C" int art_quick_set16_static(uint32_t, int16_t); -extern "C" int art_quick_set32_instance(uint32_t, void*, int32_t); -extern "C" int art_quick_set32_static(uint32_t, int32_t); -extern "C" int art_quick_set64_instance(uint32_t, void*, int64_t); -extern "C" int art_quick_set64_static(uint32_t, int64_t); -extern "C" int art_quick_set_obj_instance(uint32_t, void*, void*); -extern "C" int art_quick_set_obj_static(uint32_t, void*); -extern "C" uint8_t art_quick_get_boolean_instance(uint32_t, void*); -extern "C" int8_t art_quick_get_byte_instance(uint32_t, void*); -extern "C" uint8_t art_quick_get_boolean_static(uint32_t); -extern "C" int8_t art_quick_get_byte_static(uint32_t); -extern "C" uint16_t art_quick_get_char_instance(uint32_t, void*); -extern "C" int16_t art_quick_get_short_instance(uint32_t, void*); -extern "C" uint16_t art_quick_get_char_static(uint32_t); -extern "C" int16_t art_quick_get_short_static(uint32_t); -extern "C" int32_t art_quick_get32_instance(uint32_t, void*); -extern "C" int32_t art_quick_get32_static(uint32_t); -extern "C" int64_t art_quick_get64_instance(uint32_t, void*); -extern "C" int64_t art_quick_get64_static(uint32_t); -extern "C" void* art_quick_get_obj_instance(uint32_t, void*); -extern "C" void* art_quick_get_obj_static(uint32_t); - -// Array entrypoints. -extern "C" void art_quick_aput_obj_with_null_and_bound_check(void*, uint32_t, void*); -extern "C" void art_quick_aput_obj_with_bound_check(void*, uint32_t, void*); -extern "C" void art_quick_aput_obj(void*, uint32_t, void*); -extern "C" void art_quick_handle_fill_data(void*, void*); - -// Lock entrypoints. -extern "C" void art_quick_lock_object(void*); -extern "C" void art_quick_unlock_object(void*); // Math entrypoints. extern int32_t CmpgDouble(double a, double b); @@ -104,39 +58,6 @@ extern "C" double fmod(double a, double b); // REM_DOUBLE[_2ADDR] // Long long arithmetics - REM_LONG[_2ADDR] and DIV_LONG[_2ADDR] extern "C" int64_t __divdi3(int64_t, int64_t); extern "C" int64_t __moddi3(int64_t, int64_t); -extern "C" uint64_t art_quick_shl_long(uint64_t, uint32_t); -extern "C" uint64_t art_quick_shr_long(uint64_t, uint32_t); -extern "C" uint64_t art_quick_ushr_long(uint64_t, uint32_t); - -// Intrinsic entrypoints. -extern "C" int32_t art_quick_indexof(void*, uint32_t, uint32_t, uint32_t); -extern "C" int32_t art_quick_string_compareto(void*, void*); - -// Invoke entrypoints. -extern "C" void art_quick_imt_conflict_trampoline(mirror::ArtMethod*); -extern "C" void art_quick_resolution_trampoline(mirror::ArtMethod*); -extern "C" void art_quick_to_interpreter_bridge(mirror::ArtMethod*); -extern "C" void art_quick_invoke_direct_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_interface_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_static_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_super_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_virtual_trampoline_with_access_check(uint32_t, void*); - -// Thread entrypoints. -extern "C" void art_quick_test_suspend(); - -// Throw entrypoints. -extern "C" void art_quick_deliver_exception(void*); -extern "C" void art_quick_throw_array_bounds(int32_t index, int32_t limit); -extern "C" void art_quick_throw_div_zero(); -extern "C" void art_quick_throw_no_such_method(int32_t method_idx); -extern "C" void art_quick_throw_null_pointer_exception(); -extern "C" void art_quick_throw_stack_overflow(void*); - -// Generic JNI downcall -extern "C" void art_quick_generic_jni_trampoline(mirror::ArtMethod*); - -extern void ResetQuickAllocEntryPoints(QuickEntryPoints* qpoints); void InitEntryPoints(InterpreterEntryPoints* ipoints, JniEntryPoints* jpoints, PortableEntryPoints* ppoints, QuickEntryPoints* qpoints) { diff --git a/runtime/arch/x86/entrypoints_init_x86.cc b/runtime/arch/x86/entrypoints_init_x86.cc index f2b91cd..48d6c80 100644 --- a/runtime/arch/x86/entrypoints_init_x86.cc +++ b/runtime/arch/x86/entrypoints_init_x86.cc @@ -18,102 +18,16 @@ #include "entrypoints/jni/jni_entrypoints.h" #include "entrypoints/portable/portable_entrypoints.h" #include "entrypoints/quick/quick_alloc_entrypoints.h" +#include "entrypoints/quick/quick_default_externs.h" #include "entrypoints/quick/quick_entrypoints.h" #include "entrypoints/runtime_asm_entrypoints.h" #include "interpreter/interpreter.h" namespace art { -// Portable entrypoints. -extern "C" void art_portable_resolution_trampoline(mirror::ArtMethod*); -extern "C" void art_portable_to_interpreter_bridge(mirror::ArtMethod*); - // Cast entrypoints. extern "C" uint32_t art_quick_is_assignable(const mirror::Class* klass, - const mirror::Class* ref_class); -extern "C" void art_quick_check_cast(void*, void*); - -// DexCache entrypoints. -extern "C" void* art_quick_initialize_static_storage(uint32_t, void*); -extern "C" void* art_quick_initialize_type(uint32_t, void*); -extern "C" void* art_quick_initialize_type_and_verify_access(uint32_t, void*); -extern "C" void* art_quick_resolve_string(void*, uint32_t); - -// Field entrypoints. -extern "C" int art_quick_set8_instance(uint32_t, void*, int8_t); -extern "C" int art_quick_set8_static(uint32_t, int8_t); -extern "C" int art_quick_set16_instance(uint32_t, void*, int16_t); -extern "C" int art_quick_set16_static(uint32_t, int16_t); -extern "C" int art_quick_set32_instance(uint32_t, void*, int32_t); -extern "C" int art_quick_set32_static(uint32_t, int32_t); -extern "C" int art_quick_set64_instance(uint32_t, void*, int64_t); -extern "C" int art_quick_set64_static(uint32_t, int64_t); -extern "C" int art_quick_set_obj_instance(uint32_t, void*, void*); -extern "C" int art_quick_set_obj_static(uint32_t, void*); -extern "C" int8_t art_quick_get_byte_instance(uint32_t, void*); -extern "C" uint8_t art_quick_get_boolean_instance(uint32_t, void*); -extern "C" int8_t art_quick_get_byte_static(uint32_t); -extern "C" uint8_t art_quick_get_boolean_static(uint32_t); -extern "C" int16_t art_quick_get_short_instance(uint32_t, void*); -extern "C" uint16_t art_quick_get_char_instance(uint32_t, void*); -extern "C" int16_t art_quick_get_short_static(uint32_t); -extern "C" uint16_t art_quick_get_char_static(uint32_t); -extern "C" int32_t art_quick_get32_instance(uint32_t, void*); -extern "C" int32_t art_quick_get32_static(uint32_t); -extern "C" int64_t art_quick_get64_instance(uint32_t, void*); -extern "C" int64_t art_quick_get64_static(uint32_t); -extern "C" void* art_quick_get_obj_instance(uint32_t, void*); -extern "C" void* art_quick_get_obj_static(uint32_t); - -// Array entrypoints. -extern "C" void art_quick_aput_obj_with_null_and_bound_check(void*, uint32_t, void*); -extern "C" void art_quick_aput_obj_with_bound_check(void*, uint32_t, void*); -extern "C" void art_quick_aput_obj(void*, uint32_t, void*); -extern "C" void art_quick_handle_fill_data(void*, void*); - -// Lock entrypoints. -extern "C" void art_quick_lock_object(void*); -extern "C" void art_quick_unlock_object(void*); - -// Math entrypoints. -extern "C" int64_t art_quick_d2l(double); -extern "C" int64_t art_quick_f2l(float); -extern "C" int64_t art_quick_ldiv(int64_t, int64_t); -extern "C" int64_t art_quick_lmod(int64_t, int64_t); -extern "C" int64_t art_quick_lmul(int64_t, int64_t); -extern "C" uint64_t art_quick_lshl(uint64_t, uint32_t); -extern "C" uint64_t art_quick_lshr(uint64_t, uint32_t); -extern "C" uint64_t art_quick_lushr(uint64_t, uint32_t); - -// Intrinsic entrypoints. -extern "C" int32_t art_quick_string_compareto(void*, void*); -extern "C" void* art_quick_memcpy(void*, const void*, size_t); - -// Invoke entrypoints. -extern "C" void art_quick_imt_conflict_trampoline(mirror::ArtMethod*); -extern "C" void art_quick_resolution_trampoline(mirror::ArtMethod*); -extern "C" void art_quick_to_interpreter_bridge(mirror::ArtMethod*); -extern "C" void art_quick_invoke_direct_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_interface_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_static_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_super_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_virtual_trampoline_with_access_check(uint32_t, void*); - -// Thread entrypoints. -extern "C" void art_quick_test_suspend(); - -// Throw entrypoints. -extern "C" void art_quick_deliver_exception(void*); -extern "C" void art_quick_throw_array_bounds(int32_t index, int32_t limit); -extern "C" void art_quick_throw_div_zero(); -extern "C" void art_quick_throw_no_such_method(int32_t method_idx); -extern "C" void art_quick_throw_null_pointer_exception(); -extern "C" void art_quick_throw_stack_overflow(void*); - -// Generic JNI downcall -extern "C" void art_quick_generic_jni_trampoline(mirror::ArtMethod*); - -extern void ResetQuickAllocEntryPoints(QuickEntryPoints* qpoints); + const mirror::Class* ref_class); void InitEntryPoints(InterpreterEntryPoints* ipoints, JniEntryPoints* jpoints, PortableEntryPoints* ppoints, QuickEntryPoints* qpoints) { diff --git a/runtime/arch/x86_64/entrypoints_init_x86_64.cc b/runtime/arch/x86_64/entrypoints_init_x86_64.cc index 1661554..a2766f7 100644 --- a/runtime/arch/x86_64/entrypoints_init_x86_64.cc +++ b/runtime/arch/x86_64/entrypoints_init_x86_64.cc @@ -18,6 +18,7 @@ #include "entrypoints/jni/jni_entrypoints.h" #include "entrypoints/portable/portable_entrypoints.h" #include "entrypoints/quick/quick_alloc_entrypoints.h" +#include "entrypoints/quick/quick_default_externs.h" #include "entrypoints/quick/quick_entrypoints.h" #include "entrypoints/math_entrypoints.h" #include "entrypoints/runtime_asm_entrypoints.h" @@ -25,96 +26,9 @@ namespace art { -// Portable entrypoints. -extern "C" void art_portable_resolution_trampoline(mirror::ArtMethod*); -extern "C" void art_portable_to_interpreter_bridge(mirror::ArtMethod*); - // Cast entrypoints. extern "C" uint32_t art_quick_assignable_from_code(const mirror::Class* klass, - const mirror::Class* ref_class); -extern "C" void art_quick_check_cast(void*, void*); - -// DexCache entrypoints. -extern "C" void* art_quick_initialize_static_storage(uint32_t, void*); -extern "C" void* art_quick_initialize_type(uint32_t, void*); -extern "C" void* art_quick_initialize_type_and_verify_access(uint32_t, void*); -extern "C" void* art_quick_resolve_string(void*, uint32_t); - -// Field entrypoints. -extern "C" int art_quick_set8_instance(uint32_t, void*, int8_t); -extern "C" int art_quick_set8_static(uint32_t, int8_t); -extern "C" int art_quick_set16_instance(uint32_t, void*, int16_t); -extern "C" int art_quick_set16_static(uint32_t, int16_t); -extern "C" int art_quick_set32_instance(uint32_t, void*, int32_t); -extern "C" int art_quick_set32_static(uint32_t, int32_t); -extern "C" int art_quick_set64_instance(uint32_t, void*, int64_t); -extern "C" int art_quick_set64_static(uint32_t, int64_t); -extern "C" int art_quick_set_obj_instance(uint32_t, void*, void*); -extern "C" int art_quick_set_obj_static(uint32_t, void*); -extern "C" int8_t art_quick_get_byte_instance(uint32_t, void*); -extern "C" uint8_t art_quick_get_boolean_instance(uint32_t, void*); -extern "C" int8_t art_quick_get_byte_static(uint32_t); -extern "C" uint8_t art_quick_get_boolean_static(uint32_t); -extern "C" int16_t art_quick_get_short_instance(uint32_t, void*); -extern "C" uint16_t art_quick_get_char_instance(uint32_t, void*); -extern "C" int16_t art_quick_get_short_static(uint32_t); -extern "C" uint16_t art_quick_get_char_static(uint32_t); -extern "C" int32_t art_quick_get32_instance(uint32_t, void*); -extern "C" int32_t art_quick_get32_static(uint32_t); -extern "C" int64_t art_quick_get64_instance(uint32_t, void*); -extern "C" int64_t art_quick_get64_static(uint32_t); -extern "C" void* art_quick_get_obj_instance(uint32_t, void*); -extern "C" void* art_quick_get_obj_static(uint32_t); - -// Array entrypoints. -extern "C" void art_quick_aput_obj_with_null_and_bound_check(void*, uint32_t, void*); -extern "C" void art_quick_aput_obj_with_bound_check(void*, uint32_t, void*); -extern "C" void art_quick_aput_obj(void*, uint32_t, void*); -extern "C" void art_quick_handle_fill_data(void*, void*); - -// Lock entrypoints. -extern "C" void art_quick_lock_object(void*); -extern "C" void art_quick_unlock_object(void*); - -// Math entrypoints. -extern "C" int64_t art_quick_d2l(double); -extern "C" int64_t art_quick_f2l(float); -extern "C" int64_t art_quick_ldiv(int64_t, int64_t); -extern "C" int64_t art_quick_lmod(int64_t, int64_t); -extern "C" int64_t art_quick_lmul(int64_t, int64_t); -extern "C" uint64_t art_quick_lshl(uint64_t, uint32_t); -extern "C" uint64_t art_quick_lshr(uint64_t, uint32_t); -extern "C" uint64_t art_quick_lushr(uint64_t, uint32_t); - -// Intrinsic entrypoints. -extern "C" int32_t art_quick_string_compareto(void*, void*); -extern "C" void* art_quick_memcpy(void*, const void*, size_t); - -// Invoke entrypoints. -extern "C" void art_quick_imt_conflict_trampoline(mirror::ArtMethod*); -extern "C" void art_quick_resolution_trampoline(mirror::ArtMethod*); -extern "C" void art_quick_to_interpreter_bridge(mirror::ArtMethod*); -extern "C" void art_quick_invoke_direct_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_interface_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_static_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_super_trampoline_with_access_check(uint32_t, void*); -extern "C" void art_quick_invoke_virtual_trampoline_with_access_check(uint32_t, void*); - -// Thread entrypoints. -extern "C" void art_quick_test_suspend(); - -// Throw entrypoints. -extern "C" void art_quick_deliver_exception(void*); -extern "C" void art_quick_throw_array_bounds(int32_t index, int32_t limit); -extern "C" void art_quick_throw_div_zero(); -extern "C" void art_quick_throw_no_such_method(int32_t method_idx); -extern "C" void art_quick_throw_null_pointer_exception(); -extern "C" void art_quick_throw_stack_overflow(void*); - -// Generic JNI entrypoint -extern "C" void art_quick_generic_jni_trampoline(mirror::ArtMethod*); - -extern void ResetQuickAllocEntryPoints(QuickEntryPoints* qpoints); + const mirror::Class* ref_class); void InitEntryPoints(InterpreterEntryPoints* ipoints, JniEntryPoints* jpoints, PortableEntryPoints* ppoints, QuickEntryPoints* qpoints) { |