Searched refs:Array (Results 1 - 25 of 75) sorted by relevance

123

/art/test/045-reflect-array/src/
H A DMain.java5 import java.lang.reflect.Array;
8 * Test java.lang.reflect.Array.
27 intArray = Array.newInstance(Integer.TYPE, 2);
31 Array.setInt(intArray, 1, 6);
33 if (Array.getInt(intArray, 0) != 5)
42 Array.setInt(intArray, 2, 27);
45 if (array.length != Array.getLength(intArray) ||
54 Array.set(intArray, 0, x123);
55 Array.set(intArray, 1, x456);
56 if (!Array
[all...]
/art/runtime/mirror/
H A Darray.cc44 static Array* RecursiveCreateMultiArray(Thread* self,
50 Handle<Array> new_array(
52 Array::Alloc<true>(self, array_class.Get(), array_length,
64 ObjPtr<Array> sub_array = RecursiveCreateMultiArray(self, h_component_type,
71 new_array->AsObjectArray<Array>()->Set<false, false>(i, sub_array);
77 Array* Array::CreateMultiArray(Thread* self, Handle<Class> element_class,
114 ObjPtr<Array> new_array = RecursiveCreateMultiArray(self, array_class, 0, dimensions);
121 void Array::ThrowArrayIndexOutOfBoundsException(int32_t index) {
125 void Array
[all...]
H A Darray.h33 class MANAGED Array : public Object { class in namespace:art::mirror
42 ALWAYS_INLINE static Array* Alloc(Thread* self,
50 static Array* CreateMultiArray(Thread* self,
61 return GetField32<kVerifyFlags>(OFFSET_OF_OBJECT_MEMBER(Array, length_));
68 SetField32<false, false, kVerifyNone>(OFFSET_OF_OBJECT_MEMBER(Array, length_), length);
72 return OFFSET_OF_OBJECT_MEMBER(Array, length_);
95 Array* CopyOf(Thread* self, int32_t new_length) REQUIRES_SHARED(Locks::mutator_lock_)
111 DISALLOW_IMPLICIT_CONSTRUCTORS(Array);
115 class MANAGED PrimitiveArray : public Array {
193 class PointerArray : public Array {
[all...]
H A Darray-inl.h36 inline uint32_t Array::ClassSize(PointerSize pointer_size) {
42 inline size_t Array::SizeOf() {
54 inline MemberOffset Array::DataOffset(size_t component_size) {
56 size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size);
58 << "Array data offset isn't aligned with component size";
63 inline bool Array::CheckIsValidIndex(int32_t index) {
76 size_t header_size = Array::DataOffset(component_size).SizeValue();
109 ObjPtr<Array> array = ObjPtr<Array>::DownCast(obj);
133 ObjPtr<Array> arra
[all...]
H A Dobject_array.h27 class MANAGED ObjectArray: public Array {
31 return Array::ClassSize(pointer_size);
H A Dexecutable.h51 HeapReference<mirror::Array> parameters_;
H A Dobject_test.cc157 MutableHandle<Array> a(
158 hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSizeShift(),
164 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSizeShift(),
170 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSizeShift(),
180 MutableHandle<Array> a(
181 hs.NewHandle(Array::Alloc<true, true>(soa.Self(), c, 1, c->GetComponentSizeShift(),
187 a.Assign(Array::Alloc<true, true>(soa.Self(), c, 2, c->GetComponentSizeShift(),
193 a.Assign(Array::Alloc<true, true>(soa.Self(), c, 2, c->GetComponentSizeShift(),
199 a.Assign(Array::Alloc<true, true>(soa.Self(), c, 2, c->GetComponentSizeShift(),
321 Array* mult
[all...]
/art/test/ti-agent/
H A Dscoped_primitive_array.h49 Scoped ## NAME ## ArrayRO(JNIEnv* env, PRIMITIVE_TYPE ## Array javaArray) \
65 void reset(PRIMITIVE_TYPE ## Array javaArray) { \
76 PRIMITIVE_TYPE ## Array getJavaArray() const { return mJavaArray; } \
82 PRIMITIVE_TYPE ## Array mJavaArray; \
109 Scoped ## NAME ## ArrayRW(JNIEnv* env, PRIMITIVE_TYPE ## Array javaArray) \
122 void reset(PRIMITIVE_TYPE ## Array javaArray) { \
127 PRIMITIVE_TYPE ## Array getJavaArray() const { return mJavaArray; } \
134 PRIMITIVE_TYPE ## Array mJavaArray; \
/art/runtime/entrypoints/quick/
H A Dquick_fillarray_entrypoints.cc27 extern "C" int artHandleFillArrayDataFromCode(uint32_t payload_offset, mirror::Array* array,
H A Dquick_default_externs.h24 class Array;
68 // Array entrypoints.
69 extern "C" void art_quick_aput_obj_with_null_and_bound_check(art::mirror::Array*, int32_t,
71 extern "C" void art_quick_aput_obj_with_bound_check(art::mirror::Array*, int32_t,
73 extern "C" void art_quick_aput_obj(art::mirror::Array*, int32_t, art::mirror::Object*);
H A Dquick_entrypoints.h33 class Array;
/art/runtime/native/
H A Djava_lang_reflect_Array.cc44 mirror::Array* new_array = mirror::Array::CreateMultiArray(soa.Self(),
66 ObjPtr<mirror::Array> new_array = mirror::ObjectArray<mirror::Object*>::Alloc(
75 FAST_NATIVE_METHOD(Array, createMultiArray, "(Ljava/lang/Class;[I)Ljava/lang/Object;"),
76 FAST_NATIVE_METHOD(Array, createObjectArray, "(Ljava/lang/Class;I)Ljava/lang/Object;"),
80 REGISTER_NATIVE_METHODS("java/lang/reflect/Array");
H A Djava_lang_System.cc74 ObjPtr<mirror::Array> srcArray = srcObject->AsArray();
75 ObjPtr<mirror::Array> dstArray = dstObject->AsArray();
162 inline ObjPtr<T> AsPrimitiveArray(ObjPtr<mirror::Array> array)
174 ObjPtr<mirror::Array> srcArray = srcObject->AsArray();
175 ObjPtr<mirror::Array> dstArray = dstObject->AsArray();
H A Ddalvik_system_VMRuntime.cc97 ObjPtr<mirror::Array> result = mirror::Array::Alloc<true>(soa.Self(),
124 ObjPtr<mirror::Array> result = mirror::Array::Alloc<true, true>(
138 ObjPtr<mirror::Array> array = soa.Decode<mirror::Array>(javaArray);
/art/runtime/
H A Dasm_support.h200 // Array offsets.
202 ADD_TEST_EQ(MIRROR_ARRAY_LENGTH_OFFSET, art::mirror::Array::LengthOffset().Int32Value())
206 art::mirror::Array::DataOffset(sizeof(uint16_t)).Int32Value())
210 art::mirror::Array::DataOffset(sizeof(uint8_t)).Int32Value())
214 art::mirror::Array::DataOffset(sizeof(int8_t)).Int32Value())
218 art::mirror::Array::DataOffset(sizeof(int16_t)).Int32Value())
222 art::mirror::Array::DataOffset(sizeof(int32_t)).Int32Value())
226 art::mirror::Array::DataOffset(sizeof(uint64_t)).Int32Value())
230 art::mirror::Array::DataOffset(
239 art::mirror::Array
[all...]
H A Dtransaction.h35 class Array;
96 void RecordWriteArray(mirror::Array* array, size_t index, uint64_t value)
187 void Undo(mirror::Array* obj) const REQUIRES_SHARED(Locks::mutator_lock_);
197 void UndoArrayWrite(mirror::Array* array,
287 std::map<mirror::Array*, ArrayLog> array_logs_ GUARDED_BY(log_lock_);
H A Dtransaction.cc175 void Transaction::RecordWriteArray(mirror::Array* array, size_t index, uint64_t value) {
307 typedef std::pair<mirror::Array*, mirror::Array*> ArrayPair;
311 mirror::Array* old_root = it.first;
313 mirror::Array* new_root = old_root;
322 mirror::Array* old_root = pair.first;
323 mirror::Array* new_root = pair.second;
398 field_offset.Uint32Value() == mirror::Array::LengthOffset().Uint32Value()) {
399 // Skip Array::length field.
576 void Transaction::ArrayLog::Undo(mirror::Array* arra
[all...]
/art/test/003-omnibus-opcodes/src/
H A DMain.java46 Array.run();
/art/test/004-UnsafeTest/
H A Dunsafe_test.cc30 return mirror::Array::DataOffset(
/art/test/944-transform-classloaders/src/art/
H A DTest944.java208 int array_length = Array.getLength(elementArrayValue);
211 Object curElement = Array.get(elementArrayValue, i);
/art/runtime/entrypoints/
H A Dentrypoint_utils.h36 class Array;
88 ALWAYS_INLINE inline mirror::Array* AllocArrayFromCode(dex::TypeIndex type_idx,
97 ALWAYS_INLINE inline mirror::Array* AllocArrayFromCodeResolved(mirror::Class* klass,
H A Dentrypoint_utils-inl.h280 inline mirror::Array* AllocArrayFromCode(dex::TypeIndex type_idx,
294 return mirror::Array::Alloc</*kInstrumented*/true>(self,
300 return mirror::Array::Alloc<kInstrumented>(self, klass, component_count,
306 inline mirror::Array* AllocArrayFromCodeResolved(mirror::Class* klass,
317 return mirror::Array::Alloc<kInstrumented>(self, klass, component_count,
/art/compiler/optimizing/
H A Dinstruction_simplifier_arm.cc175 size_t data_offset = mirror::Array::DataOffset(access_size).Uint32Value();
H A Dinstruction_simplifier_arm64.cc154 size_t data_offset = mirror::Array::DataOffset(access_size).Uint32Value();
/art/test/201-built-in-except-detail-messages/src/
H A DMain.java17 import java.lang.reflect.Array;
251 return Array.newInstance(c, 1);
344 // Array length.

Completed in 503 milliseconds

123