Searched refs:oldLen (Results 1 – 3 of 3) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/ |
D | js_array.cpp | 47 uint32_t oldLen = JSArray::Cast(*self)->GetArrayLength(); in LengthSetter() local 48 JSArray::SetCapacity(thread, self, oldLen, newLen); in LengthSetter() 180 void JSArray::SetCapacity(JSThread *thread, const JSHandle<JSObject> &array, uint32_t oldLen, uint3… in SetCapacity() argument 188 if (newLen < oldLen && numOfElements != 0U) { in SetCapacity() 220 array->FillElementsWithHoles(thread, newLen, oldLen < capacity ? oldLen : capacity); in SetCapacity() 222 if (JSObject::ShouldTransToDict(oldLen, newLen)) { in SetCapacity() 256 uint32_t oldLen = 0; in ArraySetLength() local 257 JSTaggedValue::ToArrayLength(thread, oldLenDesc.GetValue(), &oldLen); in ArraySetLength() 259 if (newLen >= oldLen) { in ArraySetLength() 287 JSArray::SetCapacity(thread, array, oldLen, newLen); in ArraySetLength()
|
D | js_array.h | 98 …static void SetCapacity(JSThread *thread, const JSHandle<JSObject> &array, uint32_t oldLen, uint32…
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | panda_file_translator.cpp | 301 #define ADD_NOP_INST(pc, oldLen, newOpcode) \ argument 304 int paddingSize = static_cast<int>(oldLen) - newLen; \ 314 auto oldLen = OldBytecodeInst::Size(OldBytecodeInst::GetFormat(opcode)); in FixOpcode() local 342 ADD_NOP_INST(pc, oldLen, newOpcode); in FixOpcode() 1002 …if (memmove_s(pc + 1, newLen - 1, pc + 2, oldLen - 2) != EOK) { // 2: skip second level inst and … in FixOpcode() 1012 …if (memmove_s(pc + 1, newLen - 1, pc + 2, oldLen - 2) != EOK) { // 2: skip second level inst and … in FixOpcode() 1027 …if (memmove_s(pc + 1, newLen - 1, pc + 2, oldLen - 2) != EOK) { // 2: skip second level inst and … in FixOpcode() 1037 …if (memmove_s(pc + 1, newLen - 1, pc + 2, oldLen - 2) != EOK) { // 2: skip second level inst and … in FixOpcode() 1052 …if (memmove_s(pc + 1, newLen - 1, pc + 2, oldLen - 2) != EOK) { // 2: skip second level inst and … in FixOpcode() 1062 …if (memmove_s(pc + 1, newLen - 1, pc + 2, oldLen - 2) != EOK) { // 2: skip second level inst and … in FixOpcode() [all …]
|