Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 17 | #include "atomic.h" |
Mingyao Yang | 98d1cc8 | 2014-05-15 17:02:16 -0700 | [diff] [blame] | 18 | #include "entrypoints/jni/jni_entrypoints.h" |
Mathieu Chartier | d889178 | 2014-03-02 13:28:37 -0800 | [diff] [blame] | 19 | #include "entrypoints/quick/quick_alloc_entrypoints.h" |
Andreas Gampe | e179456 | 2014-11-04 22:26:32 -0800 | [diff] [blame] | 20 | #include "entrypoints/quick/quick_default_externs.h" |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 21 | #include "entrypoints/quick/quick_entrypoints.h" |
| 22 | #include "entrypoints/entrypoint_utils.h" |
| 23 | #include "entrypoints/math_entrypoints.h" |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 24 | #include "entrypoints/runtime_asm_entrypoints.h" |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 25 | #include "entrypoints_direct_mips.h" |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 26 | #include "interpreter/interpreter.h" |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 27 | |
| 28 | namespace art { |
| 29 | |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 30 | // Cast entrypoints. |
| 31 | extern "C" uint32_t artIsAssignableFromCode(const mirror::Class* klass, |
| 32 | const mirror::Class* ref_class); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 33 | |
| 34 | // Math entrypoints. |
| 35 | extern int32_t CmpgDouble(double a, double b); |
| 36 | extern int32_t CmplDouble(double a, double b); |
| 37 | extern int32_t CmpgFloat(float a, float b); |
| 38 | extern int32_t CmplFloat(float a, float b); |
Ian Rogers | a9a8254 | 2013-10-04 11:17:26 -0700 | [diff] [blame] | 39 | extern "C" int64_t artLmul(int64_t a, int64_t b); |
| 40 | extern "C" int64_t artLdiv(int64_t a, int64_t b); |
| 41 | extern "C" int64_t artLmod(int64_t a, int64_t b); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 42 | |
| 43 | // Math conversions. |
| 44 | extern "C" int32_t __fixsfsi(float op1); // FLOAT_TO_INT |
| 45 | extern "C" int32_t __fixdfsi(double op1); // DOUBLE_TO_INT |
| 46 | extern "C" float __floatdisf(int64_t op1); // LONG_TO_FLOAT |
| 47 | extern "C" double __floatdidf(int64_t op1); // LONG_TO_DOUBLE |
| 48 | extern "C" int64_t __fixsfdi(float op1); // FLOAT_TO_LONG |
| 49 | extern "C" int64_t __fixdfdi(double op1); // DOUBLE_TO_LONG |
| 50 | |
| 51 | // Single-precision FP arithmetics. |
| 52 | extern "C" float fmodf(float a, float b); // REM_FLOAT[_2ADDR] |
| 53 | |
| 54 | // Double-precision FP arithmetics. |
| 55 | extern "C" double fmod(double a, double b); // REM_DOUBLE[_2ADDR] |
| 56 | |
| 57 | // Long long arithmetics - REM_LONG[_2ADDR] and DIV_LONG[_2ADDR] |
| 58 | extern "C" int64_t __divdi3(int64_t, int64_t); |
| 59 | extern "C" int64_t __moddi3(int64_t, int64_t); |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 60 | |
Andreas Gampe | 3cfa4d0 | 2015-10-06 17:04:01 -0700 | [diff] [blame] | 61 | void InitEntryPoints(JniEntryPoints* jpoints, QuickEntryPoints* qpoints) { |
Andreas Gampe | c7ed09b | 2016-04-25 20:08:55 -0700 | [diff] [blame] | 62 | // Note: MIPS has asserts checking for the type of entrypoint. Don't move it |
| 63 | // to InitDefaultEntryPoints(). |
| 64 | |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 65 | // JNI |
| 66 | jpoints->pDlsymLookup = art_jni_dlsym_lookup_stub; |
| 67 | |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 68 | // Alloc |
Hiroshi Yamauchi | 3b4c189 | 2013-09-12 21:33:12 -0700 | [diff] [blame] | 69 | ResetQuickAllocEntryPoints(qpoints); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 70 | |
| 71 | // Cast |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 72 | qpoints->pInstanceofNonTrivial = artIsAssignableFromCode; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 73 | static_assert(IsDirectEntrypoint(kQuickInstanceofNonTrivial), "Direct C stub not marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 74 | qpoints->pCheckCast = art_quick_check_cast; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 75 | static_assert(!IsDirectEntrypoint(kQuickCheckCast), "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 76 | |
| 77 | // DexCache |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 78 | qpoints->pInitializeStaticStorage = art_quick_initialize_static_storage; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 79 | static_assert(!IsDirectEntrypoint(kQuickInitializeStaticStorage), |
| 80 | "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 81 | qpoints->pInitializeTypeAndVerifyAccess = art_quick_initialize_type_and_verify_access; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 82 | static_assert(!IsDirectEntrypoint(kQuickInitializeTypeAndVerifyAccess), |
| 83 | "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 84 | qpoints->pInitializeType = art_quick_initialize_type; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 85 | static_assert(!IsDirectEntrypoint(kQuickInitializeType), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 86 | qpoints->pResolveString = art_quick_resolve_string; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 87 | static_assert(!IsDirectEntrypoint(kQuickResolveString), "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 88 | |
| 89 | // Field |
Fred Shih | 37f05ef | 2014-07-16 18:38:08 -0700 | [diff] [blame] | 90 | qpoints->pSet8Instance = art_quick_set8_instance; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 91 | static_assert(!IsDirectEntrypoint(kQuickSet8Instance), "Non-direct C stub marked direct."); |
Fred Shih | 37f05ef | 2014-07-16 18:38:08 -0700 | [diff] [blame] | 92 | qpoints->pSet8Static = art_quick_set8_static; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 93 | static_assert(!IsDirectEntrypoint(kQuickSet8Static), "Non-direct C stub marked direct."); |
Fred Shih | 37f05ef | 2014-07-16 18:38:08 -0700 | [diff] [blame] | 94 | qpoints->pSet16Instance = art_quick_set16_instance; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 95 | static_assert(!IsDirectEntrypoint(kQuickSet16Instance), "Non-direct C stub marked direct."); |
Fred Shih | 37f05ef | 2014-07-16 18:38:08 -0700 | [diff] [blame] | 96 | qpoints->pSet16Static = art_quick_set16_static; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 97 | static_assert(!IsDirectEntrypoint(kQuickSet16Static), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 98 | qpoints->pSet32Instance = art_quick_set32_instance; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 99 | static_assert(!IsDirectEntrypoint(kQuickSet32Instance), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 100 | qpoints->pSet32Static = art_quick_set32_static; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 101 | static_assert(!IsDirectEntrypoint(kQuickSet32Static), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 102 | qpoints->pSet64Instance = art_quick_set64_instance; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 103 | static_assert(!IsDirectEntrypoint(kQuickSet64Instance), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 104 | qpoints->pSet64Static = art_quick_set64_static; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 105 | static_assert(!IsDirectEntrypoint(kQuickSet64Static), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 106 | qpoints->pSetObjInstance = art_quick_set_obj_instance; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 107 | static_assert(!IsDirectEntrypoint(kQuickSetObjInstance), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 108 | qpoints->pSetObjStatic = art_quick_set_obj_static; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 109 | static_assert(!IsDirectEntrypoint(kQuickSetObjStatic), "Non-direct C stub marked direct."); |
Fred Shih | 37f05ef | 2014-07-16 18:38:08 -0700 | [diff] [blame] | 110 | qpoints->pGetBooleanInstance = art_quick_get_boolean_instance; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 111 | static_assert(!IsDirectEntrypoint(kQuickGetBooleanInstance), "Non-direct C stub marked direct."); |
Fred Shih | 37f05ef | 2014-07-16 18:38:08 -0700 | [diff] [blame] | 112 | qpoints->pGetByteInstance = art_quick_get_byte_instance; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 113 | static_assert(!IsDirectEntrypoint(kQuickGetByteInstance), "Non-direct C stub marked direct."); |
Fred Shih | 37f05ef | 2014-07-16 18:38:08 -0700 | [diff] [blame] | 114 | qpoints->pGetCharInstance = art_quick_get_char_instance; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 115 | static_assert(!IsDirectEntrypoint(kQuickGetCharInstance), "Non-direct C stub marked direct."); |
Fred Shih | 37f05ef | 2014-07-16 18:38:08 -0700 | [diff] [blame] | 116 | qpoints->pGetShortInstance = art_quick_get_short_instance; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 117 | static_assert(!IsDirectEntrypoint(kQuickGetShortInstance), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 118 | qpoints->pGet32Instance = art_quick_get32_instance; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 119 | static_assert(!IsDirectEntrypoint(kQuickGet32Instance), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 120 | qpoints->pGet64Instance = art_quick_get64_instance; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 121 | static_assert(!IsDirectEntrypoint(kQuickGet64Instance), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 122 | qpoints->pGetObjInstance = art_quick_get_obj_instance; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 123 | static_assert(!IsDirectEntrypoint(kQuickGetObjInstance), "Non-direct C stub marked direct."); |
Fred Shih | 37f05ef | 2014-07-16 18:38:08 -0700 | [diff] [blame] | 124 | qpoints->pGetBooleanStatic = art_quick_get_boolean_static; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 125 | static_assert(!IsDirectEntrypoint(kQuickGetBooleanStatic), "Non-direct C stub marked direct."); |
Fred Shih | 37f05ef | 2014-07-16 18:38:08 -0700 | [diff] [blame] | 126 | qpoints->pGetByteStatic = art_quick_get_byte_static; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 127 | static_assert(!IsDirectEntrypoint(kQuickGetByteStatic), "Non-direct C stub marked direct."); |
Fred Shih | 37f05ef | 2014-07-16 18:38:08 -0700 | [diff] [blame] | 128 | qpoints->pGetCharStatic = art_quick_get_char_static; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 129 | static_assert(!IsDirectEntrypoint(kQuickGetCharStatic), "Non-direct C stub marked direct."); |
Fred Shih | 37f05ef | 2014-07-16 18:38:08 -0700 | [diff] [blame] | 130 | qpoints->pGetShortStatic = art_quick_get_short_static; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 131 | static_assert(!IsDirectEntrypoint(kQuickGetShortStatic), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 132 | qpoints->pGet32Static = art_quick_get32_static; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 133 | static_assert(!IsDirectEntrypoint(kQuickGet32Static), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 134 | qpoints->pGet64Static = art_quick_get64_static; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 135 | static_assert(!IsDirectEntrypoint(kQuickGet64Static), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 136 | qpoints->pGetObjStatic = art_quick_get_obj_static; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 137 | static_assert(!IsDirectEntrypoint(kQuickGetObjStatic), "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 138 | |
Ian Rogers | a9a8254 | 2013-10-04 11:17:26 -0700 | [diff] [blame] | 139 | // Array |
| 140 | qpoints->pAputObjectWithNullAndBoundCheck = art_quick_aput_obj_with_null_and_bound_check; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 141 | static_assert(!IsDirectEntrypoint(kQuickAputObjectWithNullAndBoundCheck), |
| 142 | "Non-direct C stub marked direct."); |
Ian Rogers | a9a8254 | 2013-10-04 11:17:26 -0700 | [diff] [blame] | 143 | qpoints->pAputObjectWithBoundCheck = art_quick_aput_obj_with_bound_check; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 144 | static_assert(!IsDirectEntrypoint(kQuickAputObjectWithBoundCheck), |
| 145 | "Non-direct C stub marked direct."); |
Ian Rogers | a9a8254 | 2013-10-04 11:17:26 -0700 | [diff] [blame] | 146 | qpoints->pAputObject = art_quick_aput_obj; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 147 | static_assert(!IsDirectEntrypoint(kQuickAputObject), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 148 | qpoints->pHandleFillArrayData = art_quick_handle_fill_data; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 149 | static_assert(!IsDirectEntrypoint(kQuickHandleFillArrayData), "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 150 | |
| 151 | // JNI |
| 152 | qpoints->pJniMethodStart = JniMethodStart; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 153 | static_assert(!IsDirectEntrypoint(kQuickJniMethodStart), "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 154 | qpoints->pJniMethodStartSynchronized = JniMethodStartSynchronized; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 155 | static_assert(!IsDirectEntrypoint(kQuickJniMethodStartSynchronized), |
| 156 | "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 157 | qpoints->pJniMethodEnd = JniMethodEnd; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 158 | static_assert(!IsDirectEntrypoint(kQuickJniMethodEnd), "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 159 | qpoints->pJniMethodEndSynchronized = JniMethodEndSynchronized; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 160 | static_assert(!IsDirectEntrypoint(kQuickJniMethodEndSynchronized), |
| 161 | "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 162 | qpoints->pJniMethodEndWithReference = JniMethodEndWithReference; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 163 | static_assert(!IsDirectEntrypoint(kQuickJniMethodEndWithReference), |
| 164 | "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 165 | qpoints->pJniMethodEndWithReferenceSynchronized = JniMethodEndWithReferenceSynchronized; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 166 | static_assert(!IsDirectEntrypoint(kQuickJniMethodEndWithReferenceSynchronized), |
| 167 | "Non-direct C stub marked direct."); |
Andreas Gampe | 2da8823 | 2014-02-27 12:26:20 -0800 | [diff] [blame] | 168 | qpoints->pQuickGenericJniTrampoline = art_quick_generic_jni_trampoline; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 169 | static_assert(!IsDirectEntrypoint(kQuickQuickGenericJniTrampoline), |
| 170 | "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 171 | |
| 172 | // Locks |
Andreas Gampe | c7ed09b | 2016-04-25 20:08:55 -0700 | [diff] [blame] | 173 | if (UNLIKELY(VLOG_IS_ON(systrace_lock_logging))) { |
| 174 | qpoints->pLockObject = art_quick_lock_object_no_inline; |
| 175 | qpoints->pUnlockObject = art_quick_unlock_object_no_inline; |
| 176 | } else { |
| 177 | qpoints->pLockObject = art_quick_lock_object; |
| 178 | qpoints->pUnlockObject = art_quick_unlock_object; |
| 179 | } |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 180 | static_assert(!IsDirectEntrypoint(kQuickLockObject), "Non-direct C stub marked direct."); |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 181 | static_assert(!IsDirectEntrypoint(kQuickUnlockObject), "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 182 | |
| 183 | // Math |
| 184 | qpoints->pCmpgDouble = CmpgDouble; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 185 | static_assert(IsDirectEntrypoint(kQuickCmpgDouble), "Direct C stub not marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 186 | qpoints->pCmpgFloat = CmpgFloat; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 187 | static_assert(IsDirectEntrypoint(kQuickCmpgFloat), "Direct C stub not marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 188 | qpoints->pCmplDouble = CmplDouble; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 189 | static_assert(IsDirectEntrypoint(kQuickCmplDouble), "Direct C stub not marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 190 | qpoints->pCmplFloat = CmplFloat; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 191 | static_assert(IsDirectEntrypoint(kQuickCmplFloat), "Direct C stub not marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 192 | qpoints->pFmod = fmod; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 193 | static_assert(IsDirectEntrypoint(kQuickFmod), "Direct C stub not marked direct."); |
Douglas Leung | d9cb8ae | 2014-07-09 14:28:35 -0700 | [diff] [blame] | 194 | qpoints->pL2d = art_l2d; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 195 | static_assert(IsDirectEntrypoint(kQuickL2d), "Direct C stub not marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 196 | qpoints->pFmodf = fmodf; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 197 | static_assert(IsDirectEntrypoint(kQuickFmodf), "Direct C stub not marked direct."); |
Douglas Leung | d9cb8ae | 2014-07-09 14:28:35 -0700 | [diff] [blame] | 198 | qpoints->pL2f = art_l2f; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 199 | static_assert(IsDirectEntrypoint(kQuickL2f), "Direct C stub not marked direct."); |
Douglas Leung | d9cb8ae | 2014-07-09 14:28:35 -0700 | [diff] [blame] | 200 | qpoints->pD2iz = art_d2i; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 201 | static_assert(IsDirectEntrypoint(kQuickD2iz), "Direct C stub not marked direct."); |
Douglas Leung | d9cb8ae | 2014-07-09 14:28:35 -0700 | [diff] [blame] | 202 | qpoints->pF2iz = art_f2i; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 203 | static_assert(IsDirectEntrypoint(kQuickF2iz), "Direct C stub not marked direct."); |
Mathieu Chartier | 2cebb24 | 2015-04-21 16:50:40 -0700 | [diff] [blame] | 204 | qpoints->pIdivmod = nullptr; |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 205 | qpoints->pD2l = art_d2l; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 206 | static_assert(IsDirectEntrypoint(kQuickD2l), "Direct C stub not marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 207 | qpoints->pF2l = art_f2l; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 208 | static_assert(IsDirectEntrypoint(kQuickF2l), "Direct C stub not marked direct."); |
Ian Rogers | a9a8254 | 2013-10-04 11:17:26 -0700 | [diff] [blame] | 209 | qpoints->pLdiv = artLdiv; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 210 | static_assert(IsDirectEntrypoint(kQuickLdiv), "Direct C stub not marked direct."); |
Ian Rogers | a9a8254 | 2013-10-04 11:17:26 -0700 | [diff] [blame] | 211 | qpoints->pLmod = artLmod; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 212 | static_assert(IsDirectEntrypoint(kQuickLmod), "Direct C stub not marked direct."); |
Ian Rogers | a9a8254 | 2013-10-04 11:17:26 -0700 | [diff] [blame] | 213 | qpoints->pLmul = artLmul; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 214 | static_assert(IsDirectEntrypoint(kQuickLmul), "Direct C stub not marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 215 | qpoints->pShlLong = art_quick_shl_long; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 216 | static_assert(!IsDirectEntrypoint(kQuickShlLong), "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 217 | qpoints->pShrLong = art_quick_shr_long; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 218 | static_assert(!IsDirectEntrypoint(kQuickShrLong), "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 219 | qpoints->pUshrLong = art_quick_ushr_long; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 220 | static_assert(!IsDirectEntrypoint(kQuickUshrLong), "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 221 | |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 222 | // Intrinsics |
| 223 | qpoints->pIndexOf = art_quick_indexof; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 224 | static_assert(!IsDirectEntrypoint(kQuickIndexOf), "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 225 | qpoints->pStringCompareTo = art_quick_string_compareto; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 226 | static_assert(!IsDirectEntrypoint(kQuickStringCompareTo), "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 227 | qpoints->pMemcpy = memcpy; |
| 228 | |
| 229 | // Invocation |
Jeff Hao | 88474b4 | 2013-10-23 16:24:40 -0700 | [diff] [blame] | 230 | qpoints->pQuickImtConflictTrampoline = art_quick_imt_conflict_trampoline; |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 231 | qpoints->pQuickResolutionTrampoline = art_quick_resolution_trampoline; |
| 232 | qpoints->pQuickToInterpreterBridge = art_quick_to_interpreter_bridge; |
Mathieu Chartier | 2cebb24 | 2015-04-21 16:50:40 -0700 | [diff] [blame] | 233 | qpoints->pInvokeDirectTrampolineWithAccessCheck = |
| 234 | art_quick_invoke_direct_trampoline_with_access_check; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 235 | static_assert(!IsDirectEntrypoint(kQuickInvokeDirectTrampolineWithAccessCheck), |
| 236 | "Non-direct C stub marked direct."); |
Mathieu Chartier | 2cebb24 | 2015-04-21 16:50:40 -0700 | [diff] [blame] | 237 | qpoints->pInvokeInterfaceTrampolineWithAccessCheck = |
| 238 | art_quick_invoke_interface_trampoline_with_access_check; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 239 | static_assert(!IsDirectEntrypoint(kQuickInvokeInterfaceTrampolineWithAccessCheck), |
| 240 | "Non-direct C stub marked direct."); |
Mathieu Chartier | 2cebb24 | 2015-04-21 16:50:40 -0700 | [diff] [blame] | 241 | qpoints->pInvokeStaticTrampolineWithAccessCheck = |
| 242 | art_quick_invoke_static_trampoline_with_access_check; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 243 | static_assert(!IsDirectEntrypoint(kQuickInvokeStaticTrampolineWithAccessCheck), |
| 244 | "Non-direct C stub marked direct."); |
Mathieu Chartier | 2cebb24 | 2015-04-21 16:50:40 -0700 | [diff] [blame] | 245 | qpoints->pInvokeSuperTrampolineWithAccessCheck = |
| 246 | art_quick_invoke_super_trampoline_with_access_check; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 247 | static_assert(!IsDirectEntrypoint(kQuickInvokeSuperTrampolineWithAccessCheck), |
| 248 | "Non-direct C stub marked direct."); |
Mathieu Chartier | 2cebb24 | 2015-04-21 16:50:40 -0700 | [diff] [blame] | 249 | qpoints->pInvokeVirtualTrampolineWithAccessCheck = |
| 250 | art_quick_invoke_virtual_trampoline_with_access_check; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 251 | static_assert(!IsDirectEntrypoint(kQuickInvokeVirtualTrampolineWithAccessCheck), |
| 252 | "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 253 | |
| 254 | // Thread |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 255 | qpoints->pTestSuspend = art_quick_test_suspend; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 256 | static_assert(!IsDirectEntrypoint(kQuickTestSuspend), "Non-direct C stub marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 257 | |
| 258 | // Throws |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 259 | qpoints->pDeliverException = art_quick_deliver_exception; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 260 | static_assert(!IsDirectEntrypoint(kQuickDeliverException), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 261 | qpoints->pThrowArrayBounds = art_quick_throw_array_bounds; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 262 | static_assert(!IsDirectEntrypoint(kQuickThrowArrayBounds), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 263 | qpoints->pThrowDivZero = art_quick_throw_div_zero; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 264 | static_assert(!IsDirectEntrypoint(kQuickThrowDivZero), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 265 | qpoints->pThrowNoSuchMethod = art_quick_throw_no_such_method; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 266 | static_assert(!IsDirectEntrypoint(kQuickThrowNoSuchMethod), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 267 | qpoints->pThrowNullPointer = art_quick_throw_null_pointer_exception; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 268 | static_assert(!IsDirectEntrypoint(kQuickThrowNullPointer), "Non-direct C stub marked direct."); |
Ian Rogers | 848871b | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 269 | qpoints->pThrowStackOverflow = art_quick_throw_stack_overflow; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 270 | static_assert(!IsDirectEntrypoint(kQuickThrowStackOverflow), "Non-direct C stub marked direct."); |
Vladimir Marko | 87f3fcb | 2016-04-28 15:52:11 +0100 | [diff] [blame] | 271 | qpoints->pThrowStringBounds = art_quick_throw_string_bounds; |
| 272 | static_assert(!IsDirectEntrypoint(kQuickThrowStringBounds), "Non-direct C stub marked direct."); |
Douglas Leung | d9cb8ae | 2014-07-09 14:28:35 -0700 | [diff] [blame] | 273 | |
Sebastien Hertz | 0747466 | 2015-08-25 15:12:33 +0000 | [diff] [blame] | 274 | // Deoptimization from compiled code. |
| 275 | qpoints->pDeoptimize = art_quick_deoptimize_from_compiled_code; |
Douglas Leung | 2e8bf55 | 2015-07-07 17:27:34 -0700 | [diff] [blame] | 276 | static_assert(!IsDirectEntrypoint(kQuickDeoptimize), "Non-direct C stub marked direct."); |
| 277 | |
Douglas Leung | d9cb8ae | 2014-07-09 14:28:35 -0700 | [diff] [blame] | 278 | // Atomic 64-bit load/store |
| 279 | qpoints->pA64Load = QuasiAtomic::Read64; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 280 | static_assert(IsDirectEntrypoint(kQuickA64Load), "Non-direct C stub marked direct."); |
Douglas Leung | d9cb8ae | 2014-07-09 14:28:35 -0700 | [diff] [blame] | 281 | qpoints->pA64Store = QuasiAtomic::Write64; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 282 | static_assert(IsDirectEntrypoint(kQuickA64Store), "Non-direct C stub marked direct."); |
Hiroshi Yamauchi | 1cc71eb | 2015-05-07 10:47:27 -0700 | [diff] [blame] | 283 | |
Roland Levillain | 0d5a281 | 2015-11-13 10:07:31 +0000 | [diff] [blame] | 284 | // Read barrier. |
Hiroshi Yamauchi | 1cc71eb | 2015-05-07 10:47:27 -0700 | [diff] [blame] | 285 | qpoints->pReadBarrierJni = ReadBarrierJni; |
Roland Levillain | 0e5ff79 | 2016-07-06 13:45:52 +0100 | [diff] [blame] | 286 | static_assert(IsDirectEntrypoint(kQuickReadBarrierJni), "Direct C stub not marked direct."); |
Roland Levillain | 02b7580 | 2016-07-13 11:54:35 +0100 | [diff] [blame^] | 287 | // Read barriers (and these entry points in particular) are not |
| 288 | // supported in the compiler on MIPS32. |
| 289 | qpoints->pReadBarrierMarkReg00 = nullptr; |
| 290 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg00), |
| 291 | "Non-direct C stub marked direct."); |
| 292 | qpoints->pReadBarrierMarkReg01 = nullptr; |
| 293 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg01), |
| 294 | "Non-direct C stub marked direct."); |
| 295 | qpoints->pReadBarrierMarkReg02 = nullptr; |
| 296 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg02), |
| 297 | "Non-direct C stub marked direct."); |
| 298 | qpoints->pReadBarrierMarkReg03 = nullptr; |
| 299 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg03), |
| 300 | "Non-direct C stub marked direct."); |
| 301 | qpoints->pReadBarrierMarkReg04 = nullptr; |
| 302 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg04), |
| 303 | "Non-direct C stub marked direct."); |
| 304 | qpoints->pReadBarrierMarkReg05 = nullptr; |
| 305 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg05), |
| 306 | "Non-direct C stub marked direct."); |
| 307 | qpoints->pReadBarrierMarkReg06 = nullptr; |
| 308 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg06), |
| 309 | "Non-direct C stub marked direct."); |
| 310 | qpoints->pReadBarrierMarkReg07 = nullptr; |
| 311 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg07), |
| 312 | "Non-direct C stub marked direct."); |
| 313 | qpoints->pReadBarrierMarkReg08 = nullptr; |
| 314 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg08), |
| 315 | "Non-direct C stub marked direct."); |
| 316 | qpoints->pReadBarrierMarkReg09 = nullptr; |
| 317 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg09), |
| 318 | "Non-direct C stub marked direct."); |
| 319 | qpoints->pReadBarrierMarkReg10 = nullptr; |
| 320 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg10), |
| 321 | "Non-direct C stub marked direct."); |
| 322 | qpoints->pReadBarrierMarkReg11 = nullptr; |
| 323 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg11), |
| 324 | "Non-direct C stub marked direct."); |
| 325 | qpoints->pReadBarrierMarkReg12 = nullptr; |
| 326 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg12), |
| 327 | "Non-direct C stub marked direct."); |
| 328 | qpoints->pReadBarrierMarkReg13 = nullptr; |
| 329 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg13), |
| 330 | "Non-direct C stub marked direct."); |
| 331 | qpoints->pReadBarrierMarkReg14 = nullptr; |
| 332 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg14), |
| 333 | "Non-direct C stub marked direct."); |
| 334 | qpoints->pReadBarrierMarkReg15 = nullptr; |
| 335 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg15), |
| 336 | "Non-direct C stub marked direct."); |
| 337 | qpoints->pReadBarrierMarkReg16 = nullptr; |
| 338 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg16), |
| 339 | "Non-direct C stub marked direct."); |
| 340 | qpoints->pReadBarrierMarkReg17 = nullptr; |
| 341 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg17), |
| 342 | "Non-direct C stub marked direct."); |
| 343 | qpoints->pReadBarrierMarkReg18 = nullptr; |
| 344 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg18), |
| 345 | "Non-direct C stub marked direct."); |
| 346 | qpoints->pReadBarrierMarkReg19 = nullptr; |
| 347 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg19), |
| 348 | "Non-direct C stub marked direct."); |
| 349 | qpoints->pReadBarrierMarkReg20 = nullptr; |
| 350 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg20), |
| 351 | "Non-direct C stub marked direct."); |
| 352 | qpoints->pReadBarrierMarkReg21 = nullptr; |
| 353 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg21), |
| 354 | "Non-direct C stub marked direct."); |
| 355 | qpoints->pReadBarrierMarkReg22 = nullptr; |
| 356 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg22), |
| 357 | "Non-direct C stub marked direct."); |
| 358 | qpoints->pReadBarrierMarkReg23 = nullptr; |
| 359 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg23), |
| 360 | "Non-direct C stub marked direct."); |
| 361 | qpoints->pReadBarrierMarkReg24 = nullptr; |
| 362 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg24), |
| 363 | "Non-direct C stub marked direct."); |
| 364 | qpoints->pReadBarrierMarkReg25 = nullptr; |
| 365 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg25), |
| 366 | "Non-direct C stub marked direct."); |
| 367 | qpoints->pReadBarrierMarkReg26 = nullptr; |
| 368 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg26), |
| 369 | "Non-direct C stub marked direct."); |
| 370 | qpoints->pReadBarrierMarkReg27 = nullptr; |
| 371 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg27), |
| 372 | "Non-direct C stub marked direct."); |
| 373 | qpoints->pReadBarrierMarkReg28 = nullptr; |
| 374 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg28), |
| 375 | "Non-direct C stub marked direct."); |
| 376 | qpoints->pReadBarrierMarkReg29 = nullptr; |
| 377 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg29), |
| 378 | "Non-direct C stub marked direct."); |
| 379 | qpoints->pReadBarrierMarkReg30 = nullptr; |
| 380 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg30), |
| 381 | "Non-direct C stub marked direct."); |
| 382 | qpoints->pReadBarrierMarkReg31 = nullptr; |
| 383 | static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg31), |
| 384 | "Non-direct C stub marked direct."); |
Man Cao | 1aee900 | 2015-07-14 22:31:42 -0700 | [diff] [blame] | 385 | qpoints->pReadBarrierSlow = artReadBarrierSlow; |
| 386 | static_assert(IsDirectEntrypoint(kQuickReadBarrierSlow), "Direct C stub not marked direct."); |
Roland Levillain | 0d5a281 | 2015-11-13 10:07:31 +0000 | [diff] [blame] | 387 | qpoints->pReadBarrierForRootSlow = artReadBarrierForRootSlow; |
| 388 | static_assert(IsDirectEntrypoint(kQuickReadBarrierForRootSlow), |
| 389 | "Direct C stub not marked direct."); |
Ian Rogers | 7655f29 | 2013-07-29 11:07:13 -0700 | [diff] [blame] | 390 | }; |
| 391 | |
| 392 | } // namespace art |