blob: 9418caf98cbd7935ce125ccc9564f397306dad26 [file] [log] [blame]
Ian Rogers7655f292013-07-29 11:07:13 -07001/*
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
Vladimir Marko3a21e382016-09-02 12:38:38 +010017#include <string.h>
18
Alexey Frunze4147fcc2017-06-17 19:57:27 -070019#include "arch/mips/asm_support_mips.h"
David Sehrc431b9d2018-03-02 12:01:51 -080020#include "base/atomic.h"
Goran Jakovljevicbfe2c6c2017-12-11 12:28:19 +010021#include "base/logging.h"
David Sehrc431b9d2018-03-02 12:01:51 -080022#include "base/quasi_atomic.h"
Andreas Gampe8cf9cb32017-07-19 09:28:38 -070023#include "entrypoints/entrypoint_utils.h"
Mingyao Yang98d1cc82014-05-15 17:02:16 -070024#include "entrypoints/jni/jni_entrypoints.h"
Andreas Gampe8cf9cb32017-07-19 09:28:38 -070025#include "entrypoints/math_entrypoints.h"
Mathieu Chartierd8891782014-03-02 13:28:37 -080026#include "entrypoints/quick/quick_alloc_entrypoints.h"
Andreas Gampee1794562014-11-04 22:26:32 -080027#include "entrypoints/quick/quick_default_externs.h"
Ian Rogers7655f292013-07-29 11:07:13 -070028#include "entrypoints/quick/quick_entrypoints.h"
Ian Rogers6f3dbba2014-10-14 17:41:57 -070029#include "entrypoints/runtime_asm_entrypoints.h"
Nikola Veljkovic2d873b62015-02-20 17:21:15 +010030#include "entrypoints_direct_mips.h"
Ian Rogers6f3dbba2014-10-14 17:41:57 -070031#include "interpreter/interpreter.h"
Ian Rogers7655f292013-07-29 11:07:13 -070032
33namespace art {
34
Ian Rogers7655f292013-07-29 11:07:13 -070035// Cast entrypoints.
Mathieu Chartier9fd8c602016-11-14 14:38:53 -080036extern "C" size_t artInstanceOfFromCode(mirror::Object* obj, mirror::Class* ref_class);
Ian Rogers7655f292013-07-29 11:07:13 -070037
Alexey Frunze15958152017-02-09 19:08:30 -080038// Read barrier entrypoints.
39// art_quick_read_barrier_mark_regXX uses a non-standard calling
40// convention: it expects its input in register XX+1 and returns its
41// result in that same register, and saves and restores all
42// caller-save registers.
43extern "C" mirror::Object* art_quick_read_barrier_mark_reg01(mirror::Object*);
44extern "C" mirror::Object* art_quick_read_barrier_mark_reg02(mirror::Object*);
45extern "C" mirror::Object* art_quick_read_barrier_mark_reg03(mirror::Object*);
46extern "C" mirror::Object* art_quick_read_barrier_mark_reg04(mirror::Object*);
47extern "C" mirror::Object* art_quick_read_barrier_mark_reg05(mirror::Object*);
48extern "C" mirror::Object* art_quick_read_barrier_mark_reg06(mirror::Object*);
49extern "C" mirror::Object* art_quick_read_barrier_mark_reg07(mirror::Object*);
50extern "C" mirror::Object* art_quick_read_barrier_mark_reg08(mirror::Object*);
51extern "C" mirror::Object* art_quick_read_barrier_mark_reg09(mirror::Object*);
52extern "C" mirror::Object* art_quick_read_barrier_mark_reg10(mirror::Object*);
53extern "C" mirror::Object* art_quick_read_barrier_mark_reg11(mirror::Object*);
54extern "C" mirror::Object* art_quick_read_barrier_mark_reg12(mirror::Object*);
55extern "C" mirror::Object* art_quick_read_barrier_mark_reg13(mirror::Object*);
56extern "C" mirror::Object* art_quick_read_barrier_mark_reg14(mirror::Object*);
57extern "C" mirror::Object* art_quick_read_barrier_mark_reg17(mirror::Object*);
58extern "C" mirror::Object* art_quick_read_barrier_mark_reg18(mirror::Object*);
59extern "C" mirror::Object* art_quick_read_barrier_mark_reg19(mirror::Object*);
60extern "C" mirror::Object* art_quick_read_barrier_mark_reg20(mirror::Object*);
61extern "C" mirror::Object* art_quick_read_barrier_mark_reg21(mirror::Object*);
62extern "C" mirror::Object* art_quick_read_barrier_mark_reg22(mirror::Object*);
63extern "C" mirror::Object* art_quick_read_barrier_mark_reg29(mirror::Object*);
64
Alexey Frunze4147fcc2017-06-17 19:57:27 -070065extern "C" mirror::Object* art_quick_read_barrier_mark_introspection(mirror::Object*);
66extern "C" mirror::Object* art_quick_read_barrier_mark_introspection_gc_roots(mirror::Object*);
67extern "C" void art_quick_read_barrier_mark_introspection_end_of_entries(void);
68
Ian Rogers7655f292013-07-29 11:07:13 -070069// Math entrypoints.
70extern int32_t CmpgDouble(double a, double b);
71extern int32_t CmplDouble(double a, double b);
72extern int32_t CmpgFloat(float a, float b);
73extern int32_t CmplFloat(float a, float b);
Ian Rogersa9a82542013-10-04 11:17:26 -070074extern "C" int64_t artLmul(int64_t a, int64_t b);
75extern "C" int64_t artLdiv(int64_t a, int64_t b);
76extern "C" int64_t artLmod(int64_t a, int64_t b);
Ian Rogers7655f292013-07-29 11:07:13 -070077
78// Math conversions.
79extern "C" int32_t __fixsfsi(float op1); // FLOAT_TO_INT
80extern "C" int32_t __fixdfsi(double op1); // DOUBLE_TO_INT
81extern "C" float __floatdisf(int64_t op1); // LONG_TO_FLOAT
82extern "C" double __floatdidf(int64_t op1); // LONG_TO_DOUBLE
83extern "C" int64_t __fixsfdi(float op1); // FLOAT_TO_LONG
84extern "C" int64_t __fixdfdi(double op1); // DOUBLE_TO_LONG
85
86// Single-precision FP arithmetics.
87extern "C" float fmodf(float a, float b); // REM_FLOAT[_2ADDR]
88
89// Double-precision FP arithmetics.
90extern "C" double fmod(double a, double b); // REM_DOUBLE[_2ADDR]
91
92// Long long arithmetics - REM_LONG[_2ADDR] and DIV_LONG[_2ADDR]
93extern "C" int64_t __divdi3(int64_t, int64_t);
94extern "C" int64_t __moddi3(int64_t, int64_t);
Hiroshi Yamauchi3b4c1892013-09-12 21:33:12 -070095
Mathieu Chartier3768ade2017-05-02 14:04:39 -070096void UpdateReadBarrierEntrypoints(QuickEntryPoints* qpoints, bool is_active) {
Alexey Frunze4147fcc2017-06-17 19:57:27 -070097 intptr_t introspection_field_array_entries_size =
98 reinterpret_cast<intptr_t>(&art_quick_read_barrier_mark_introspection_gc_roots) -
99 reinterpret_cast<intptr_t>(&art_quick_read_barrier_mark_introspection);
100 static_assert(
101 BAKER_MARK_INTROSPECTION_GC_ROOT_ENTRIES_OFFSET == 2 *
102 BAKER_MARK_INTROSPECTION_REGISTER_COUNT * BAKER_MARK_INTROSPECTION_FIELD_ARRAY_ENTRY_SIZE,
103 "Expecting equal");
104 DCHECK_EQ(introspection_field_array_entries_size,
105 BAKER_MARK_INTROSPECTION_GC_ROOT_ENTRIES_OFFSET);
106 intptr_t introspection_gc_root_entries_size =
107 reinterpret_cast<intptr_t>(&art_quick_read_barrier_mark_introspection_end_of_entries) -
108 reinterpret_cast<intptr_t>(&art_quick_read_barrier_mark_introspection_gc_roots);
109 DCHECK_EQ(introspection_gc_root_entries_size,
110 BAKER_MARK_INTROSPECTION_REGISTER_COUNT * BAKER_MARK_INTROSPECTION_GC_ROOT_ENTRY_SIZE);
111 qpoints->pReadBarrierMarkReg00 = is_active ? art_quick_read_barrier_mark_introspection : nullptr;
112 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg00),
113 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700114 qpoints->pReadBarrierMarkReg01 = is_active ? art_quick_read_barrier_mark_reg01 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800115 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg01),
116 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700117 qpoints->pReadBarrierMarkReg02 = is_active ? art_quick_read_barrier_mark_reg02 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800118 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg02),
119 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700120 qpoints->pReadBarrierMarkReg03 = is_active ? art_quick_read_barrier_mark_reg03 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800121 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg03),
122 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700123 qpoints->pReadBarrierMarkReg04 = is_active ? art_quick_read_barrier_mark_reg04 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800124 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg04),
125 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700126 qpoints->pReadBarrierMarkReg05 = is_active ? art_quick_read_barrier_mark_reg05 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800127 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg05),
128 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700129 qpoints->pReadBarrierMarkReg06 = is_active ? art_quick_read_barrier_mark_reg06 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800130 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg06),
131 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700132 qpoints->pReadBarrierMarkReg07 = is_active ? art_quick_read_barrier_mark_reg07 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800133 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg07),
134 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700135 qpoints->pReadBarrierMarkReg08 = is_active ? art_quick_read_barrier_mark_reg08 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800136 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg08),
137 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700138 qpoints->pReadBarrierMarkReg09 = is_active ? art_quick_read_barrier_mark_reg09 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800139 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg09),
140 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700141 qpoints->pReadBarrierMarkReg10 = is_active ? art_quick_read_barrier_mark_reg10 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800142 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg10),
143 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700144 qpoints->pReadBarrierMarkReg11 = is_active ? art_quick_read_barrier_mark_reg11 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800145 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg11),
146 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700147 qpoints->pReadBarrierMarkReg12 = is_active ? art_quick_read_barrier_mark_reg12 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800148 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg12),
149 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700150 qpoints->pReadBarrierMarkReg13 = is_active ? art_quick_read_barrier_mark_reg13 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800151 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg13),
152 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700153 qpoints->pReadBarrierMarkReg14 = is_active ? art_quick_read_barrier_mark_reg14 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800154 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg14),
155 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700156 qpoints->pReadBarrierMarkReg17 = is_active ? art_quick_read_barrier_mark_reg17 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800157 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg17),
158 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700159 qpoints->pReadBarrierMarkReg18 = is_active ? art_quick_read_barrier_mark_reg18 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800160 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg18),
161 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700162 qpoints->pReadBarrierMarkReg19 = is_active ? art_quick_read_barrier_mark_reg19 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800163 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg19),
164 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700165 qpoints->pReadBarrierMarkReg20 = is_active ? art_quick_read_barrier_mark_reg20 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800166 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg20),
167 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700168 qpoints->pReadBarrierMarkReg21 = is_active ? art_quick_read_barrier_mark_reg21 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800169 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg21),
170 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700171 qpoints->pReadBarrierMarkReg22 = is_active ? art_quick_read_barrier_mark_reg22 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800172 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg22),
173 "Non-direct C stub marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700174 qpoints->pReadBarrierMarkReg29 = is_active ? art_quick_read_barrier_mark_reg29 : nullptr;
Alexey Frunze15958152017-02-09 19:08:30 -0800175 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg29),
176 "Non-direct C stub marked direct.");
177}
Mathieu Chartierfe814e82016-11-09 14:32:49 -0800178
Andreas Gampe3cfa4d02015-10-06 17:04:01 -0700179void InitEntryPoints(JniEntryPoints* jpoints, QuickEntryPoints* qpoints) {
Andreas Gampec7ed09b2016-04-25 20:08:55 -0700180 // Note: MIPS has asserts checking for the type of entrypoint. Don't move it
181 // to InitDefaultEntryPoints().
182
Ian Rogers848871b2013-08-05 10:56:33 -0700183 // JNI
184 jpoints->pDlsymLookup = art_jni_dlsym_lookup_stub;
185
Ian Rogers7655f292013-07-29 11:07:13 -0700186 // Alloc
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700187 ResetQuickAllocEntryPoints(qpoints, /*is_active*/ false);
Ian Rogers7655f292013-07-29 11:07:13 -0700188
189 // Cast
Mathieu Chartier9fd8c602016-11-14 14:38:53 -0800190 qpoints->pInstanceofNonTrivial = artInstanceOfFromCode;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100191 static_assert(IsDirectEntrypoint(kQuickInstanceofNonTrivial), "Direct C stub not marked direct.");
Mathieu Chartierb99f4d62016-11-07 16:17:26 -0800192 qpoints->pCheckInstanceOf = art_quick_check_instance_of;
193 static_assert(!IsDirectEntrypoint(kQuickCheckInstanceOf), "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700194
195 // DexCache
Ian Rogers848871b2013-08-05 10:56:33 -0700196 qpoints->pInitializeStaticStorage = art_quick_initialize_static_storage;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100197 static_assert(!IsDirectEntrypoint(kQuickInitializeStaticStorage),
198 "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700199 qpoints->pInitializeTypeAndVerifyAccess = art_quick_initialize_type_and_verify_access;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100200 static_assert(!IsDirectEntrypoint(kQuickInitializeTypeAndVerifyAccess),
201 "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700202 qpoints->pInitializeType = art_quick_initialize_type;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100203 static_assert(!IsDirectEntrypoint(kQuickInitializeType), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700204 qpoints->pResolveString = art_quick_resolve_string;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100205 static_assert(!IsDirectEntrypoint(kQuickResolveString), "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700206
207 // Field
Fred Shih37f05ef2014-07-16 18:38:08 -0700208 qpoints->pSet8Instance = art_quick_set8_instance;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100209 static_assert(!IsDirectEntrypoint(kQuickSet8Instance), "Non-direct C stub marked direct.");
Fred Shih37f05ef2014-07-16 18:38:08 -0700210 qpoints->pSet8Static = art_quick_set8_static;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100211 static_assert(!IsDirectEntrypoint(kQuickSet8Static), "Non-direct C stub marked direct.");
Fred Shih37f05ef2014-07-16 18:38:08 -0700212 qpoints->pSet16Instance = art_quick_set16_instance;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100213 static_assert(!IsDirectEntrypoint(kQuickSet16Instance), "Non-direct C stub marked direct.");
Fred Shih37f05ef2014-07-16 18:38:08 -0700214 qpoints->pSet16Static = art_quick_set16_static;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100215 static_assert(!IsDirectEntrypoint(kQuickSet16Static), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700216 qpoints->pSet32Instance = art_quick_set32_instance;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100217 static_assert(!IsDirectEntrypoint(kQuickSet32Instance), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700218 qpoints->pSet32Static = art_quick_set32_static;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100219 static_assert(!IsDirectEntrypoint(kQuickSet32Static), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700220 qpoints->pSet64Instance = art_quick_set64_instance;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100221 static_assert(!IsDirectEntrypoint(kQuickSet64Instance), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700222 qpoints->pSet64Static = art_quick_set64_static;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100223 static_assert(!IsDirectEntrypoint(kQuickSet64Static), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700224 qpoints->pSetObjInstance = art_quick_set_obj_instance;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100225 static_assert(!IsDirectEntrypoint(kQuickSetObjInstance), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700226 qpoints->pSetObjStatic = art_quick_set_obj_static;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100227 static_assert(!IsDirectEntrypoint(kQuickSetObjStatic), "Non-direct C stub marked direct.");
Fred Shih37f05ef2014-07-16 18:38:08 -0700228 qpoints->pGetBooleanInstance = art_quick_get_boolean_instance;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100229 static_assert(!IsDirectEntrypoint(kQuickGetBooleanInstance), "Non-direct C stub marked direct.");
Fred Shih37f05ef2014-07-16 18:38:08 -0700230 qpoints->pGetByteInstance = art_quick_get_byte_instance;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100231 static_assert(!IsDirectEntrypoint(kQuickGetByteInstance), "Non-direct C stub marked direct.");
Fred Shih37f05ef2014-07-16 18:38:08 -0700232 qpoints->pGetCharInstance = art_quick_get_char_instance;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100233 static_assert(!IsDirectEntrypoint(kQuickGetCharInstance), "Non-direct C stub marked direct.");
Fred Shih37f05ef2014-07-16 18:38:08 -0700234 qpoints->pGetShortInstance = art_quick_get_short_instance;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100235 static_assert(!IsDirectEntrypoint(kQuickGetShortInstance), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700236 qpoints->pGet32Instance = art_quick_get32_instance;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100237 static_assert(!IsDirectEntrypoint(kQuickGet32Instance), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700238 qpoints->pGet64Instance = art_quick_get64_instance;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100239 static_assert(!IsDirectEntrypoint(kQuickGet64Instance), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700240 qpoints->pGetObjInstance = art_quick_get_obj_instance;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100241 static_assert(!IsDirectEntrypoint(kQuickGetObjInstance), "Non-direct C stub marked direct.");
Fred Shih37f05ef2014-07-16 18:38:08 -0700242 qpoints->pGetBooleanStatic = art_quick_get_boolean_static;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100243 static_assert(!IsDirectEntrypoint(kQuickGetBooleanStatic), "Non-direct C stub marked direct.");
Fred Shih37f05ef2014-07-16 18:38:08 -0700244 qpoints->pGetByteStatic = art_quick_get_byte_static;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100245 static_assert(!IsDirectEntrypoint(kQuickGetByteStatic), "Non-direct C stub marked direct.");
Fred Shih37f05ef2014-07-16 18:38:08 -0700246 qpoints->pGetCharStatic = art_quick_get_char_static;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100247 static_assert(!IsDirectEntrypoint(kQuickGetCharStatic), "Non-direct C stub marked direct.");
Fred Shih37f05ef2014-07-16 18:38:08 -0700248 qpoints->pGetShortStatic = art_quick_get_short_static;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100249 static_assert(!IsDirectEntrypoint(kQuickGetShortStatic), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700250 qpoints->pGet32Static = art_quick_get32_static;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100251 static_assert(!IsDirectEntrypoint(kQuickGet32Static), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700252 qpoints->pGet64Static = art_quick_get64_static;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100253 static_assert(!IsDirectEntrypoint(kQuickGet64Static), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700254 qpoints->pGetObjStatic = art_quick_get_obj_static;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100255 static_assert(!IsDirectEntrypoint(kQuickGetObjStatic), "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700256
Ian Rogersa9a82542013-10-04 11:17:26 -0700257 // Array
Ian Rogersa9a82542013-10-04 11:17:26 -0700258 qpoints->pAputObject = art_quick_aput_obj;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100259 static_assert(!IsDirectEntrypoint(kQuickAputObject), "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700260
261 // JNI
262 qpoints->pJniMethodStart = JniMethodStart;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100263 static_assert(!IsDirectEntrypoint(kQuickJniMethodStart), "Non-direct C stub marked direct.");
Goran Jakovljevic79b6d0c2016-08-18 13:47:31 +0200264 qpoints->pJniMethodFastStart = JniMethodFastStart;
265 static_assert(!IsDirectEntrypoint(kQuickJniMethodFastStart), "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700266 qpoints->pJniMethodStartSynchronized = JniMethodStartSynchronized;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100267 static_assert(!IsDirectEntrypoint(kQuickJniMethodStartSynchronized),
268 "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700269 qpoints->pJniMethodEnd = JniMethodEnd;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100270 static_assert(!IsDirectEntrypoint(kQuickJniMethodEnd), "Non-direct C stub marked direct.");
Goran Jakovljevic79b6d0c2016-08-18 13:47:31 +0200271 qpoints->pJniMethodFastEnd = JniMethodFastEnd;
272 static_assert(!IsDirectEntrypoint(kQuickJniMethodFastEnd), "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700273 qpoints->pJniMethodEndSynchronized = JniMethodEndSynchronized;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100274 static_assert(!IsDirectEntrypoint(kQuickJniMethodEndSynchronized),
275 "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700276 qpoints->pJniMethodEndWithReference = JniMethodEndWithReference;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100277 static_assert(!IsDirectEntrypoint(kQuickJniMethodEndWithReference),
278 "Non-direct C stub marked direct.");
Goran Jakovljevic79b6d0c2016-08-18 13:47:31 +0200279 qpoints->pJniMethodFastEndWithReference = JniMethodFastEndWithReference;
280 static_assert(!IsDirectEntrypoint(kQuickJniMethodFastEndWithReference),
281 "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700282 qpoints->pJniMethodEndWithReferenceSynchronized = JniMethodEndWithReferenceSynchronized;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100283 static_assert(!IsDirectEntrypoint(kQuickJniMethodEndWithReferenceSynchronized),
284 "Non-direct C stub marked direct.");
Andreas Gampe2da88232014-02-27 12:26:20 -0800285 qpoints->pQuickGenericJniTrampoline = art_quick_generic_jni_trampoline;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100286 static_assert(!IsDirectEntrypoint(kQuickQuickGenericJniTrampoline),
287 "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700288
289 // Locks
Andreas Gampec7ed09b2016-04-25 20:08:55 -0700290 if (UNLIKELY(VLOG_IS_ON(systrace_lock_logging))) {
291 qpoints->pLockObject = art_quick_lock_object_no_inline;
292 qpoints->pUnlockObject = art_quick_unlock_object_no_inline;
293 } else {
294 qpoints->pLockObject = art_quick_lock_object;
295 qpoints->pUnlockObject = art_quick_unlock_object;
296 }
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100297 static_assert(!IsDirectEntrypoint(kQuickLockObject), "Non-direct C stub marked direct.");
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100298 static_assert(!IsDirectEntrypoint(kQuickUnlockObject), "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700299
300 // Math
301 qpoints->pCmpgDouble = CmpgDouble;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100302 static_assert(IsDirectEntrypoint(kQuickCmpgDouble), "Direct C stub not marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700303 qpoints->pCmpgFloat = CmpgFloat;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100304 static_assert(IsDirectEntrypoint(kQuickCmpgFloat), "Direct C stub not marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700305 qpoints->pCmplDouble = CmplDouble;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100306 static_assert(IsDirectEntrypoint(kQuickCmplDouble), "Direct C stub not marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700307 qpoints->pCmplFloat = CmplFloat;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100308 static_assert(IsDirectEntrypoint(kQuickCmplFloat), "Direct C stub not marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700309 qpoints->pFmod = fmod;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100310 static_assert(IsDirectEntrypoint(kQuickFmod), "Direct C stub not marked direct.");
Douglas Leungd9cb8ae2014-07-09 14:28:35 -0700311 qpoints->pL2d = art_l2d;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100312 static_assert(IsDirectEntrypoint(kQuickL2d), "Direct C stub not marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700313 qpoints->pFmodf = fmodf;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100314 static_assert(IsDirectEntrypoint(kQuickFmodf), "Direct C stub not marked direct.");
Douglas Leungd9cb8ae2014-07-09 14:28:35 -0700315 qpoints->pL2f = art_l2f;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100316 static_assert(IsDirectEntrypoint(kQuickL2f), "Direct C stub not marked direct.");
Douglas Leungd9cb8ae2014-07-09 14:28:35 -0700317 qpoints->pD2iz = art_d2i;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100318 static_assert(IsDirectEntrypoint(kQuickD2iz), "Direct C stub not marked direct.");
Douglas Leungd9cb8ae2014-07-09 14:28:35 -0700319 qpoints->pF2iz = art_f2i;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100320 static_assert(IsDirectEntrypoint(kQuickF2iz), "Direct C stub not marked direct.");
Mathieu Chartier2cebb242015-04-21 16:50:40 -0700321 qpoints->pIdivmod = nullptr;
Ian Rogers7655f292013-07-29 11:07:13 -0700322 qpoints->pD2l = art_d2l;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100323 static_assert(IsDirectEntrypoint(kQuickD2l), "Direct C stub not marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700324 qpoints->pF2l = art_f2l;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100325 static_assert(IsDirectEntrypoint(kQuickF2l), "Direct C stub not marked direct.");
Ian Rogersa9a82542013-10-04 11:17:26 -0700326 qpoints->pLdiv = artLdiv;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100327 static_assert(IsDirectEntrypoint(kQuickLdiv), "Direct C stub not marked direct.");
Ian Rogersa9a82542013-10-04 11:17:26 -0700328 qpoints->pLmod = artLmod;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100329 static_assert(IsDirectEntrypoint(kQuickLmod), "Direct C stub not marked direct.");
Ian Rogersa9a82542013-10-04 11:17:26 -0700330 qpoints->pLmul = artLmul;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100331 static_assert(IsDirectEntrypoint(kQuickLmul), "Direct C stub not marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700332 qpoints->pShlLong = art_quick_shl_long;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100333 static_assert(!IsDirectEntrypoint(kQuickShlLong), "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700334 qpoints->pShrLong = art_quick_shr_long;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100335 static_assert(!IsDirectEntrypoint(kQuickShrLong), "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700336 qpoints->pUshrLong = art_quick_ushr_long;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100337 static_assert(!IsDirectEntrypoint(kQuickUshrLong), "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700338
Chris Larsenb9005fa2017-03-24 12:11:54 -0700339 // More math.
340 qpoints->pCos = cos;
341 static_assert(IsDirectEntrypoint(kQuickCos), "Direct C stub marked non-direct.");
342 qpoints->pSin = sin;
343 static_assert(IsDirectEntrypoint(kQuickSin), "Direct C stub marked non-direct.");
344 qpoints->pAcos = acos;
345 static_assert(IsDirectEntrypoint(kQuickAcos), "Direct C stub marked non-direct.");
346 qpoints->pAsin = asin;
347 static_assert(IsDirectEntrypoint(kQuickAsin), "Direct C stub marked non-direct.");
348 qpoints->pAtan = atan;
349 static_assert(IsDirectEntrypoint(kQuickAtan), "Direct C stub marked non-direct.");
350 qpoints->pAtan2 = atan2;
351 static_assert(IsDirectEntrypoint(kQuickAtan2), "Direct C stub marked non-direct.");
Vladimir Marko4d179872018-01-19 14:50:10 +0000352 qpoints->pPow = pow;
353 static_assert(IsDirectEntrypoint(kQuickPow), "Direct C stub marked non-direct.");
Chris Larsenb9005fa2017-03-24 12:11:54 -0700354 qpoints->pCbrt = cbrt;
355 static_assert(IsDirectEntrypoint(kQuickCbrt), "Direct C stub marked non-direct.");
356 qpoints->pCosh = cosh;
357 static_assert(IsDirectEntrypoint(kQuickCosh), "Direct C stub marked non-direct.");
358 qpoints->pExp = exp;
359 static_assert(IsDirectEntrypoint(kQuickExp), "Direct C stub marked non-direct.");
360 qpoints->pExpm1 = expm1;
361 static_assert(IsDirectEntrypoint(kQuickExpm1), "Direct C stub marked non-direct.");
362 qpoints->pHypot = hypot;
363 static_assert(IsDirectEntrypoint(kQuickHypot), "Direct C stub marked non-direct.");
364 qpoints->pLog = log;
365 static_assert(IsDirectEntrypoint(kQuickLog), "Direct C stub marked non-direct.");
366 qpoints->pLog10 = log10;
367 static_assert(IsDirectEntrypoint(kQuickLog10), "Direct C stub marked non-direct.");
368 qpoints->pNextAfter = nextafter;
369 static_assert(IsDirectEntrypoint(kQuickNextAfter), "Direct C stub marked non-direct.");
370 qpoints->pSinh = sinh;
371 static_assert(IsDirectEntrypoint(kQuickSinh), "Direct C stub marked non-direct.");
372 qpoints->pTan = tan;
373 static_assert(IsDirectEntrypoint(kQuickTan), "Direct C stub marked non-direct.");
374 qpoints->pTanh = tanh;
375 static_assert(IsDirectEntrypoint(kQuickTanh), "Direct C stub marked non-direct.");
376
Ian Rogers7655f292013-07-29 11:07:13 -0700377 // Intrinsics
378 qpoints->pIndexOf = art_quick_indexof;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100379 static_assert(!IsDirectEntrypoint(kQuickIndexOf), "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700380 qpoints->pStringCompareTo = art_quick_string_compareto;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100381 static_assert(!IsDirectEntrypoint(kQuickStringCompareTo), "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700382 qpoints->pMemcpy = memcpy;
383
384 // Invocation
Jeff Hao88474b42013-10-23 16:24:40 -0700385 qpoints->pQuickImtConflictTrampoline = art_quick_imt_conflict_trampoline;
Ian Rogers848871b2013-08-05 10:56:33 -0700386 qpoints->pQuickResolutionTrampoline = art_quick_resolution_trampoline;
387 qpoints->pQuickToInterpreterBridge = art_quick_to_interpreter_bridge;
Mathieu Chartier2cebb242015-04-21 16:50:40 -0700388 qpoints->pInvokeDirectTrampolineWithAccessCheck =
389 art_quick_invoke_direct_trampoline_with_access_check;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100390 static_assert(!IsDirectEntrypoint(kQuickInvokeDirectTrampolineWithAccessCheck),
391 "Non-direct C stub marked direct.");
Mathieu Chartier2cebb242015-04-21 16:50:40 -0700392 qpoints->pInvokeInterfaceTrampolineWithAccessCheck =
393 art_quick_invoke_interface_trampoline_with_access_check;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100394 static_assert(!IsDirectEntrypoint(kQuickInvokeInterfaceTrampolineWithAccessCheck),
395 "Non-direct C stub marked direct.");
Mathieu Chartier2cebb242015-04-21 16:50:40 -0700396 qpoints->pInvokeStaticTrampolineWithAccessCheck =
397 art_quick_invoke_static_trampoline_with_access_check;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100398 static_assert(!IsDirectEntrypoint(kQuickInvokeStaticTrampolineWithAccessCheck),
399 "Non-direct C stub marked direct.");
Mathieu Chartier2cebb242015-04-21 16:50:40 -0700400 qpoints->pInvokeSuperTrampolineWithAccessCheck =
401 art_quick_invoke_super_trampoline_with_access_check;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100402 static_assert(!IsDirectEntrypoint(kQuickInvokeSuperTrampolineWithAccessCheck),
403 "Non-direct C stub marked direct.");
Mathieu Chartier2cebb242015-04-21 16:50:40 -0700404 qpoints->pInvokeVirtualTrampolineWithAccessCheck =
405 art_quick_invoke_virtual_trampoline_with_access_check;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100406 static_assert(!IsDirectEntrypoint(kQuickInvokeVirtualTrampolineWithAccessCheck),
407 "Non-direct C stub marked direct.");
Alexey Frunzec480b982017-01-16 19:03:21 -0800408 qpoints->pInvokePolymorphic = art_quick_invoke_polymorphic;
Ian Rogers7655f292013-07-29 11:07:13 -0700409
410 // Thread
Ian Rogers848871b2013-08-05 10:56:33 -0700411 qpoints->pTestSuspend = art_quick_test_suspend;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100412 static_assert(!IsDirectEntrypoint(kQuickTestSuspend), "Non-direct C stub marked direct.");
Ian Rogers7655f292013-07-29 11:07:13 -0700413
414 // Throws
Ian Rogers848871b2013-08-05 10:56:33 -0700415 qpoints->pDeliverException = art_quick_deliver_exception;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100416 static_assert(!IsDirectEntrypoint(kQuickDeliverException), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700417 qpoints->pThrowArrayBounds = art_quick_throw_array_bounds;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100418 static_assert(!IsDirectEntrypoint(kQuickThrowArrayBounds), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700419 qpoints->pThrowDivZero = art_quick_throw_div_zero;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100420 static_assert(!IsDirectEntrypoint(kQuickThrowDivZero), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700421 qpoints->pThrowNullPointer = art_quick_throw_null_pointer_exception;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100422 static_assert(!IsDirectEntrypoint(kQuickThrowNullPointer), "Non-direct C stub marked direct.");
Ian Rogers848871b2013-08-05 10:56:33 -0700423 qpoints->pThrowStackOverflow = art_quick_throw_stack_overflow;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100424 static_assert(!IsDirectEntrypoint(kQuickThrowStackOverflow), "Non-direct C stub marked direct.");
Vladimir Marko87f3fcb2016-04-28 15:52:11 +0100425 qpoints->pThrowStringBounds = art_quick_throw_string_bounds;
426 static_assert(!IsDirectEntrypoint(kQuickThrowStringBounds), "Non-direct C stub marked direct.");
Douglas Leungd9cb8ae2014-07-09 14:28:35 -0700427
Sebastien Hertz07474662015-08-25 15:12:33 +0000428 // Deoptimization from compiled code.
429 qpoints->pDeoptimize = art_quick_deoptimize_from_compiled_code;
Douglas Leung2e8bf552015-07-07 17:27:34 -0700430 static_assert(!IsDirectEntrypoint(kQuickDeoptimize), "Non-direct C stub marked direct.");
431
Douglas Leungd9cb8ae2014-07-09 14:28:35 -0700432 // Atomic 64-bit load/store
433 qpoints->pA64Load = QuasiAtomic::Read64;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100434 static_assert(IsDirectEntrypoint(kQuickA64Load), "Non-direct C stub marked direct.");
Douglas Leungd9cb8ae2014-07-09 14:28:35 -0700435 qpoints->pA64Store = QuasiAtomic::Write64;
Nikola Veljkovic2d873b62015-02-20 17:21:15 +0100436 static_assert(IsDirectEntrypoint(kQuickA64Store), "Non-direct C stub marked direct.");
Hiroshi Yamauchi1cc71eb2015-05-07 10:47:27 -0700437
Roland Levillain0d5a2812015-11-13 10:07:31 +0000438 // Read barrier.
Hiroshi Yamauchi1cc71eb2015-05-07 10:47:27 -0700439 qpoints->pReadBarrierJni = ReadBarrierJni;
Roland Levillain0e5ff792016-07-06 13:45:52 +0100440 static_assert(IsDirectEntrypoint(kQuickReadBarrierJni), "Direct C stub not marked direct.");
Mathieu Chartier3768ade2017-05-02 14:04:39 -0700441 UpdateReadBarrierEntrypoints(qpoints, /*is_active*/ false);
Alexey Frunze15958152017-02-09 19:08:30 -0800442 // Cannot use the following registers to pass arguments:
443 // 0(ZERO), 1(AT), 16(S0), 17(S1), 24(T8), 25(T9), 26(K0), 27(K1), 28(GP), 29(SP), 31(RA).
444 // Note that there are 30 entry points only: 00 for register 1(AT), ..., 29 for register 30(S8).
Roland Levillain02b75802016-07-13 11:54:35 +0100445 qpoints->pReadBarrierMarkReg15 = nullptr;
446 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg15),
447 "Non-direct C stub marked direct.");
448 qpoints->pReadBarrierMarkReg16 = nullptr;
449 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg16),
450 "Non-direct C stub marked direct.");
Roland Levillain02b75802016-07-13 11:54:35 +0100451 qpoints->pReadBarrierMarkReg23 = nullptr;
452 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg23),
453 "Non-direct C stub marked direct.");
454 qpoints->pReadBarrierMarkReg24 = nullptr;
455 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg24),
456 "Non-direct C stub marked direct.");
457 qpoints->pReadBarrierMarkReg25 = nullptr;
458 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg25),
459 "Non-direct C stub marked direct.");
460 qpoints->pReadBarrierMarkReg26 = nullptr;
461 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg26),
462 "Non-direct C stub marked direct.");
463 qpoints->pReadBarrierMarkReg27 = nullptr;
464 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg27),
465 "Non-direct C stub marked direct.");
466 qpoints->pReadBarrierMarkReg28 = nullptr;
467 static_assert(!IsDirectEntrypoint(kQuickReadBarrierMarkReg28),
468 "Non-direct C stub marked direct.");
Man Cao1aee9002015-07-14 22:31:42 -0700469 qpoints->pReadBarrierSlow = artReadBarrierSlow;
470 static_assert(IsDirectEntrypoint(kQuickReadBarrierSlow), "Direct C stub not marked direct.");
Roland Levillain0d5a2812015-11-13 10:07:31 +0000471 qpoints->pReadBarrierForRootSlow = artReadBarrierForRootSlow;
472 static_assert(IsDirectEntrypoint(kQuickReadBarrierForRootSlow),
473 "Direct C stub not marked direct.");
Igor Murashkin2ffb7032017-11-08 13:35:21 -0800474}
Ian Rogers7655f292013-07-29 11:07:13 -0700475
476} // namespace art