blob: 0b959fb560bf97613c7d414395a6edc39ea47e11 [file] [log] [blame]
Sebastien Hertz8ece0502013-08-07 11:26:41 +02001/*
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
17#include "interpreter_common.h"
18
19namespace art {
20namespace interpreter {
21
Sebastien Hertzc61124b2013-09-10 11:44:19 +020022static void UnstartedRuntimeInvoke(Thread* self, MethodHelper& mh,
23 const DexFile::CodeItem* code_item, ShadowFrame* shadow_frame,
24 JValue* result, size_t arg_offset)
25 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
Sebastien Hertz8ece0502013-08-07 11:26:41 +020026
Sebastien Hertz9ace87b2013-09-27 11:48:09 +020027// Assign register 'src_reg' from shadow_frame to register 'dest_reg' into new_shadow_frame.
Ian Rogersef7d42f2014-01-06 12:55:46 -080028static inline void AssignRegister(ShadowFrame* new_shadow_frame, const ShadowFrame& shadow_frame,
29 size_t dest_reg, size_t src_reg)
30 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
Sebastien Hertz9ace87b2013-09-27 11:48:09 +020031 // If both register locations contains the same value, the register probably holds a reference.
32 int32_t src_value = shadow_frame.GetVReg(src_reg);
Mathieu Chartier590fee92013-09-13 13:46:47 -070033 mirror::Object* o = shadow_frame.GetVRegReference<false>(src_reg);
Ian Rogersef7d42f2014-01-06 12:55:46 -080034 if (src_value == reinterpret_cast<intptr_t>(o)) {
35 new_shadow_frame->SetVRegReference(dest_reg, o);
Sebastien Hertz9ace87b2013-09-27 11:48:09 +020036 } else {
Ian Rogersef7d42f2014-01-06 12:55:46 -080037 new_shadow_frame->SetVReg(dest_reg, src_value);
Sebastien Hertz9ace87b2013-09-27 11:48:09 +020038 }
39}
40
Sebastien Hertzc61124b2013-09-10 11:44:19 +020041template<bool is_range, bool do_assignability_check>
Sebastien Hertz9119c5f2013-12-16 11:31:45 +010042bool DoCall(ArtMethod* method, Thread* self, ShadowFrame& shadow_frame,
Sebastien Hertzc61124b2013-09-10 11:44:19 +020043 const Instruction* inst, uint16_t inst_data, JValue* result) {
44 // Compute method information.
Sebastien Hertz8ece0502013-08-07 11:26:41 +020045 MethodHelper mh(method);
46 const DexFile::CodeItem* code_item = mh.GetCodeItem();
Sebastien Hertzc61124b2013-09-10 11:44:19 +020047 const uint16_t num_ins = (is_range) ? inst->VRegA_3rc(inst_data) : inst->VRegA_35c(inst_data);
Sebastien Hertz8ece0502013-08-07 11:26:41 +020048 uint16_t num_regs;
Sebastien Hertz8ece0502013-08-07 11:26:41 +020049 if (LIKELY(code_item != NULL)) {
50 num_regs = code_item->registers_size_;
Sebastien Hertzc61124b2013-09-10 11:44:19 +020051 DCHECK_EQ(num_ins, code_item->ins_size_);
Sebastien Hertz8ece0502013-08-07 11:26:41 +020052 } else {
53 DCHECK(method->IsNative() || method->IsProxyMethod());
Sebastien Hertzc61124b2013-09-10 11:44:19 +020054 num_regs = num_ins;
Sebastien Hertz8ece0502013-08-07 11:26:41 +020055 }
56
Sebastien Hertzc61124b2013-09-10 11:44:19 +020057 // Allocate shadow frame on the stack.
Mathieu Chartiere861ebd2013-10-09 15:01:21 -070058 const char* old_cause = self->StartAssertNoThreadSuspension("DoCall");
Sebastien Hertz8ece0502013-08-07 11:26:41 +020059 void* memory = alloca(ShadowFrame::ComputeSize(num_regs));
60 ShadowFrame* new_shadow_frame(ShadowFrame::Create(num_regs, &shadow_frame, method, 0, memory));
Sebastien Hertzc61124b2013-09-10 11:44:19 +020061
62 // Initialize new shadow frame.
Sebastien Hertz9ace87b2013-09-27 11:48:09 +020063 const size_t first_dest_reg = num_regs - num_ins;
Jeff Haoa3faaf42013-09-03 19:07:00 -070064 if (do_assignability_check) {
Sebastien Hertz9ace87b2013-09-27 11:48:09 +020065 // Slow path: we need to do runtime check on reference assignment. We need to load the shorty
66 // to get the exact type of each reference argument.
67 const DexFile::TypeList* params = mh.GetParameterTypeList();
68 const char* shorty = mh.GetShorty();
69
Sebastien Hertz9ace87b2013-09-27 11:48:09 +020070 // TODO: find a cleaner way to separate non-range and range information without duplicating code.
71 uint32_t arg[5]; // only used in invoke-XXX.
72 uint32_t vregC; // only used in invoke-XXX-range.
73 if (is_range) {
74 vregC = inst->VRegC_3rc();
75 } else {
76 inst->GetArgs(arg, inst_data);
77 }
Sebastien Hertz9119c5f2013-12-16 11:31:45 +010078
79 // Handle receiver apart since it's not part of the shorty.
80 size_t dest_reg = first_dest_reg;
81 size_t arg_offset = 0;
82 if (!method->IsStatic()) {
83 size_t receiver_reg = (is_range) ? vregC : arg[0];
84 new_shadow_frame->SetVRegReference(dest_reg, shadow_frame.GetVRegReference(receiver_reg));
85 ++dest_reg;
86 ++arg_offset;
87 }
Ian Rogersef7d42f2014-01-06 12:55:46 -080088 for (uint32_t shorty_pos = 0; dest_reg < num_regs; ++shorty_pos, ++dest_reg, ++arg_offset) {
Sebastien Hertz9ace87b2013-09-27 11:48:09 +020089 DCHECK_LT(shorty_pos + 1, mh.GetShortyLength());
90 const size_t src_reg = (is_range) ? vregC + arg_offset : arg[arg_offset];
91 switch (shorty[shorty_pos + 1]) {
92 case 'L': {
93 Object* o = shadow_frame.GetVRegReference(src_reg);
94 if (do_assignability_check && o != NULL) {
95 Class* arg_type = mh.GetClassFromTypeIdx(params->GetTypeItem(shorty_pos).type_idx_);
96 if (arg_type == NULL) {
97 CHECK(self->IsExceptionPending());
Mathieu Chartiere861ebd2013-10-09 15:01:21 -070098 self->EndAssertNoThreadSuspension(old_cause);
Sebastien Hertz9ace87b2013-09-27 11:48:09 +020099 return false;
100 }
101 if (!o->VerifierInstanceOf(arg_type)) {
Mathieu Chartiere861ebd2013-10-09 15:01:21 -0700102 self->EndAssertNoThreadSuspension(old_cause);
Sebastien Hertz9ace87b2013-09-27 11:48:09 +0200103 // This should never happen.
104 self->ThrowNewExceptionF(self->GetCurrentLocationForThrow(),
105 "Ljava/lang/VirtualMachineError;",
106 "Invoking %s with bad arg %d, type '%s' not instance of '%s'",
107 mh.GetName(), shorty_pos,
108 ClassHelper(o->GetClass()).GetDescriptor(),
109 ClassHelper(arg_type).GetDescriptor());
110 return false;
111 }
Jeff Haoa3faaf42013-09-03 19:07:00 -0700112 }
Sebastien Hertz9ace87b2013-09-27 11:48:09 +0200113 new_shadow_frame->SetVRegReference(dest_reg, o);
114 break;
Jeff Haoa3faaf42013-09-03 19:07:00 -0700115 }
Sebastien Hertz9ace87b2013-09-27 11:48:09 +0200116 case 'J': case 'D': {
117 uint64_t wide_value = (static_cast<uint64_t>(shadow_frame.GetVReg(src_reg + 1)) << 32) |
118 static_cast<uint32_t>(shadow_frame.GetVReg(src_reg));
119 new_shadow_frame->SetVRegLong(dest_reg, wide_value);
120 ++dest_reg;
121 ++arg_offset;
122 break;
123 }
124 default:
125 new_shadow_frame->SetVReg(dest_reg, shadow_frame.GetVReg(src_reg));
126 break;
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200127 }
Sebastien Hertz9ace87b2013-09-27 11:48:09 +0200128 }
129 } else {
130 // Fast path: no extra checks.
131 if (is_range) {
132 const uint16_t first_src_reg = inst->VRegC_3rc();
133 for (size_t src_reg = first_src_reg, dest_reg = first_dest_reg; dest_reg < num_regs;
134 ++dest_reg, ++src_reg) {
Ian Rogersef7d42f2014-01-06 12:55:46 -0800135 AssignRegister(new_shadow_frame, shadow_frame, dest_reg, src_reg);
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200136 }
Sebastien Hertz9ace87b2013-09-27 11:48:09 +0200137 } else {
138 DCHECK_LE(num_ins, 5U);
139 uint16_t regList = inst->Fetch16(2);
140 uint16_t count = num_ins;
141 if (count == 5) {
Ian Rogersef7d42f2014-01-06 12:55:46 -0800142 AssignRegister(new_shadow_frame, shadow_frame, first_dest_reg + 4U, (inst_data >> 8) & 0x0f);
Sebastien Hertz9ace87b2013-09-27 11:48:09 +0200143 --count;
144 }
145 for (size_t arg_index = 0; arg_index < count; ++arg_index, regList >>= 4) {
Ian Rogersef7d42f2014-01-06 12:55:46 -0800146 AssignRegister(new_shadow_frame, shadow_frame, first_dest_reg + arg_index, regList & 0x0f);
Sebastien Hertz9ace87b2013-09-27 11:48:09 +0200147 }
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200148 }
149 }
Mathieu Chartiere861ebd2013-10-09 15:01:21 -0700150 self->EndAssertNoThreadSuspension(old_cause);
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200151
Sebastien Hertzc61124b2013-09-10 11:44:19 +0200152 // Do the call now.
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200153 if (LIKELY(Runtime::Current()->IsStarted())) {
Ian Rogers1d99e452014-01-02 17:36:41 -0800154 if (kIsDebugBuild && method->GetEntryPointFromInterpreter() == nullptr) {
155 LOG(FATAL) << "Attempt to invoke non-executable method: " << PrettyMethod(method);
156 }
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200157 (method->GetEntryPointFromInterpreter())(self, mh, code_item, new_shadow_frame, result);
158 } else {
Sebastien Hertz9ace87b2013-09-27 11:48:09 +0200159 UnstartedRuntimeInvoke(self, mh, code_item, new_shadow_frame, result, first_dest_reg);
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200160 }
161 return !self->IsExceptionPending();
162}
163
164template <bool is_range, bool do_access_check>
165bool DoFilledNewArray(const Instruction* inst, const ShadowFrame& shadow_frame,
166 Thread* self, JValue* result) {
167 DCHECK(inst->Opcode() == Instruction::FILLED_NEW_ARRAY ||
168 inst->Opcode() == Instruction::FILLED_NEW_ARRAY_RANGE);
169 const int32_t length = is_range ? inst->VRegA_3rc() : inst->VRegA_35c();
170 if (!is_range) {
171 // Checks FILLED_NEW_ARRAY's length does not exceed 5 arguments.
172 CHECK_LE(length, 5);
173 }
174 if (UNLIKELY(length < 0)) {
175 ThrowNegativeArraySizeException(length);
176 return false;
177 }
178 uint16_t type_idx = is_range ? inst->VRegB_3rc() : inst->VRegB_35c();
179 Class* arrayClass = ResolveVerifyAndClinit(type_idx, shadow_frame.GetMethod(),
180 self, false, do_access_check);
181 if (UNLIKELY(arrayClass == NULL)) {
182 DCHECK(self->IsExceptionPending());
183 return false;
184 }
185 CHECK(arrayClass->IsArrayClass());
186 Class* componentClass = arrayClass->GetComponentType();
187 if (UNLIKELY(componentClass->IsPrimitive() && !componentClass->IsPrimitiveInt())) {
188 if (componentClass->IsPrimitiveLong() || componentClass->IsPrimitiveDouble()) {
189 ThrowRuntimeException("Bad filled array request for type %s",
190 PrettyDescriptor(componentClass).c_str());
191 } else {
192 self->ThrowNewExceptionF(shadow_frame.GetCurrentLocationForThrow(),
193 "Ljava/lang/InternalError;",
Brian Carlstrom4fa0bcd2013-12-10 11:24:21 -0800194 "Found type %s; filled-new-array not implemented for anything but 'int'",
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200195 PrettyDescriptor(componentClass).c_str());
196 }
197 return false;
198 }
Mathieu Chartiercbb2d202013-11-14 17:45:16 -0800199 Object* newArray = Array::Alloc<true>(self, arrayClass, length);
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200200 if (UNLIKELY(newArray == NULL)) {
201 DCHECK(self->IsExceptionPending());
202 return false;
203 }
Sebastien Hertzabff6432014-01-27 18:01:39 +0100204 uint32_t arg[5]; // only used in filled-new-array.
205 uint32_t vregC; // only used in filled-new-array-range.
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200206 if (is_range) {
Sebastien Hertzabff6432014-01-27 18:01:39 +0100207 vregC = inst->VRegC_3rc();
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200208 } else {
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200209 inst->GetArgs(arg);
Sebastien Hertzabff6432014-01-27 18:01:39 +0100210 }
211 const bool is_primitive_int_component = componentClass->IsPrimitiveInt();
212 for (int32_t i = 0; i < length; ++i) {
213 size_t src_reg = is_range ? vregC + i : arg[i];
214 if (is_primitive_int_component) {
215 newArray->AsIntArray()->SetWithoutChecks(i, shadow_frame.GetVReg(src_reg));
216 } else {
217 newArray->AsObjectArray<Object>()->SetWithoutChecks(i, shadow_frame.GetVRegReference(src_reg));
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200218 }
219 }
220
221 result->SetL(newArray);
222 return true;
223}
224
Sebastien Hertzc61124b2013-09-10 11:44:19 +0200225static void UnstartedRuntimeInvoke(Thread* self, MethodHelper& mh,
226 const DexFile::CodeItem* code_item, ShadowFrame* shadow_frame,
227 JValue* result, size_t arg_offset) {
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200228 // In a runtime that's not started we intercept certain methods to avoid complicated dependency
229 // problems in core libraries.
230 std::string name(PrettyMethod(shadow_frame->GetMethod()));
Kenny Rootfa31b3c2013-12-09 13:51:32 -0800231 if (name == "java.lang.Class java.lang.Class.forName(java.lang.String)"
232 || name == "java.lang.Class java.lang.VMClassLoader.loadClass(java.lang.String, boolean)") {
233 // TODO Class#forName should actually call Class::EnsureInitialized always. Support for the
234 // other variants that take more arguments should also be added.
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200235 std::string descriptor(DotToDescriptor(shadow_frame->GetVRegReference(arg_offset)->AsString()->ToModifiedUtf8().c_str()));
Mathieu Chartier590fee92013-09-13 13:46:47 -0700236
237 SirtRef<ClassLoader> class_loader(self, nullptr); // shadow_frame.GetMethod()->GetDeclaringClass()->GetClassLoader();
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200238 Class* found = Runtime::Current()->GetClassLinker()->FindClass(descriptor.c_str(),
239 class_loader);
240 CHECK(found != NULL) << "Class.forName failed in un-started runtime for class: "
241 << PrettyDescriptor(descriptor);
242 result->SetL(found);
Kenny Rootfa31b3c2013-12-09 13:51:32 -0800243 } else if (name == "java.lang.Class java.lang.VMClassLoader.findLoadedClass(java.lang.ClassLoader, java.lang.String)") {
244 SirtRef<ClassLoader> class_loader(self, down_cast<mirror::ClassLoader*>(shadow_frame->GetVRegReference(arg_offset)));
245 std::string descriptor(DotToDescriptor(shadow_frame->GetVRegReference(arg_offset + 1)->AsString()->ToModifiedUtf8().c_str()));
246
247 Class* found = Runtime::Current()->GetClassLinker()->FindClass(descriptor.c_str(),
248 class_loader);
249 result->SetL(found);
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200250 } else if (name == "java.lang.Object java.lang.Class.newInstance()") {
251 Class* klass = shadow_frame->GetVRegReference(arg_offset)->AsClass();
252 ArtMethod* c = klass->FindDeclaredDirectMethod("<init>", "()V");
253 CHECK(c != NULL);
254 SirtRef<Object> obj(self, klass->AllocObject(self));
255 CHECK(obj.get() != NULL);
256 EnterInterpreterFromInvoke(self, c, obj.get(), NULL, NULL);
257 result->SetL(obj.get());
258 } else if (name == "java.lang.reflect.Field java.lang.Class.getDeclaredField(java.lang.String)") {
259 // Special managed code cut-out to allow field lookup in a un-started runtime that'd fail
260 // going the reflective Dex way.
261 Class* klass = shadow_frame->GetVRegReference(arg_offset)->AsClass();
262 String* name = shadow_frame->GetVRegReference(arg_offset + 1)->AsString();
263 ArtField* found = NULL;
264 FieldHelper fh;
265 ObjectArray<ArtField>* fields = klass->GetIFields();
266 for (int32_t i = 0; i < fields->GetLength() && found == NULL; ++i) {
267 ArtField* f = fields->Get(i);
268 fh.ChangeField(f);
269 if (name->Equals(fh.GetName())) {
270 found = f;
271 }
272 }
273 if (found == NULL) {
274 fields = klass->GetSFields();
275 for (int32_t i = 0; i < fields->GetLength() && found == NULL; ++i) {
276 ArtField* f = fields->Get(i);
277 fh.ChangeField(f);
278 if (name->Equals(fh.GetName())) {
279 found = f;
280 }
281 }
282 }
283 CHECK(found != NULL)
284 << "Failed to find field in Class.getDeclaredField in un-started runtime. name="
285 << name->ToModifiedUtf8() << " class=" << PrettyDescriptor(klass);
286 // TODO: getDeclaredField calls GetType once the field is found to ensure a
287 // NoClassDefFoundError is thrown if the field's type cannot be resolved.
288 Class* jlr_Field = self->DecodeJObject(WellKnownClasses::java_lang_reflect_Field)->AsClass();
Mathieu Chartiercbb2d202013-11-14 17:45:16 -0800289 SirtRef<Object> field(self, jlr_Field->AllocNonMovableObject(self));
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200290 CHECK(field.get() != NULL);
291 ArtMethod* c = jlr_Field->FindDeclaredDirectMethod("<init>", "(Ljava/lang/reflect/ArtField;)V");
292 uint32_t args[1];
Ian Rogersef7d42f2014-01-06 12:55:46 -0800293 args[0] = StackReference<mirror::Object>::FromMirrorPtr(found).AsVRegValue();
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200294 EnterInterpreterFromInvoke(self, c, field.get(), args, NULL);
295 result->SetL(field.get());
296 } else if (name == "void java.lang.System.arraycopy(java.lang.Object, int, java.lang.Object, int, int)" ||
297 name == "void java.lang.System.arraycopy(char[], int, char[], int, int)") {
298 // Special case array copying without initializing System.
299 Class* ctype = shadow_frame->GetVRegReference(arg_offset)->GetClass()->GetComponentType();
300 jint srcPos = shadow_frame->GetVReg(arg_offset + 1);
301 jint dstPos = shadow_frame->GetVReg(arg_offset + 3);
302 jint length = shadow_frame->GetVReg(arg_offset + 4);
303 if (!ctype->IsPrimitive()) {
304 ObjectArray<Object>* src = shadow_frame->GetVRegReference(arg_offset)->AsObjectArray<Object>();
305 ObjectArray<Object>* dst = shadow_frame->GetVRegReference(arg_offset + 2)->AsObjectArray<Object>();
306 for (jint i = 0; i < length; ++i) {
307 dst->Set(dstPos + i, src->Get(srcPos + i));
308 }
309 } else if (ctype->IsPrimitiveChar()) {
310 CharArray* src = shadow_frame->GetVRegReference(arg_offset)->AsCharArray();
311 CharArray* dst = shadow_frame->GetVRegReference(arg_offset + 2)->AsCharArray();
312 for (jint i = 0; i < length; ++i) {
313 dst->Set(dstPos + i, src->Get(srcPos + i));
314 }
315 } else if (ctype->IsPrimitiveInt()) {
316 IntArray* src = shadow_frame->GetVRegReference(arg_offset)->AsIntArray();
317 IntArray* dst = shadow_frame->GetVRegReference(arg_offset + 2)->AsIntArray();
318 for (jint i = 0; i < length; ++i) {
319 dst->Set(dstPos + i, src->Get(srcPos + i));
320 }
321 } else {
322 UNIMPLEMENTED(FATAL) << "System.arraycopy of unexpected type: " << PrettyDescriptor(ctype);
323 }
324 } else {
325 // Not special, continue with regular interpreter execution.
326 artInterpreterToInterpreterBridge(self, mh, code_item, shadow_frame, result);
327 }
328}
329
Sebastien Hertzc61124b2013-09-10 11:44:19 +0200330// Explicit DoCall template function declarations.
Sebastien Hertzc6714852013-09-30 16:42:32 +0200331#define EXPLICIT_DO_CALL_TEMPLATE_DECL(_is_range, _do_assignability_check) \
332 template SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) \
Sebastien Hertz9119c5f2013-12-16 11:31:45 +0100333 bool DoCall<_is_range, _do_assignability_check>(ArtMethod* method, Thread* self, \
334 ShadowFrame& shadow_frame, \
Sebastien Hertzc6714852013-09-30 16:42:32 +0200335 const Instruction* inst, uint16_t inst_data, \
336 JValue* result)
Sebastien Hertzc61124b2013-09-10 11:44:19 +0200337EXPLICIT_DO_CALL_TEMPLATE_DECL(false, false);
338EXPLICIT_DO_CALL_TEMPLATE_DECL(false, true);
339EXPLICIT_DO_CALL_TEMPLATE_DECL(true, false);
340EXPLICIT_DO_CALL_TEMPLATE_DECL(true, true);
341#undef EXPLICIT_DO_CALL_TEMPLATE_DECL
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200342
343// Explicit DoFilledNewArray template function declarations.
344#define EXPLICIT_DO_FILLED_NEW_ARRAY_TEMPLATE_DECL(_is_range_, _check) \
Sebastien Hertzc6714852013-09-30 16:42:32 +0200345 template SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) \
346 bool DoFilledNewArray<_is_range_, _check>(const Instruction* inst, \
Sebastien Hertz8ece0502013-08-07 11:26:41 +0200347 const ShadowFrame& shadow_frame, \
348 Thread* self, JValue* result)
349EXPLICIT_DO_FILLED_NEW_ARRAY_TEMPLATE_DECL(false, false);
350EXPLICIT_DO_FILLED_NEW_ARRAY_TEMPLATE_DECL(false, true);
351EXPLICIT_DO_FILLED_NEW_ARRAY_TEMPLATE_DECL(true, false);
352EXPLICIT_DO_FILLED_NEW_ARRAY_TEMPLATE_DECL(true, true);
353#undef EXPLICIT_DO_FILLED_NEW_ARRAY_TEMPLATE_DECL
354
355} // namespace interpreter
356} // namespace art