| /arkcompiler/ets_runtime/ecmascript/ic/ |
| D | proto_change_details.cpp | 26 uint32_t arrayIndex = array->PushBack(thread, weakValue); in Add() local 27 if (arrayIndex != TaggedArray::MAX_ARRAY_INDEX) { in Add() 29 *index = arrayIndex; in Add() 49 uint32_t arrayIndex = newArray->PushBack(thread, weakValue); in Add() local 50 ASSERT(arrayIndex != TaggedArray::MAX_ARRAY_INDEX); in Add() 52 *index = arrayIndex; in Add()
|
| /arkcompiler/runtime_core/static_core/runtime/mem/ |
| D | runslots.cpp | 134 uintptr_t arrayIndex = bitIndex >> BITS_IN_BYTE_POWER_OF_TWO; in MarkAsOccupied() local 136 ASSERT(!(bitmap_[arrayIndex] & (1U << bitInArrayElement))); in MarkAsOccupied() 137 bitmap_[arrayIndex] |= 1U << bitInArrayElement; in MarkAsOccupied() 145 uintptr_t arrayIndex = bitIndex >> BITS_IN_BYTE_POWER_OF_TWO; in MarkAsFree() local 147 ASSERT(bitmap_[arrayIndex] & (1U << bitInArrayElement)); in MarkAsFree() 148 bitmap_[arrayIndex] ^= 1U << bitInArrayElement; in MarkAsFree() 152 FreeSlot *RunSlots<LockTypeT>::BitMapToSlot(size_t arrayIndex, size_t bit) in BitMapToSlot() argument 155 ToVoidPtr(ToUintPtr(this) + (((arrayIndex << BITS_IN_BYTE_POWER_OF_TWO) + bit) in BitMapToSlot() 188 uintptr_t arrayIndex = bitIndex >> BITS_IN_BYTE_POWER_OF_TWO; in IsLive() local 190 auto liveWord = bitmap_[arrayIndex] & (1U << bitInArrayElement); in IsLive()
|
| D | runslots.h | 191 for (size_t arrayIndex = 0; arrayIndex < BITMAP_ARRAY_SIZE; arrayIndex++) { in IterateOverOccupiedSlots() local 192 uint8_t byte = bitmap_[arrayIndex]; in IterateOverOccupiedSlots() 198 … objectVisitor(static_cast<ObjectHeader *>(static_cast<void *>(BitMapToSlot(arrayIndex, bit)))); in IterateOverOccupiedSlots() 268 FreeSlot *BitMapToSlot(size_t arrayIndex, size_t bit);
|
| D | runslots_allocator-inl.h | 66 size_t arrayIndex = slotSizePowerOfTwo; in Alloc() local 71 os::memory::LockHolder<ListLock, NEED_LOCK> listLock(*runslots_[arrayIndex].GetLock()); in Alloc() 72 runslots = runslots_[arrayIndex].PopFromHead(); in Alloc() 114 os::memory::LockHolder<ListLock, NEED_LOCK> listLock(*runslots_[arrayIndex].GetLock()); in Alloc() 116 runslots_[arrayIndex].PushToTail(runslots); in Alloc() 156 size_t arrayIndex = RunSlotsType::ConvertToPowerOfTwoUnsafe(runSlotSize); in FreeUnsafeInternal() local 169 os::memory::LockHolder listLock(*runslots_[arrayIndex].GetLock()); in FreeUnsafeInternal() 171 ASSERT(!runslots_[arrayIndex].IsInThisList(runslots)); in FreeUnsafeInternal() 173 runslots_[arrayIndex].PushToTail(runslots); in FreeUnsafeInternal() 175 os::memory::LockHolder listLock(*runslots_[arrayIndex].GetLock()); in FreeUnsafeInternal() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | tagged_dictionary.cpp | 71 int arrayIndex = 0; in GetAllKeys() local 84 keyArray->Set(thread, arrayIndex + offset, entry.first); in GetAllKeys() 85 arrayIndex++; in GetAllKeys() 141 uint32_t arrayIndex = 0; in GetAllEnumKeys() local 162 keyArray->Set(thread, arrayIndex + static_cast<uint32_t>(offset), entry.first); in GetAllEnumKeys() 163 arrayIndex++; in GetAllEnumKeys() 165 *keys += arrayIndex; in GetAllEnumKeys() 170 uint32_t arrayIndex = 0; in GetAllEnumKeys() local 185 keyArray->Set(thread, arrayIndex + static_cast<uint32_t>(offset), entry.first); in GetAllEnumKeys() 186 arrayIndex++; in GetAllEnumKeys() [all …]
|
| D | global_dictionary-inl.h | 104 int arrayIndex = 0; in GetAllKeys() local 119 keyArray->Set(thread, arrayIndex + offset, nameKey); in GetAllKeys() 120 arrayIndex++; in GetAllKeys() 182 int arrayIndex = 0; in GetEnumAllKeys() local 199 keyArray->Set(thread, arrayIndex + offset, nameKey); in GetEnumAllKeys() 200 arrayIndex++; in GetEnumAllKeys() 202 *keys += arrayIndex; in GetEnumAllKeys()
|
| D | tagged_hash_table.h | 198 int arrayIndex = 0; in GetAllKeys() local 203 keyArray->Set(thread, arrayIndex + offset, key); in GetAllKeys() 204 arrayIndex++; in GetAllKeys()
|
| /arkcompiler/ets_frontend/es2panda/typescript/extractor/ |
| D | typeRecorder.cpp | 254 void TypeRecorder::SetArrayType(int64_t contentIndex, int64_t arrayIndex) in SetArrayType() argument 256 arrayType_[contentIndex] = arrayIndex; in SetArrayType() 257 ASSERT(GetArrayType(contentIndex) == arrayIndex); in SetArrayType()
|
| D | typeRecorder.h | 91 void SetArrayType(int64_t contentIndex, int64_t arrayIndex);
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
| D | mir_type.cpp | 1791 int64 MIRFarrayType::GetBitOffsetFromArrayAddress(int64 arrayIndex) in GetBitOffsetFromArrayAddress() argument 1794 if (elemsize == 0 || arrayIndex == 0) { in GetBitOffsetFromArrayAddress() 1800 return arrayIndex * static_cast<int64>(elemsize) * bitsPerByte; in GetBitOffsetFromArrayAddress()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | stub_builder.cpp | 2439 GateRef arrayIndex = in GetAttributesFromDictionary() local 2443 Int32Add(arrayIndex, Int32(DictionaryT::ENTRY_DETAILS_INDEX)); in GetAttributesFromDictionary() 2451 GateRef arrayIndex = in GetValueFromDictionary() local 2455 Int32Add(arrayIndex, Int32(DictionaryT::ENTRY_VALUE_INDEX)); in GetValueFromDictionary() 2473 GateRef arrayIndex = in GetKeyFromDictionary() local 2476 Branch(Int32LessThan(arrayIndex, Int32(0)), <Zero, ¬LtZero); in GetKeyFromDictionary() 2480 Branch(Int32GreaterThan(arrayIndex, dictionaryLength), >Length, ¬GtLength); in GetKeyFromDictionary() 2484 result = GetValueFromTaggedArray(elements, arrayIndex); in GetKeyFromDictionary() 2495 GateRef arrayIndex = in UpdateValueAndAttributes() local 2499 Int32Add(arrayIndex, Int32(NameDictionary::ENTRY_VALUE_INDEX)); in UpdateValueAndAttributes() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
| D | mir_type.h | 1284 int64 GetBitOffsetFromArrayAddress(int64 arrayIndex);
|