Home
last modified time | relevance | path

Searched refs:arrayHandle (Results 1 – 15 of 15) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Dhuge_object_test.cpp82 JSHandle<TaggedArray> arrayHandle(thread, array); in HWTEST_F_L0() local
84 arrayHandle->Set(thread, 0, newObj.GetTaggedValue()); in HWTEST_F_L0()
86 EXPECT_EQ(*arrayHandle, reinterpret_cast<TaggedObject *>(array)); in HWTEST_F_L0()
90 EXPECT_EQ(*arrayHandle, reinterpret_cast<TaggedObject *>(array)); in HWTEST_F_L0()
Dtagged_dictionary_test.cpp182 JSHandle<JSTaggedValue> arrayHandle(thread, in HWTEST_F_L0() local
184 int entry = dictHandle->FindEntry(arrayHandle.GetTaggedValue()); in HWTEST_F_L0()
334 JSHandle<JSTaggedValue> arrayHandle(thread, JSTaggedValue(9)); in HWTEST_F_L0() local
335 int entry = dictHandle->FindEntry(arrayHandle.GetTaggedValue()); in HWTEST_F_L0()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
Dstd_core.cpp65 VMHandle<coretypes::Array> arrayHandle(coroutine, arr); in StdCoreStackTraceLines() local
70 arrayHandle.GetPtr()->Set(i, str); in StdCoreStackTraceLines()
73 return reinterpret_cast<EtsArray *>(arrayHandle.GetPtr()); in StdCoreStackTraceLines()
Dstd_core_Type.cpp585 …VMHandle<EtsObjectArray> arrayHandle(coroutine, EtsObjectArray::Create(typeClass, len)->GetCoreTyp… in TypeAPIMakeArrayInstance() local
586 for (size_t i = 0; i < arrayHandle->GetLength(); ++i) { in TypeAPIMakeArrayInstance()
588 arrayHandle->Set(i, elementHandle.GetPtr()); in TypeAPIMakeArrayInstance()
590 return arrayHandle->AsObject(); in TypeAPIMakeArrayInstance()
/arkcompiler/ets_runtime/ecmascript/base/tests/
Darray_helper_test.cpp125 JSHandle<JSTaggedValue> arrayHandle(thread, handleArr); in HWTEST_F_L0() local
126 EXPECT_EQ(ArrayHelper::GetLength(thread, arrayHandle), 10U); in HWTEST_F_L0()
159 JSHandle<JSTaggedValue> arrayHandle(thread, handleArr); in HWTEST_F_L0() local
160 EXPECT_EQ(ArrayHelper::GetLength(thread, arrayHandle), 0U); in HWTEST_F_L0()
/arkcompiler/runtime_core/static_core/runtime/core/
Dcore_vm.cpp248 VMHandle<coretypes::Array> arrayHandle(thread, array); in CreateArgumentsArray() local
252 arrayHandle.GetPtr()->Set(i, str); in CreateArgumentsArray()
255 return arrayHandle.GetPtr(); in CreateArgumentsArray()
/arkcompiler/ets_runtime/ecmascript/compiler/
Daot_compiler_preprocessor.cpp230 JSHandle<JSArray> arrayHandle(thread, arr); in GenerateGlobalTypes() local
233 … ptManager->RecordElements(id, arrayHandle->GetElements()); in GenerateGlobalTypes()
Dntype_hcr_lowering.cpp92 JSHandle<JSArray> arrayHandle(thread_, arr); in LowerCreateArrayWithBuffer() local
93 TaggedArray *arrayLiteral = TaggedArray::Cast(arrayHandle->GetElements()); in LowerCreateArrayWithBuffer()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
Dets_vm.cpp398 EtsHandle<EtsObjectArray> arrayHandle(coroutine, etsArray); in CreateArgumentsArray() local
402 arrayHandle.GetPtr()->Set(i, str->AsObject()); in CreateArgumentsArray()
405 return arrayHandle.GetPtr(); in CreateArgumentsArray()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_plainarray_test.cpp161 JSHandle<JSAPIPlainArray> arrayHandle(thread, result); in HWTEST_F_L0() local
162 JSTaggedValue resultProto = JSObject::GetPrototype(JSHandle<JSObject>::Cast(arrayHandle)); in HWTEST_F_L0()
165 int size = arrayHandle->GetSize(); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/compiler/aot_snapshot/
Dsnapshot_constantpool_data.cpp163 JSHandle<TaggedArray> arrayHandle(thread_, classLiteral->GetArray()); in StoreDataToGlobalData() local
179 … CollectLiteralInfo(arrayHandle, data.constantPoolIdx_, snapshotCp, skippedMethods, ihc, chc); in StoreDataToGlobalData()
/arkcompiler/runtime_core/static_core/runtime/coretypes/
Dstring.cpp183 VMHandle<Array> arrayHandle(thread, chararray); in CreateNewStringFromChars() local
200 … src = reinterpret_cast<uint16_t *>(ToUintPtr<uint32_t>(arrayHandle->GetData()) + (offset << 1UL)); in CreateNewStringFromChars()
225 VMHandle<Array> arrayHandle(thread, bytearray); in CreateNewStringFromBytes() local
239 src = reinterpret_cast<uint8_t *>(ToUintPtr<uint32_t>(arrayHandle->GetData()) + offset); in CreateNewStringFromBytes()
/arkcompiler/ets_runtime/ecmascript/ic/
Dic_runtime_stub-inl.h343 auto arrayHandle = JSHandle<TaggedArray>(thread, array); in StoreWithTransition() local
347 properties = factory->CopyArray(arrayHandle, capacity, newLen); in StoreWithTransition()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs-inl.h893 JSHandle<TaggedArray> arrayHandle(thread, classLiteral->GetArray()); in RuntimeCreateClassWithBuffer()
895 ClassInfoExtractor::BuildClassInfoExtractorFromLiteral(thread, extractor, arrayHandle); in RuntimeCreateClassWithBuffer()
938 JSHandle<TaggedArray> arrayHandle(thread, classLiteral->GetArray()); in RuntimeCreateSharedClass()
939 auto literalLength = arrayHandle->GetLength(); in RuntimeCreateSharedClass()
941 auto fieldTypeId = static_cast<uint32_t>(arrayHandle->Get(literalLength - 1).GetInt()); in RuntimeCreateSharedClass()
942 arrayHandle->Trim(thread, literalLength - 1); in RuntimeCreateSharedClass()
944 ClassInfoExtractor::BuildClassInfoExtractorFromLiteral(thread, extractor, arrayHandle); in RuntimeCreateSharedClass()
Druntime_stubs.cpp344 …JSHandle<TaggedArray> arrayHandle = GetHArg<TaggedArray>(argv, argc, 2); // 2: means the second … in DEF_RUNTIME_STUBS() local
358 properties = factory->CopyArray(arrayHandle, capacity, newLen); in DEF_RUNTIME_STUBS()