/arkcompiler/ets_runtime/ecmascript/ |
D | elements.cpp | 144 JSMutableHandle<TaggedArray> newElements(thread, JSTaggedValue::Undefined()); in MigrateArrayWithKind() local 146 newElements.Update(factory->NewCOWTaggedArray(length)); in MigrateArrayWithKind() 148 newElements.Update(factory->NewTaggedArray(length)); in MigrateArrayWithKind() 153 newElements->Set(thread, i, JSTaggedValue::Hole()); in MigrateArrayWithKind() 156 newElements->Set(thread, i, JSTaggedValue(convertedValue)); in MigrateArrayWithKind() 159 object->SetElements(thread, newElements); in MigrateArrayWithKind() 176 JSMutableHandle<TaggedArray> newElements(thread, JSTaggedValue::Undefined()); in MigrateArrayWithKind() local 178 newElements.Update(factory->NewCOWTaggedArray(length)); in MigrateArrayWithKind() 180 newElements.Update(factory->NewTaggedArray(length)); in MigrateArrayWithKind() 185 newElements->Set(thread, i, JSTaggedValue::Hole()); in MigrateArrayWithKind() [all …]
|
D | js_array.h | 120 JSHandle<TaggedArray> newElements(factory->NewTaggedArray(length)); in ArrayCreateWithInit() 122 JSHandle<JSTaggedValue> array(JSArray::CreateArrayFromList(thread, newElements)); in ArrayCreateWithInit() 123 cb(newElements, length); in ArrayCreateWithInit()
|
D | js_stable_array.cpp | 1170 …JSHandle<MutantTaggedArray> newElements = thread->GetEcmaVM()->GetFactory()->NewMutantTaggedArray(… in Fill() local 1174 newElements->Set<false>(thread, idx, migratedValue); in Fill() 1176 thisObj->SetElements(thread, newElements); in Fill() 1178 … JSHandle<TaggedArray> newElements = thread->GetEcmaVM()->GetFactory()->NewTaggedArray(len); in Fill() local 1180 newElements->Set(thread, idx, value); in Fill() 1182 thisObj->SetElements(thread, newElements); in Fill()
|
D | tagged_list.cpp | 138 JSHandle<TaggedArray> newElements = factory->ConvertListToArray(thread, list, numberOfNodes); in TaggedListToArray() local 139 array->SetElements(thread, newElements); in TaggedListToArray()
|
D | object_factory.cpp | 458 auto newElements = CloneProperties(elements); in CloneObjectLiteral() local 459 cloneObject->SetElements(thread_, newElements.GetTaggedValue()); in CloneObjectLiteral() 495 …auto newElements = CopyArray(elements, elementsLength, elementsLength, JSTaggedValue::Hole(), type… in CloneArrayLiteral() local 496 cloneObject->SetElements(thread_, newElements.GetTaggedValue()); in CloneArrayLiteral() 576 auto newElements = CloneProperties(elements, env, cloneObject); in CloneObjectLiteral() local 577 cloneObject->SetElements(thread_, newElements.GetTaggedValue()); in CloneObjectLiteral() 656 auto newElements = CloneProperties(elements, lexenv, JSHandle<JSObject>(cloneCtor)); in CloneClassCtor() local 657 cloneCtor->SetElements(thread_, newElements.GetTaggedValue()); in CloneClassCtor()
|
D | js_object.cpp | 106 JSHandle<TaggedArray> newElements = factory->CopyArray(oldElements, oldLength, newCapacity, in GrowElementsCapacity() local 108 obj->SetElements(thread, newElements); in GrowElementsCapacity() 113 return newElements; in GrowElementsCapacity()
|
/arkcompiler/ets_runtime/ecmascript/js_api/ |
D | js_api_queue.cpp | 46 JSHandle<TaggedArray> newElements; in GrowCapacity() local 55 … newElements = thread->GetEcmaVM()->GetFactory()->CopyArray(oldElements, oldLength, newCapacity); in GrowCapacity() 58 … newElements = thread->GetEcmaVM()->GetFactory()->CopyQueue(oldElements, newCapacity, front, tail); in GrowCapacity() 65 obj->SetElements(thread, newElements); in GrowCapacity() 68 return newElements; in GrowCapacity() 166 JSHandle<TaggedArray> newElements = in OwnKeys() local 170 obj->SetElements(thread, newElements); in OwnKeys() 185 JSHandle<TaggedArray> newElements = in OwnEnumKeys() local 189 obj->SetElements(thread, newElements); in OwnEnumKeys()
|
D | js_api_deque.cpp | 106 JSHandle<TaggedArray> newElements = in GrowCapacity() local 108 deque->SetElements(thread, newElements); in GrowCapacity() 109 return newElements; in GrowCapacity() 211 JSHandle<TaggedArray> newElements = in OwnKeys() local 215 deque->SetElements(thread, newElements); in OwnKeys() 230 JSHandle<TaggedArray> newElements = in OwnEnumKeys() local 234 deque->SetElements(thread, newElements); in OwnEnumKeys()
|
D | js_api_stack.cpp | 91 JSHandle<TaggedArray> newElements = in GrowCapacity() local 94 obj->SetElements(thread, newElements); in GrowCapacity() 95 return newElements; in GrowCapacity()
|
D | js_api_arraylist.cpp | 108 JSHandle<TaggedArray> newElements = factory->NewAndCopyTaggedArray(elementData, in IncreaseCapacityTo() local 110 arrayList->SetElements(thread, newElements); in IncreaseCapacityTo() 369 JSHandle<TaggedArray> newElements = in GrowCapacity() local 372 obj->SetElements(thread, newElements); in GrowCapacity() 373 return newElements; in GrowCapacity()
|
D | js_api_vector.cpp | 90 JSHandle<TaggedArray> newElements = in IncreaseCapacityTo() local 92 vector->SetElements(thread, newElements); in IncreaseCapacityTo() 366 JSHandle<TaggedArray> newElements = in GrowCapacity() local 369 vector->SetElements(thread, newElements); in GrowCapacity()
|
D | js_api_lightweightset.cpp | 304 JSHandle<TaggedArray> newElements = in IncreaseCapacityTo() local 307 obj->SetHashes(thread, newElements); in IncreaseCapacityTo()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_api_deque_iterator_test.cpp | 74 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIDeque::DEFAULT_CAPACITY_LENGTH); in CreateJSApiDeque() local 75 deque->SetElements(thread, newElements); in CreateJSApiDeque()
|
D | js_api_queue_iterator_test.cpp | 74 JSHandle<TaggedArray> newElements = factory->NewTaggedArray(capacaty); in CreateQueue() local 75 jsQueue->SetElements(thread, newElements); in CreateQueue()
|
D | js_api_deque_test.cpp | 83 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIDeque::DEFAULT_CAPACITY_LENGTH); in CreateDeque() local 84 deque->SetElements(thread, newElements); in CreateDeque()
|
D | js_api_queue_test.cpp | 72 JSHandle<TaggedArray> newElements = factory->NewTaggedArray(capacaty); in CreateQueue() local 73 jsQueue->SetElements(thread, newElements); in CreateQueue()
|
D | js_api_arraylist_test.cpp | 211 JSHandle<TaggedArray> newElements(thread, newArrayList->GetElements()); in HWTEST_F_L0() local 214 EXPECT_EQ(newElements->Get(i), JSTaggedValue(i)); in HWTEST_F_L0()
|
D | dump_test.cpp | 364 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIQueue::DEFAULT_CAPACITY_LENGTH); in NewJSAPIQueue() local 368 jsQueue->SetElements(thread, newElements); in NewJSAPIQueue() 376 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIDeque::DEFAULT_CAPACITY_LENGTH); in NewJSAPIDeque() local 379 jsDeque->SetElements(thread, newElements); in NewJSAPIDeque()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_function.cpp | 87 JSHandle<TaggedArray> newElements = thread->GetEcmaVM()->GetFactory()-> in BuildArgumentsListFast() local 91 newElements->Set(thread, i, value); in BuildArgumentsListFast() 93 elements = *newElements; in BuildArgumentsListFast()
|
D | builtins_string.cpp | 1551 (const JSHandle<TaggedArray> &newElements, [[maybe_unused]] uint32_t length) { in CreateArrayThisStringAndSeperatorStringAreNotEmpty() argument 1559 newElements->Set(thread, i, elementTag); in CreateArrayThisStringAndSeperatorStringAreNotEmpty() 1566 newElements->Set(thread, posArrLength, elementTag); in CreateArrayThisStringAndSeperatorStringAreNotEmpty() 1570 …ingSplitResultCache::SetCachedResult(thread, cacheTable, thisString, seperatorString, newElements); in CreateArrayThisStringAndSeperatorStringAreNotEmpty() 2171 JSHandle<TaggedArray> newElements(factory->NewTaggedArray(arrayLength)); in SetCachedResult() local 2173 newElements->Set(thread, i, resultArray->Get(i)); in SetCachedResult() 2181 cache->Set(thread, index + ARRAY_INDEX, newElements); in SetCachedResult() 2225 JSHandle<TaggedArray> newElements(factory->NewCOWTaggedArray(arrayLength)); in SetCachedResult() local 2227 newElements->Set(thread, i, resultArray->Get(i)); in SetCachedResult() 2233 cache->Set(thread, index + ARRAY_INDEX, newElements); in SetCachedResult()
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/ |
D | jsvaluerefismodulenamespace_fuzzer.cpp | 200 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIQueue::DEFAULT_CAPACITY_LENGTH); in IsDequeFuzztest() local 204 jsQueue->SetElements(thread, newElements); in IsDequeFuzztest()
|
/arkcompiler/ets_runtime/ecmascript/containers/ |
D | containers_deque.cpp | 48 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIDeque::DEFAULT_CAPACITY_LENGTH); in DequeConstructor() local 49 obj->SetElements(thread, newElements); in DequeConstructor()
|
D | containers_lightweightset.cpp | 530 auto newElements = factory->CopyArray(srcArray, srcArray->GetLength(), srcArray->GetLength(), in ToArray() local 532 lightweightset->SetValues(thread, newElements.GetTaggedValue()); in ToArray() 533 array->SetElements(thread, newElements); in ToArray()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | new_object_stub_builder.cpp | 794 auto newElements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in NewJSArrayLiteral() local 795 … Store(VariableType::JS_POINTER(), glue_, result->ReadVariable(), elementsOffset, newElements); in NewJSArrayLiteral()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs-inl.h | 2009 …thread, restNumArgs, [thread, sp, startIdx] (const JSHandle<TaggedArray> &newElements, uint32_t le… in RuntimeCopyRestArgs() 2012 newElements->Set(thread, i, JSTaggedValue(sp[startIdx + i])); in RuntimeCopyRestArgs()
|