Home
last modified time | relevance | path

Searched refs:oldLen (Results 1 - 12 of 12) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/shared_objects/
H A Djs_shared_array.cpp51 uint32_t oldLen = JSSharedArray::Cast(*self)->GetArrayLength(); in LengthSetter() local
52 if (oldLen == newLen) { in LengthSetter()
63 JSSharedArray::SetCapacity(thread, self, oldLen, newLen); in LengthSetter()
213 void JSSharedArray::SetCapacity(JSThread *thread, const JSHandle<JSObject> &array, uint32_t oldLen, uint32_t newLen, in SetCapacity() argument
225 array->FillElementsWithHoles(thread, newLen, oldLen < capacity ? oldLen : capacity); in SetCapacity()
258 // 11. Let oldLen be oldLenDesc.[[Value]]. in ArraySetLength()
259 uint32_t oldLen = 0; in ArraySetLength() local
260 JSTaggedValue::ToArrayLength(thread, oldLenDesc.GetValue(), &oldLen); in ArraySetLength()
261 // 12. If newLen >= oldLen, the in ArraySetLength()
[all...]
H A Djs_shared_array.h158 static void SetCapacity(JSThread *thread, const JSHandle<JSObject> &array, uint32_t oldLen, uint32_t newLen,
/arkcompiler/ets_runtime/ecmascript/
H A Djs_array.cpp37 uint32_t oldLen = JSArray::Cast(*self)->GetArrayLength(); in LengthSetter() local
38 if (oldLen == newLen) { in LengthSetter()
49 JSArray::SetCapacity(thread, self, oldLen, newLen); in LengthSetter()
203 uint32_t oldLen, uint32_t newLen, bool isNew) in SetCapacity()
212 if (newLen < oldLen && numOfElements != 0U) { in SetCapacity()
245 array->FillElementsWithHoles(thread, newLen, oldLen < capacity ? oldLen : capacity); in SetCapacity()
247 if (JSObject::ShouldTransToDict(oldLen, newLen)) { in SetCapacity()
315 // 11. Let oldLen be oldLenDesc.[[Value]]. in ArraySetLength()
316 uint32_t oldLen in ArraySetLength() local
202 SetCapacity(JSThread *thread, const JSHandle<JSObject> &array, uint32_t oldLen, uint32_t newLen, bool isNew) SetCapacity() argument
[all...]
H A Djs_array.h116 static void SetCapacity(JSThread *thread, const JSHandle<JSObject> &array, uint32_t oldLen, uint32_t newLen,
H A Djs_stable_array.cpp1463 int64_t oldLen;
1465 oldLen = count;
1467 oldLen = len - k;
1469 JSHandle<JSObject> arrayObj = factory->NewAndCopyJSArrayObject(thisObjHandle, count, oldLen, k);
H A Dobject_operator.cpp884 uint32_t oldLen = receiver.GetTaggedValue().IsJSArray() ? in AddProperty() local
891 SetElementOutOfBounds(newLen > oldLen); in AddProperty()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
H A Dpanda_file_translator.cpp370 #define ADD_NOP_INST(pc, oldLen, newOpcode) \
373 int paddingSize = static_cast<int>(oldLen) - newLen; \
383 auto oldLen = OldBytecodeInst::Size(OldBytecodeInst::GetFormat(opcode)); in FixOpcode() local
411 ADD_NOP_INST(pc, oldLen, newOpcode); in FixOpcode()
1071 if (memmove_s(pc + 1, newLen - 1, pc + 2, oldLen - 2) != EOK) { // 2: skip second level inst and pref in FixOpcode()
1081 if (memmove_s(pc + 1, newLen - 1, pc + 2, oldLen - 2) != EOK) { // 2: skip second level inst and pref in FixOpcode()
1096 if (memmove_s(pc + 1, newLen - 1, pc + 2, oldLen - 2) != EOK) { // 2: skip second level inst and pref in FixOpcode()
1106 if (memmove_s(pc + 1, newLen - 1, pc + 2, oldLen - 2) != EOK) { // 2: skip second level inst and pref in FixOpcode()
1121 if (memmove_s(pc + 1, newLen - 1, pc + 2, oldLen - 2) != EOK) { // 2: skip second level inst and pref in FixOpcode()
1131 if (memmove_s(pc + 1, newLen - 1, pc + 2, oldLen in FixOpcode()
[all...]
/arkcompiler/ets_runtime/test/moduletest/container/
H A Dcontainer_arraylist.js289 let oldLen = v1.length
293 print(oldLen * 2 === v1.length)
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dnew_object_stub_builder.h72 GateRef CopyArray(GateRef glue, GateRef elements, GateRef oldLen, GateRef newLen,
H A Dnew_object_stub_builder.cpp811 GateRef NewObjectStubBuilder::CopyArray(GateRef glue, GateRef elements, GateRef oldLen, in CopyArray() argument
830 BRANCH(Int32GreaterThan(newLen, oldLen), &extendArray, &notExtendArray); in CopyArray()
H A Dstub_builder.cpp3837 GateRef oldLen = GetArrayLength(receiver); in AddElementInternal() local
3839 BRANCH(Int32GreaterThanOrEqual(index, oldLen), &indexGreaterOrEq, &notArray); in AddElementInternal()
3849 BRANCH(Int32GreaterThan(index, oldLen), &indexGreater, &notArray); in AddElementInternal()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dbuiltins_object_stub_builder.cpp954 GateRef oldLen = GetLengthOfTaggedArray(elements); in CopyFromEnumCache() local
955 BRANCH(Int32Equal(oldLen, Int32(0)), &lenIsZero, &lenNotZero); in CopyFromEnumCache()
963 newLen = Int32Sub(oldLen, Int32(EnumCache::ENUM_CACHE_HEADER_SIZE)); in CopyFromEnumCache()

Completed in 52 milliseconds