/art/test/045-reflect-array/src/ |
H A D | Main.java | 5 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 D | array.cc | 44 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 D | array.h | 33 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 D | array-inl.h | 36 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 D | object_array.h | 27 class MANAGED ObjectArray: public Array { 31 return Array::ClassSize(pointer_size);
|
H A D | executable.h | 51 HeapReference<mirror::Array> parameters_;
|
H A D | object_test.cc | 157 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 D | scoped_primitive_array.h | 49 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 D | quick_fillarray_entrypoints.cc | 27 extern "C" int artHandleFillArrayDataFromCode(uint32_t payload_offset, mirror::Array* array,
|
H A D | quick_default_externs.h | 24 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 D | quick_entrypoints.h | 33 class Array;
|
/art/runtime/native/ |
H A D | java_lang_reflect_Array.cc | 44 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 D | java_lang_System.cc | 74 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 D | dalvik_system_VMRuntime.cc | 97 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 D | asm_support.h | 200 // 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 D | transaction.h | 35 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 D | transaction.cc | 175 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 D | Main.java | 46 Array.run();
|
/art/test/004-UnsafeTest/ |
H A D | unsafe_test.cc | 30 return mirror::Array::DataOffset(
|
/art/test/944-transform-classloaders/src/art/ |
H A D | Test944.java | 208 int array_length = Array.getLength(elementArrayValue); 211 Object curElement = Array.get(elementArrayValue, i);
|
/art/runtime/entrypoints/ |
H A D | entrypoint_utils.h | 36 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 D | entrypoint_utils-inl.h | 280 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 D | instruction_simplifier_arm.cc | 175 size_t data_offset = mirror::Array::DataOffset(access_size).Uint32Value();
|
H A D | instruction_simplifier_arm64.cc | 154 size_t data_offset = mirror::Array::DataOffset(access_size).Uint32Value();
|
/art/test/201-built-in-except-detail-messages/src/ |
H A D | Main.java | 17 import java.lang.reflect.Array; 251 return Array.newInstance(c, 1); 344 // Array length.
|