/art/runtime/mirror/ |
H A D | array-inl.h | 20 #include "array.h" 37 // This is safe from overflow because the array was already allocated, so we know it's sane. 80 // Used for setting the array length in the allocation code path to ensure it is guarded by a 91 Array* array = down_cast<Array*>(obj); local 92 // DCHECK(array->IsArrayInstance()); 93 array->SetLength(length_); 102 // Similar to SetLengthVisitor, used for setting the array length to fill the usable size of an 103 // array. 113 Array* array = down_cast<Array*>(obj); local 114 // DCHECK(array [all...] |
H A D | object_array-inl.h | 37 Array* array = Array::Alloc<true>(self, object_array_class, length, local 39 if (UNLIKELY(array == nullptr)) { 42 return array->AsObjectArray<T>(); 199 // we know is assignable to the destination array's component type. 221 // Can't put this element into the array, break to perform write-barrier and throw 235 "source[%d] of type %s cannot be stored in destination array of type %s", 238 LOG(FATAL) << StringPrintf("source[%d] of type %s cannot be stored in destination array of type %s",
|
H A D | object.cc | 23 #include "array-inl.h" 88 ObjectArray<Object>* array = dest->AsObjectArray<Object>(); local 89 heap->WriteBarrierArray(dest, 0, array->GetLength()); 122 // Object::SizeOf gets the right size even if we're an array. Using c->AllocObject() here would 217 // Bounds and assign-ability done in the array setter.
|
H A D | string.h | 40 // Size of an instance of java.lang.String not including its value array. 149 static String* Alloc(Thread* self, Handle<CharArray> array)
|
H A D | object_test.cc | 23 #include "array-inl.h" 274 Object* array = CheckAndAllocArrayFromCodeInstrumented(type_idx, sort, 3, Thread::Current(), false, local 276 EXPECT_TRUE(array->IsArrayInstance()); 277 EXPECT_EQ(3, array->AsArray()->GetLength()); 278 EXPECT_TRUE(array->GetClass()->IsArrayClass()); 279 EXPECT_TRUE(array->GetClass()->GetComponentType()->IsPrimitive()); 545 // All array classes implement Cloneable and Serializable. 546 Object* array = ObjectArray<Object>::Alloc(soa.Self(), Object_array_class, 1); local 549 EXPECT_TRUE(array->InstanceOf(java_lang_Cloneable)); 550 EXPECT_TRUE(array [all...] |
/art/runtime/ |
H A D | check_jni.cc | 675 * Verify that "array" is non-NULL and points to an Array object. 691 JniAbortF(function_name_, "jarray argument has non-array type: %s", PrettyTypeOf(a).c_str()); 751 * Verify that the "mode" argument passed to a primitive array Release 1077 * Create a guarded copy of a primitive array. Modifications to the copied 1094 * Perform the array "release" operation, which may or may not copy data 1547 static jsize GetArrayLength(JNIEnv* env, jarray array) { argument 1548 CHECK_JNI_ENTRY(kFlag_CritOkay, "Ea", env, array); 1549 return CHECK_JNI_EXIT("I", baseEnv(env)->GetArrayLength(env, array)); 1557 static jobject GetObjectArrayElement(JNIEnv* env, jobjectArray array, jsize index) { argument 1558 CHECK_JNI_ENTRY(kFlag_Default, "EaI", env, array, inde 1562 SetObjectArrayElement(JNIEnv* env, jobjectArray array, jsize index, jobject value) argument 1594 Check(JNIEnv* env, jarray array, jboolean* isCopy, ResultT result) argument 1696 GetPrimitiveArrayCritical(JNIEnv* env, jarray array, jboolean* isCopy) argument 1705 ReleasePrimitiveArrayCritical(JNIEnv* env, jarray array, void* carray, jint mode) argument [all...] |
H A D | transaction.h | 54 // Record array change. 55 void RecordWriteArray(mirror::Array* array, size_t index, uint64_t value) 127 void UndoArrayWrite(mirror::Array* array, Primitive::Type array_type, size_t index,
|
H A D | runtime.h | 436 void RecordWriteArray(mirror::Array* array, size_t index, uint64_t value) const
|
H A D | Android.mk | 97 mirror/array.cc \
|
H A D | runtime.cc | 61 #include "mirror/array.h" 1123 // Visit all the primitive array types classes. 1387 void Runtime::RecordWriteArray(mirror::Array* array, size_t index, uint64_t value) const { argument 1390 preinitialization_transaction_->RecordWriteArray(array, index, value);
|
/art/runtime/arch/ |
H A D | stub_test.cc | 892 // Build a string array of size 1 893 Handle<mirror::ObjectArray<mirror::Object>> array( 906 // 1.1) Assign str_obj to array[0..3] 910 Invoke3(reinterpret_cast<size_t>(array.Get()), 0U, reinterpret_cast<size_t>(str_obj.Get()), 914 EXPECT_EQ(str_obj.Get(), array->Get(0)); 916 Invoke3(reinterpret_cast<size_t>(array.Get()), 1U, reinterpret_cast<size_t>(str_obj.Get()), 920 EXPECT_EQ(str_obj.Get(), array->Get(1)); 922 Invoke3(reinterpret_cast<size_t>(array.Get()), 2U, reinterpret_cast<size_t>(str_obj.Get()), 926 EXPECT_EQ(str_obj.Get(), array->Get(2)); 928 Invoke3(reinterpret_cast<size_t>(array 1182 mirror::Array* array = reinterpret_cast<mirror::Array*>(result); local [all...] |
/art/runtime/native/ |
H A D | java_lang_System.cc | 20 #include "mirror/array.h" 32 * cause "word tearing". Accesses to 64-bit array elements may be two 32-bit operations. 36 static void ThrowArrayStoreException_NotAnArray(const char* identifier, mirror::Object* array) 38 std::string actualType(PrettyTypeOf(array)); 42 "%s of type %s is not an array", identifier, actualType.c_str()); 124 LOG(FATAL) << "Unknown array type: " << PrettyTypeOf(srcArray); 128 // If one of the arrays holds a primitive type the other array must hold the exact same type. 150 // Template to convert general array to that of its specific primitive type. 152 inline T* AsPrimitiveArray(mirror::Array* array) { argument 153 return down_cast<T*>(array); [all...] |
H A D | dalvik_system_VMRuntime.cc | 113 mirror::Array* array = soa.Decode<mirror::Array*>(javaArray); local 114 if (!array->IsArrayInstance()) { 115 ThrowIllegalArgumentException(NULL, "not an array"); 118 if (Runtime::Current()->GetHeap()->IsMovableObject(array)) { 119 ThrowRuntimeException("Trying to get address of movable array object"); 122 return reinterpret_cast<uintptr_t>(array->GetRawData(array->GetClass()->GetComponentSize(), 0));
|
/art/compiler/dex/ |
H A D | local_value_numbering.cc | 111 uint16_t array) { 112 return gvn->LookupValue(kNonAliasingArrayStartVersionOp, array, kNoValue, kNoValue); 122 uint16_t array, uint16_t index, uint16_t memory_version) { 123 return gvn->LookupValue(kNonAliasingArrayOp, array, index, memory_version); 127 uint16_t array, uint16_t index) { 129 gvn, lvn, &lvn->non_aliasing_array_value_map_, array, index); 133 uint16_t array) { 138 uint16_t array) { 139 return gvn->LookupValue(kMergeBlockNonAliasingArrayVersionBumpOp, array, kNoValue, lvn_id); 143 uint16_t array, uint16_ 110 StartMemoryVersion(GlobalValueNumbering* gvn, const LocalValueNumbering* lvn, uint16_t array) argument 121 LookupGlobalValue(GlobalValueNumbering* gvn, uint16_t array, uint16_t index, uint16_t memory_version) argument 126 LookupMergeValue(GlobalValueNumbering* gvn, const LocalValueNumbering* lvn, uint16_t array, uint16_t index) argument 132 HasNewBaseVersion(GlobalValueNumbering* gvn, const LocalValueNumbering* lvn, uint16_t array) argument 137 LookupMergeBlockValue(GlobalValueNumbering* gvn, uint16_t lvn_id, uint16_t array) argument 142 LookupMergeLocationValue(GlobalValueNumbering* gvn, uint16_t lvn_id, uint16_t array, uint16_t index) argument 170 uint16_t array = gvn->GetArrayLocationBase(location); local 989 HandleRangeCheck(MIR* mir, uint16_t array, uint16_t index) argument 1082 uint16_t array = GetOperandValue(mir->ssa_rep->uses[0]); local 1108 uint16_t array = GetOperandValue(mir->ssa_rep->uses[array_idx]); local 1403 uint16_t array = MarkNonAliasingNonNull(mir->next); local [all...] |
/art/runtime/interpreter/ |
H A D | interpreter_common.cc | 20 #include "mirror/array-inl.h" 685 ThrowRuntimeException("Bad filled array request for type %s", 690 "Found type %s; filled-new-array not implemented for anything but 'int'", 701 uint32_t arg[5]; // only used in filled-new-array. 702 uint32_t vregC; // only used in filled-new-array-range. 724 static void RecordArrayElementsInTransactionImpl(mirror::PrimitiveArray<T>* array, int32_t count) 728 runtime->RecordWriteArray(array, i, array->GetWithoutChecks(i)); 732 void RecordArrayElementsInTransaction(mirror::Array* array, int32_t count) 735 DCHECK(array ! [all...] |
H A D | interpreter_common.h | 93 void RecordArrayElementsInTransaction(mirror::Array* array, int32_t count) 275 // Handles filled-new-array and filled-new-array-range instructions.
|
/art/compiler/driver/ |
H A D | compiler_driver.h | 784 size_t operator()(const std::vector<uint8_t>& array) const { 788 if (array.size() <= kSmallArrayThreshold) { 789 for (uint8_t b : array) { 798 uint8_t b = array[i + 6]; 803 uint8_t b = array[r % array.size()];
|
/art/test/107-int-math2/src/ |
H A D | Main.java | 825 static void throwArrayStoreException(Object[] array, Object element) { argument 826 array[0] = element; 831 Object[] array = new Number[2]; 833 throwArrayStoreException(array, null); 839 throwArrayStoreException(array, Integer.valueOf(1)); 845 throwArrayStoreException(array, "hello MTV-44");
|
/art/compiler/dex/quick/x86/ |
H A D | x86_lir.h | 494 #define UnaryOpcode(opcode, reg, mem, array) \ 495 opcode ## 8 ## reg, opcode ## 8 ## mem, opcode ## 8 ## array, \ 496 opcode ## 16 ## reg, opcode ## 16 ## mem, opcode ## 16 ## array, \ 497 opcode ## 32 ## reg, opcode ## 32 ## mem, opcode ## 32 ## array, \ 498 opcode ## 64 ## reg, opcode ## 64 ## mem, opcode ## 64 ## array
|
/art/runtime/verifier/ |
H A D | reg_type_cache.cc | 560 RegType& RegTypeCache::GetComponentType(RegType& array, mirror::ClassLoader* loader) { argument 561 if (!array.IsArrayTypes()) { 563 } else if (array.IsUnresolvedTypes()) { 564 const std::string& descriptor(array.GetDescriptor()); 568 mirror::Class* klass = array.GetClass()->GetComponentType(); 593 // be in the entries array, and therefore not visited as roots.
|
H A D | reg_type_cache.h | 143 RegType& GetComponentType(RegType& array, mirror::ClassLoader* loader)
|
/art/compiler/optimizing/ |
H A D | nodes.h | 1376 HArrayGet(HInstruction* array, HInstruction* index, Primitive::Type type) argument 1378 SetRawInputAt(0, array); 1390 HArraySet(HInstruction* array, argument 1394 SetRawInputAt(0, array); 1400 // We currently always call a runtime method to catch array store 1417 explicit HArrayLength(HInstruction* array) : HExpression(Primitive::kPrimInt) { argument 1418 SetRawInputAt(0, array);
|
/art/test/004-JniTest/ |
H A D | jni_test.cc | 68 jobjectArray array = env->NewObjectArray(0, clazz, nullptr); local 69 assert(array != nullptr);
|
/art/runtime/arch/arm/ |
H A D | portable_entrypoints_arm.S | 23 * r1 = argument array or NULL for no argument methods 24 * r2 = size of argument array in bytes 46 sub sp, r5 @ reserve stack space for argument array
|
/art/compiler/llvm/ |
H A D | gbc_expander.cc | 25 #include "mirror/array.h" 214 llvm::Value* EmitLoadArrayLength(llvm::Value* array); 374 llvm::Value* array, 754 llvm::Value* GBCExpanderPass::EmitLoadArrayLength(llvm::Value* array) { argument 755 // Load array length 756 return irb_.LoadFromObjectOffset(array, 1058 llvm::Value* array = call_inst.getArgOperand(0); local 1072 // NOTE: Currently filled-new-array only supports 'L', '[', and 'I' 1089 irb_.CreatePtrDisp(array, data_field_offset, field_type); 1092 // Values to fill the array begi 2620 EmitGuard_ArrayIndexOutOfBoundsException(uint32_t dex_pc, llvm::Value* array, llvm::Value* index, int opt_flags) argument [all...] |