/arkcompiler/ets_runtime/ecmascript/shared_objects/ |
H A D | js_shared_array.cpp | 51 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 D | js_shared_array.h | 158 static void SetCapacity(JSThread *thread, const JSHandle<JSObject> &array, uint32_t oldLen, uint32_t newLen,
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_array.cpp | 37 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 D | js_array.h | 116 static void SetCapacity(JSThread *thread, const JSHandle<JSObject> &array, uint32_t oldLen, uint32_t newLen,
|
H A D | js_stable_array.cpp | 1463 int64_t oldLen; 1465 oldLen = count; 1467 oldLen = len - k; 1469 JSHandle<JSObject> arrayObj = factory->NewAndCopyJSArrayObject(thisObjHandle, count, oldLen, k);
|
H A D | object_operator.cpp | 884 uint32_t oldLen = receiver.GetTaggedValue().IsJSArray() ? in AddProperty() local 891 SetElementOutOfBounds(newLen > oldLen); in AddProperty()
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
H A D | panda_file_translator.cpp | 370 #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 D | container_arraylist.js | 289 let oldLen = v1.length 293 print(oldLen * 2 === v1.length)
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | new_object_stub_builder.h | 72 GateRef CopyArray(GateRef glue, GateRef elements, GateRef oldLen, GateRef newLen,
|
H A D | new_object_stub_builder.cpp | 811 GateRef NewObjectStubBuilder::CopyArray(GateRef glue, GateRef elements, GateRef oldLen,
in CopyArray() argument 830 BRANCH(Int32GreaterThan(newLen, oldLen), &extendArray, ¬ExtendArray);
in CopyArray()
|
H A D | stub_builder.cpp | 3837 GateRef oldLen = GetArrayLength(receiver); in AddElementInternal() local 3839 BRANCH(Int32GreaterThanOrEqual(index, oldLen), &indexGreaterOrEq, ¬Array); in AddElementInternal() 3849 BRANCH(Int32GreaterThan(index, oldLen), &indexGreater, ¬Array); in AddElementInternal()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_object_stub_builder.cpp | 954 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()
|