/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/ |
H A D | x64_memlayout.cpp | 56 size = GlobalTables::GetTypeTable().GetTypeFromTyIdx(typeIdx)->GetSize(); in SetSizeAlignForTypeIdx() 75 symLoc->SetOffset(GetSegArgsRegPassed().GetSize()); in LayoutFormalParams() 89 segArgsRegPassed.SetSize(static_cast<uint32>(RoundUp(segArgsRegPassed.GetSize(), align))); in LayoutFormalParams() 90 symLoc->SetOffset(segArgsRegPassed.GetSize()); in LayoutFormalParams() 91 segArgsRegPassed.SetSize(segArgsRegPassed.GetSize() + size); in LayoutFormalParams() 96 segArgsStkPassed.SetSize(static_cast<uint32>(RoundUp(segArgsStkPassed.GetSize(), align))); in LayoutFormalParams() 97 symLoc->SetOffset(segArgsStkPassed.GetSize()); in LayoutFormalParams() 98 segArgsStkPassed.SetSize(segArgsStkPassed.GetSize() + size); in LayoutFormalParams() 99 segArgsStkPassed.SetSize(static_cast<uint32>(RoundUp(segArgsStkPassed.GetSize(), GetPointerSize()))); in LayoutFormalParams() 121 segLocals.SetSize(static_cast<uint32>(RoundUp(segLocals.GetSize(), alig in LayoutLocalVariables() [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | mmap_mem_pool_test.cpp | 52 memPool->template FreePool<OSPagesPolicy::NO_RETURN>(pool.GetMem(), pool.GetSize()); in FreePoolWithPolicy() 54 memPool->template FreePool<OSPagesPolicy::IMMEDIATE_RETURN>(pool.GetMem(), pool.GetSize()); in FreePoolWithPolicy() 71 FillMemory(pools[i].GetMem(), pools[i].GetSize()); in ReturnedToOsTest() 76 FillMemory(fourthPool.GetMem(), fourthPool.GetSize()); in ReturnedToOsTest() 87 IsZeroMemory(finalPool.GetMem(), finalPool.GetSize()); in ReturnedToOsTest() 88 memPool->FreePool(finalPool.GetMem(), finalPool.GetSize()); in ReturnedToOsTest() 95 IsZeroMemory(pools[i].GetMem(), pools[i].GetSize()); in ReturnedToOsTest() 98 memPool->FreePool(pools[i].GetMem(), pools[i].GetSize()); in ReturnedToOsTest() 102 memPool->FreePool(fourthPool.GetMem(), fourthPool.GetSize()); in ReturnedToOsTest() 168 memPool->FreePool(pool1.GetMem(), pool1.GetSize()); in TEST_F() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/ |
H A D | aarch64_memlayout.cpp | 68 size = static_cast<uint32>(mirType->GetSize()); in SetSizeAlignForTypeIdx() 92 segArgsRegPassed.SetSize(static_cast<uint32>(RoundUp(segArgsRegPassed.GetSize(), align))); in LayoutFormalParams() 93 symLoc->SetOffset(segArgsRegPassed.GetSize()); in LayoutFormalParams() 94 segArgsRegPassed.SetSize(segArgsRegPassed.GetSize() + size); in LayoutFormalParams() 101 segArgsStkPassed.SetSize(static_cast<uint32>(RoundUp(segArgsStkPassed.GetSize(), align))); in LayoutFormalParams() 102 symLoc->SetOffset(segArgsStkPassed.GetSize()); in LayoutFormalParams() 103 segArgsStkPassed.SetSize(segArgsStkPassed.GetSize() + size); in LayoutFormalParams() 105 segArgsStkPassed.SetSize(static_cast<uint32>(RoundUp(segArgsStkPassed.GetSize(), GetPointerSize()))); in LayoutFormalParams() 157 segLocals.SetSize(static_cast<uint32>(RoundUp(segLocals.GetSize(), align))); in LayoutLocalVariables() 158 symLoc->SetOffset(segLocals.GetSize()); in LayoutLocalVariables() [all...] |
/arkcompiler/ets_runtime/ecmascript/regexp/ |
H A D | regexp_opcode.cpp | 135 return offset + GetSize(); in DumpOpCode() 150 return offset + GetSize(); in DumpOpCode() 165 return offset + GetSize(); in DumpOpCode() 179 return offset + GetSize(); in DumpOpCode() 197 << "goto\t" << buf.GetU32(offset + 1) + offset + GetSize() << std::endl; in DumpOpCode() 198 return offset + GetSize(); in DumpOpCode() 203 buf->Insert(offset, GetSize()); in InsertOpCode() 219 << "split_next\t" << buf.GetU32(offset + 1) + offset + GetSize() << std::endl; in DumpOpCode() 220 return offset + GetSize(); in DumpOpCode() 225 buf->Insert(offset, GetSize()); in InsertOpCode() [all...] |
/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/ |
H A D | regexp_opcode.cpp | 129 return offset + GetSize(); in DumpOpCode() 144 return offset + GetSize(); in DumpOpCode() 159 return offset + GetSize(); in DumpOpCode() 173 return offset + GetSize(); in DumpOpCode() 191 << "goto\t" << buf.GetU32(offset + 1) + offset + GetSize() << std::endl; in DumpOpCode() 192 return offset + GetSize(); in DumpOpCode() 197 buf->Insert(offset, GetSize()); in InsertOpCode() 206 << "split_next\t" << buf.GetU32(offset + 1) + offset + GetSize() << std::endl; in DumpOpCode() 207 return offset + GetSize(); in DumpOpCode() 212 buf->Insert(offset, GetSize()); in InsertOpCode() [all...] |
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | mem_map_allocator_test.cpp | 36 PageRelease(memMap.GetMem(), memMap.GetSize()); in HWTEST_F_L0() 38 memMapFreeList.Initialize(memMap, memMap.GetSize() * 2); in HWTEST_F_L0() 43 EXPECT_EQ(mem1.GetSize(), size1); in HWTEST_F_L0() 48 EXPECT_EQ(mem2.GetSize(), size2); in HWTEST_F_L0() 53 EXPECT_EQ(mem3.GetSize(), size3); in HWTEST_F_L0()
|
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | mmap_mem_pool_test.cpp | 74 memPool->FreePool(pool1.GetMem(), pool1.GetSize()); in HWTEST_F() 93 memPool->FreePool(pool1.GetMem(), pool1.GetSize()); in HWTEST_F() 94 memPool->FreePool(pool3.GetMem(), pool3.GetSize()); in HWTEST_F() 95 memPool->FreePool(pool4.GetMem(), pool4.GetSize()); in HWTEST_F() 96 memPool->FreePool(pool5.GetMem(), pool5.GetSize()); in HWTEST_F() 127 memPool->FreePool(pool_with_alloc_addr.GetMem(), pool_with_alloc_addr.GetSize()); in HWTEST_F() 128 memPool->FreePool(pool_without_alloc_addr.GetMem(), pool_without_alloc_addr.GetSize()); in HWTEST_F() 148 mem_pool->FreePool(object_pool.GetMem(), object_pool.GetSize()); in HWTEST_F() 149 mem_pool->FreePool(internal_pool.GetMem(), internal_pool.GetSize()); in HWTEST_F() 150 mem_pool->FreePool(code_pool.GetMem(), code_pool.GetSize()); in HWTEST_F() [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | freelist_allocator-inl.h | 72 << std::dec << memoryBlock->GetSize(); in Alloc() 73 ASSERT(memoryBlock->GetSize() >= allocSize); in Alloc() 82 ASSERT(memoryBlock->GetSize() >= sizeWithPadding); in Alloc() 97 << std::dec << newFreeBlock->GetSize(); in Alloc() 120 AllocConfigT::OnAlloc(memoryBlock->GetSize(), typeAllocation_, memStats_); in Alloc() 124 ToUintPtr(memoryBlock) + memoryBlock->GetSize() + sizeof(MemoryBlockHeader) - memoryPointer; in Alloc() 156 << std::dec << memoryHeader->GetSize() << " (probably with padding)"; in FreeUnsafe() 158 AllocConfigT::OnFree(memoryHeader->GetSize(), typeAllocation_, memStats_); in FreeUnsafe() 162 ToUintPtr(memoryHeader) + memoryHeader->GetSize() + sizeof(MemoryBlockHeader) - ToUintPtr(mem); in FreeUnsafe() 168 prevSize = ToUintPtr(prevUsedHeader) + prevUsedHeader->GetSize() in FreeUnsafe() [all...] |
/arkcompiler/ets_runtime/ecmascript/js_api/ |
H A D | js_api_vector.cpp | 30 uint32_t length = vector->GetSize(); in Add() 44 uint32_t length = vector->GetSize(); in Insert() 62 uint32_t len = vector->GetSize(); in SetLength() 104 uint32_t length = vector->GetSize(); in GetIndexFrom() 123 return GetSize() == 0; in IsEmpty() 128 uint32_t length = GetSize(); in GetLastElement() 140 int32_t index = static_cast<int32_t>(vector->GetSize()) - 1; in GetLastIndexOf() 150 uint32_t length = vector->GetSize(); in GetLastIndexFrom() 171 uint32_t length = vector->GetSize(); in Remove() 185 uint32_t length = vector->GetSize(); in RemoveByIndex() [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | mem_map_allocator.cpp | 36 PageTag(memMap.GetMem(), memMap.GetSize(), PageTagType::MEMPOOL_CACHE); in InitializeRegularRegionMap() 37 PageRelease(memMap.GetMem(), memMap.GetSize()); in InitializeRegularRegionMap() 60 PageTag(memMap.GetMem(), memMap.GetSize(), PageTagType::MEMPOOL_CACHE); in InitializeHugeRegionMap() 61 PageRelease(memMap.GetMem(), memMap.GetSize()); in InitializeHugeRegionMap() 72 PageTag(hugeMemMap.GetMem(), hugeMemMap.GetSize(), PageTagType::MEMPOOL_CACHE); in InitializeHugeRegionMap() 73 PageRelease(hugeMemMap.GetMem(), hugeMemMap.GetSize()); in InitializeHugeRegionMap() 114 bool res = PageProtectMem(isMachineCode, mem.GetMem(), mem.GetSize(), isEnableJitFort); in Allocate() 128 bool res = PageProtectMem(isMachineCode, mem.GetMem(), mem.GetSize(), isEnableJitFort); in Allocate() 146 bool res = PageProtectMem(isMachineCode, mem.GetMem(), mem.GetSize(), isEnableJitFort); in Allocate() 150 PageTag(mem.GetMem(), mem.GetSize(), typ in Allocate() [all...] |
H A D | mem_map_allocator.h | 111 size_t remainderSize = AlignDown(memMap.GetSize() - REGULAR_MMAP_SIZE, REGULAR_MMAP_SIZE); in SplitMemFromCache() 123 size_t memTotalSize = AlignDown(memMap.GetSize(), REGULAR_MMAP_SIZE); in SplitMemMapToCache() 154 freeList_.emplace(memMap.GetSize(), memMap); in Initialize() 176 size_t newSize = (*it).second.GetSize(); in MergeList() 183 newSize += (*it).second.GetSize(); in MergeList() 210 LOG_GC(INFO) << "Huge object mem pool increase PageMap size: " << smemMap.GetSize(); in GetMemFromList() 212 freeList_.emplace(smemMap.GetSize(), smemMap); in GetMemFromList() 218 size_t remainderSize = memMap.GetSize() - size; in GetMemFromList() 231 freeListPoolSize_ -= memMap.GetSize(); in AddMemToList() 232 freeList_.emplace(memMap.GetSize(), memMa in AddMemToList() [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch64/ |
H A D | encode.cpp | 111 auto vixlVreg = vixl::aarch64::VRegister(reg.GetId(), reg.GetSize()); in VixlVReg() 122 size_t regSize = reg.GetSize(); in VixlShift() 156 if (indexReg.GetSize() == WORD_SIZE) { in ConvertMem() 162 ASSERT(indexReg.GetSize() == DOUBLE_WORD_SIZE); in ConvertMem() 337 if (CanEncodeImmLogical(value, src.GetSize() > WORD_SIZE ? DOUBLE_WORD_SIZE : WORD_SIZE)) { in EncodeJumpTest() 410 ASSERT(reg.IsScalar() && reg.GetSize() > bitPos); in EncodeBitTestAndBranch() 555 if (src.GetSize() != dst.GetSize()) { in EncodeMov() 563 GetMasm()->Fmov(VixlReg(dst, src.GetSize()), VixlVReg(src)); in EncodeMov() 575 if (src.GetSize() ! in EncodeMov() [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch32/ |
H A D | encode.cpp | 101 if (info.GetSize() == WORD_SIZE) { in Convert() 104 ASSERT(info.GetSize() == DOUBLE_WORD_SIZE); in Convert() 107 switch (info.GetSize()) { in Convert() 122 switch (info.GetSize()) { in Convert() 217 if (reg.GetSize() > WORD_SIZE) { in SetRegister() 224 if (reg.GetSize() > WORD_SIZE) { in SetRegister() 451 ASSERT(reg.IsScalar() && reg.GetSize() > bitPos); in EncodeBitTestAndBranch() 453 if (reg.GetSize() == DOUBLE_WORD_SIZE) { in EncodeBitTestAndBranch() 474 ASSERT(CanEncodeImmAddSubCmp(imm, src.GetSize(), IsConditionSigned(*cc))); in CompareImmHelper() 484 ASSERT(CanEncodeImmLogical(value, src.GetSize())); in TestImmHelper() [all...] |
/arkcompiler/runtime_core/compiler/tests/ |
H A D | encoder_operands.cpp | 79 ASSERT_EQ(arr[i].GetSize(), arr[4 + i].GetSize()); in TEST() 80 ASSERT_EQ(arr[i].GetSize(), arr[8 + i].GetSize()); in TEST() 81 ASSERT_EQ(arr[4 + i].GetSize(), arr[8 + i].GetSize()); in TEST() 112 ASSERT_EQ(arr[2].GetSize(), arr[12].GetSize()); in TEST() 113 ASSERT_EQ(arr[2].GetSize(), arr[14].GetSize()); in TEST() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/ |
H A D | aarch64_memlayout.h | 168 return segSpillReg.GetSize(); in GetSizeOfSpillReg() 173 return segLocals.GetSize(); in GetSizeOfLocals() 178 return segCold.GetSize(); in GetSizeOfCold() 188 return segGrSaveArea.GetSize(); in GetSizeOfGRSaveArea() 198 return segVrSaveArea.GetSize(); in GetSizeOfVRSaveArea() 203 return segRefLocals.GetSize(); in GetSizeOfRefLocals()
|
H A D | aarch64_operand.h | 36 hash_combine<uint32_t>(seed, x.GetSize()); in operator ()() 41 hash_combine<uint32_t>(seed, xb->GetSize()); in operator ()() 45 hash_combine<uint32_t>(seed, xi->GetSize()); in operator ()()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | heap_space_test.cpp | 127 heapSpace_->FreePool(pool1.GetMem(), pool1.GetSize()); in TEST_F() 133 heapSpace_->FreePool(pool2.GetMem(), pool2.GetSize()); in TEST_F() 164 heapSpace_->FreePool(pool1.GetMem(), pool1.GetSize()); in TEST_F() 169 heapSpace_->FreePool(pool2.GetMem(), pool2.GetSize()); in TEST_F() 182 ASSERT_EQ(youngPool.GetSize(), DEFAULT_TEST_YOUNG_SIZE); in TEST_F() 194 ASSERT_EQ(pool1.GetSize(), FIRST_POOL_SIZE); in TEST_F() 208 ASSERT_EQ(pool2.GetSize(), SECOND_POOL_SIZE) << "We can allocate pool during GC"; in TEST_F() 213 genSpaces_->FreePool(pool2.GetMem(), pool2.GetSize()); in TEST_F() 214 genSpaces_->FreePool(pool1.GetMem(), pool1.GetSize()); in TEST_F() 215 genSpaces_->FreeYoungPool(youngPool.GetMem(), youngPool.GetSize()); in TEST_F() [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
H A D | mmap_mem_pool-inl.h | 47 ASSERT(elementSize == mmapPool->GetSize()); in PopFreePool() 62 auto newFreePoolsIter = freePools_.insert(std::pair<size_t, MmapPool *>(newPool.GetSize(), newMmapPool)); in PopFreePool() 68 size_t poolSize = pool.GetSize(); in PopFreePool() 91 ASSERT(ToUintPtr(prevPool->GetMem()) + prevPool->GetSize() == ToUintPtr(mmapPool->GetMem())); in PushFreePool() 94 prevPool->SetSize(prevPool->GetSize() + mmapPool->GetSize()); in PushFreePool() 103 ASSERT(ToUintPtr(mmapPool->GetMem()) + mmapPool->GetSize() == ToUintPtr(nextPool->GetMem())); in PushFreePool() 106 mmapPool->SetSize(nextPool->GetSize() + mmapPool->GetSize()); in PushFreePool() 112 size_t size = mmapPool->GetSize(); in PushFreePool() [all...] |
/arkcompiler/runtime_core/libpandabase/mem/ |
H A D | mmap_mem_pool-inl.h | 41 ASSERT(element_size == mmap_pool->GetSize()); in PopFreePool() 52 auto new_free_pools_iter = free_pools_.insert(std::pair<size_t, MmapPool *>(new_pool.GetSize(), new_mmap_pool)); in PopFreePool() 70 ASSERT(ToUintPtr(prev_pool->GetMem()) + prev_pool->GetSize() == ToUintPtr(mmap_pool->GetMem())); in PushFreePool() 72 prev_pool->SetSize(prev_pool->GetSize() + mmap_pool->GetSize()); in PushFreePool() 80 ASSERT(ToUintPtr(mmap_pool->GetMem()) + mmap_pool->GetSize() == ToUintPtr(next_pool->GetMem())); in PushFreePool() 82 mmap_pool->SetSize(next_pool->GetSize() + mmap_pool->GetSize()); in PushFreePool() 87 auto res = free_pools_.insert(std::pair<size_t, MmapPool *>(mmap_pool->GetSize(), mmap_pool)); in PushFreePool() 161 FreeRawMemImpl(pool.GetMem(), pool.GetSize()); in ~MmapMemPool() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/ |
H A D | x64_memlayout.h | 118 return segSpillReg.GetSize(); in GetSizeOfSpillReg() 123 return segLocals.GetSize(); in GetSizeOfLocals() 133 return segGrSaveArea.GetSize(); in GetSizeOfGRSaveArea() 143 return segVrSaveArea.GetSize(); in GetSizeOfVRSaveArea()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/amd64/ |
H A D | encode.cpp | 148 size_t regSize = size == 0 ? reg.GetSize() : size; in ArchReg() 240 auto baseSize = mem.GetBase().GetSize(); in ArchMem() 241 auto indexSize = mem.GetIndex().GetSize(); in ArchMem() 429 if (src0.GetSize() == src1.GetSize()) { in EncodeJump() 431 } else if (src0.GetSize() > src1.GetSize()) { in EncodeJump() 474 if (ImmFitsSize(immVal, src.GetSize())) { in EncodeJump() 489 if (src0.GetSize() == src1.GetSize()) { in EncodeJumpTest() [all...] |
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | encoder_operands.cpp | 53 ASSERT_EQ(arr_[0U].GetSize(), BYTE_SIZE); in CheckSizes() 54 ASSERT_EQ(arr_[1U].GetSize(), HALF_SIZE); in CheckSizes() 55 ASSERT_EQ(arr_[2U].GetSize(), WORD_SIZE); in CheckSizes() 56 ASSERT_EQ(arr_[3U].GetSize(), DOUBLE_WORD_SIZE); in CheckSizes() 68 ASSERT_EQ(arr_[2U].GetSize(), arr_[12U].GetSize()); in CheckSizes() 69 ASSERT_EQ(arr_[2U].GetSize(), arr_[14U].GetSize()); in CheckSizes() 71 ASSERT_EQ(arr_[3U].GetSize(), arr_[13U].GetSize()); in CheckSizes() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
H A D | memlayout.h | 91 uint32 GetSize() const in GetSize() function in maplebe::MemSegment 218 segSpillReg.SetSize(static_cast<uint32>(RoundUp(segSpillReg.GetSize(), memByteSize))); 219 symLoc->SetOffset(segSpillReg.GetSize()); 220 segSpillReg.SetSize(segSpillReg.GetSize() + memByteSize); 239 return segArgsToStkPass.GetSize(); in SizeOfArgsToStackPass() 244 return segArgsRegPassed.GetSize(); in SizeOfArgsRegisterPassed() 249 return segCold.GetSize(); in GetSizeOfSegCold()
|
/arkcompiler/runtime_core/static_core/dprof/libdprof/dprof/ipc/ |
H A D | ipc_message.cpp | 29 uint32_t size = message.GetSize(); in SendMessage() 35 if (size != 0 && !SendAll(fd, message.GetData(), message.GetSize())) { in SendMessage() 36 PLOG(ERROR, DPROF) << "Cannot send message data, size=" << message.GetSize(); in SendMessage()
|
/arkcompiler/ets_runtime/ecmascript/containers/tests/ |
H A D | containers_treeset_test.cpp | 173 int size = setHandle->GetSize(); in HWTEST_F_L0() 198 EXPECT_EQ(tset->GetSize(), i + 1); in HWTEST_F_L0() 200 EXPECT_EQ(tset->GetSize(), NODE_NUMBERS); in HWTEST_F_L0() 219 EXPECT_EQ(tset->GetSize(), NODE_NUMBERS + i + 1); in HWTEST_F_L0() 221 EXPECT_EQ(tset->GetSize(), NODE_NUMBERS * 2); in HWTEST_F_L0() 266 EXPECT_EQ(tset->GetSize(), i + 1); in HWTEST_F_L0() 280 EXPECT_EQ(tset->GetSize(), NODE_NUMBERS - REMOVE_SIZE); in HWTEST_F_L0() 315 EXPECT_EQ(tset->GetSize(), NODE_NUMBERS - REMOVE_SIZE + i + 1); in HWTEST_F_L0() 317 EXPECT_EQ(tset->GetSize(), NODE_NUMBERS * 2 - REMOVE_SIZE); in HWTEST_F_L0() 333 EXPECT_EQ(tset->GetSize(), (NODE_NUMBER in HWTEST_F_L0() [all...] |