Home
last modified time | relevance | path

Searched refs:newElements (Results 1 – 25 of 28) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/
Delements.cpp144 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 …]
Djs_array.h120 JSHandle<TaggedArray> newElements(factory->NewTaggedArray(length)); in ArrayCreateWithInit()
122 JSHandle<JSTaggedValue> array(JSArray::CreateArrayFromList(thread, newElements)); in ArrayCreateWithInit()
123 cb(newElements, length); in ArrayCreateWithInit()
Djs_stable_array.cpp1170 …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()
Dtagged_list.cpp138 JSHandle<TaggedArray> newElements = factory->ConvertListToArray(thread, list, numberOfNodes); in TaggedListToArray() local
139 array->SetElements(thread, newElements); in TaggedListToArray()
Dobject_factory.cpp458 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()
Djs_object.cpp106 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/
Djs_api_queue.cpp46 JSHandle<TaggedArray> newElements; in GrowCapacity() local
55newElements = thread->GetEcmaVM()->GetFactory()->CopyArray(oldElements, oldLength, newCapacity); in GrowCapacity()
58newElements = 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()
Djs_api_deque.cpp106 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()
Djs_api_stack.cpp91 JSHandle<TaggedArray> newElements = in GrowCapacity() local
94 obj->SetElements(thread, newElements); in GrowCapacity()
95 return newElements; in GrowCapacity()
Djs_api_arraylist.cpp108 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()
Djs_api_vector.cpp90 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()
Djs_api_lightweightset.cpp304 JSHandle<TaggedArray> newElements = in IncreaseCapacityTo() local
307 obj->SetHashes(thread, newElements); in IncreaseCapacityTo()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_deque_iterator_test.cpp74 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIDeque::DEFAULT_CAPACITY_LENGTH); in CreateJSApiDeque() local
75 deque->SetElements(thread, newElements); in CreateJSApiDeque()
Djs_api_queue_iterator_test.cpp74 JSHandle<TaggedArray> newElements = factory->NewTaggedArray(capacaty); in CreateQueue() local
75 jsQueue->SetElements(thread, newElements); in CreateQueue()
Djs_api_deque_test.cpp83 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIDeque::DEFAULT_CAPACITY_LENGTH); in CreateDeque() local
84 deque->SetElements(thread, newElements); in CreateDeque()
Djs_api_queue_test.cpp72 JSHandle<TaggedArray> newElements = factory->NewTaggedArray(capacaty); in CreateQueue() local
73 jsQueue->SetElements(thread, newElements); in CreateQueue()
Djs_api_arraylist_test.cpp211 JSHandle<TaggedArray> newElements(thread, newArrayList->GetElements()); in HWTEST_F_L0() local
214 EXPECT_EQ(newElements->Get(i), JSTaggedValue(i)); in HWTEST_F_L0()
Ddump_test.cpp364 … 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/
Dbuiltins_function.cpp87 JSHandle<TaggedArray> newElements = thread->GetEcmaVM()->GetFactory()-> in BuildArgumentsListFast() local
91 newElements->Set(thread, i, value); in BuildArgumentsListFast()
93 elements = *newElements; in BuildArgumentsListFast()
Dbuiltins_string.cpp1551 (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/
Djsvaluerefismodulenamespace_fuzzer.cpp200 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIQueue::DEFAULT_CAPACITY_LENGTH); in IsDequeFuzztest() local
204 jsQueue->SetElements(thread, newElements); in IsDequeFuzztest()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_deque.cpp48 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIDeque::DEFAULT_CAPACITY_LENGTH); in DequeConstructor() local
49 obj->SetElements(thread, newElements); in DequeConstructor()
Dcontainers_lightweightset.cpp530 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/
Dnew_object_stub_builder.cpp794 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/
Druntime_stubs-inl.h2009 …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()

12