/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_param_configuration.h | 26 static constexpr size_t DEFAULT_HEAP_SIZE = 448_MB; // Recommended range: 128-448MB 27 static constexpr size_t DEFAULT_WORKER_HEAP_SIZE = 768_MB; // Recommended range: 128_MB, LargeHeap: 768_MB 28 static constexpr size_t DEFAULT_SHARED_HEAP_SIZE = 778_MB; 29 static constexpr size_t MAX_HEAP_SIZE = 1024_MB; 40 EcmaParamConfiguration(HeapType heapType, size_t poolSize, size_t heapSize = 1_MB) in EcmaParamConfiguration() 155 size_t GetMaxHeapSize() const in GetMaxHeapSize() 160 size_t GetMinSemiSpaceSize() const in GetMinSemiSpaceSize() 165 size_t GetMaxSemiSpaceSize() const in GetMaxSemiSpaceSize() 170 size_t GetDefaultReadOnlySpaceSiz [all...] |
H A D | js_thread_stub_entries.h | 27 static constexpr size_t EXISTING_BC_HANDLER_STUB_ENTRIES_COUNT = 30 static constexpr size_t BC_HANDLER_COUNT = kungfu::BytecodeStubCSigns::LAST_VALID_OPCODE + 1; 31 static constexpr size_t COUNT = kungfu::BytecodeStubCSigns::NUM_OF_STUBS; 35 static constexpr size_t SizeArch32 = sizeof(uint32_t) * COUNT; 36 static constexpr size_t SizeArch64 = sizeof(uint64_t) * COUNT; 38 void Set(size_t index, Address addr) in Set() 49 Address Get(size_t index) const 58 static constexpr size_t COUNT = kungfu::RuntimeStubCSigns::NUM_OF_STUBS; 61 static constexpr size_t SizeArch32 = sizeof(uint32_t) * COUNT; 62 static constexpr size_t SizeArch6 [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | utf.h | 37 constexpr size_t MASK1 = 0x80; 38 constexpr size_t MASK2 = 0x20; 39 constexpr size_t MASK3 = 0x10; 41 constexpr size_t MASK_4BIT = 0x0f; 42 constexpr size_t MASK_5BIT = 0x1f; 43 constexpr size_t MASK_6BIT = 0x3f; 44 constexpr size_t MASK_10BIT = 0x03ff; 45 constexpr size_t MASK_16BIT = 0xffff; 47 constexpr size_t DATA_WIDTH = 6; 48 constexpr size_t PAIR_ELEMENT_WIDT [all...] |
H A D | arch.h | 46 static constexpr size_t CODE_ALIGNMENT = 8; 47 static constexpr size_t INSTRUCTION_ALIGNMENT = 4; 48 static constexpr size_t INSTRUCTION_MAX_SIZE_BITS = 32; 49 static constexpr size_t POINTER_SIZE = 4; 51 static constexpr size_t THREAD_REG = 10; 52 static constexpr size_t CALLER_REG_MASK = 0x0000000f; 53 static constexpr size_t CALLER_FP_REG_MASK = 0x0000ffff; // s0-s15 or d0-d7 54 static constexpr size_t CALLEE_REG_MASK = 0x000007f0; 55 static constexpr size_t CALLEE_FP_REG_MASK = 0xffff0000; // s16-s31 or d8-d15 59 static constexpr size_t DWARF_S [all...] |
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | aligned_struct.h | 29 static constexpr size_t Size = 1; 36 static constexpr size_t Size = 1 + sizeof...(Res); 39 template<size_t ElementAlign, typename... Ts> 41 static constexpr size_t EAS = ElementAlign; 44 static constexpr size_t NumOfTypes = ElemTypeList::Size; 46 template<size_t, typename> 51 static constexpr size_t OFFSET64 = 0; 52 static constexpr size_t OFFSET32 = 0; 57 static constexpr size_t OFFSET64 = 0; 58 static constexpr size_t OFFSET3 [all...] |
H A D | utf_helper.h | 27 static constexpr size_t CONST_2 = 2; 28 static constexpr size_t CONST_3 = 3; 29 static constexpr size_t CONST_4 = 4; 30 static constexpr size_t MASK1 = 0x80; 31 static constexpr size_t MASK2 = 0x20; 32 static constexpr size_t MASK3 = 0x10; 33 static constexpr size_t LOW_3BITS = 0x7; 34 static constexpr size_t LOW_4BITS = 0xF; 35 static constexpr size_t LOW_5BITS = 0x1F; 36 static constexpr size_t LOW_6BIT [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
H A D | mem_config.h | 30 static void Initialize(size_t objectPoolSize, size_t internalSize, size_t compilerSize, size_t codeSize, in Initialize() 31 size_t framesSize, size_t stacksSize, size_t initialObjectPoolSize) in Initialize() 44 static void Initialize(size_t objectPoolSize, size_t internalSize, size_t compilerSiz [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | mem.h | 40 static constexpr size_t INITIAL_REGULAR_OBJECT_CAPACITY = 1024_MB; 41 static constexpr size_t INITIAL_HUGE_OBJECT_CAPACITY = 1024_MB; 42 static constexpr size_t INCREMENT_HUGE_OBJECT_CAPACITY = 128_MB; 43 static constexpr size_t LARGE_POOL_SIZE = 480_MB; 44 static constexpr size_t MEDIUM_POOL_SIZE = 256_MB; 45 static constexpr size_t LOW_POOL_SIZE = 64_MB; 46 static constexpr size_t MIN_MEM_POOL_CAPACITY = 64_MB; 47 static constexpr size_t MAX_MEM_POOL_CAPACITY = 1536_MB; 50 static constexpr size_t MAX_GLOBAL_NATIVE_LIMIT = 512_MB; 52 static constexpr size_t MAX_GLOBAL_NATIVE_LIMI [all...] |
H A D | linear_space.h | 24 LinearSpace(Heap *heap, MemSpaceType type, size_t initialCapacity, size_t maximumCapacity); 27 uintptr_t Allocate(size_t size, bool isPromoted = false); 41 size_t GetOvershootSize() const in GetOvershootSize() 45 void InvokeAllocationInspector(Address object, size_t size, size_t alignedSize); 69 size_t overShootSize_ {0}; 70 size_t overShootSizeForConcurrentMark_ {0}; 71 size_t allocateAfterLastGC_ {0}; 72 size_t survivalObjectSize [all...] |
H A D | space.h | 124 Space(BaseHeap* heap, HeapRegionAllocator *regionAllocator, MemSpaceType spaceType, size_t initialCapacity, 125 size_t maximumCapacity); 130 size_t GetMaximumCapacity() const in GetMaximumCapacity() 135 void SetMaximumCapacity(size_t maximumCapacity) in SetMaximumCapacity() 140 size_t GetOverShootMaximumCapacity() const in GetOverShootMaximumCapacity() 145 size_t GetInitialCapacity() const in GetInitialCapacity() 150 void SetInitialCapacity(size_t initialCapacity) in SetInitialCapacity() 155 size_t GetCommittedSize() const in GetCommittedSize() 160 void IncreaseCommitted(size_t bytes) in IncreaseCommitted() 165 void DecreaseCommitted(size_t byte [all...] |
/arkcompiler/ets_frontend/ets2panda/checker/types/ |
H A D | globalTypesHolder.cpp | 74 for (size_t id = static_cast<size_t>(GlobalTypeId::ETS_THROWING_FUNCTION0_CLASS), nargs = 0; in AddFunctionTypes() 75 id < static_cast<size_t>(GlobalTypeId::ETS_THROWING_FUNCTIONN_CLASS); id++, nargs++) { in AddFunctionTypes() 83 for (size_t id = static_cast<size_t>(GlobalTypeId::ETS_RETHROWING_FUNCTION0_CLASS), nargs = 0; in AddFunctionTypes() 84 id < static_cast<size_t>(GlobalTypeId::ETS_RETHROWING_FUNCTIONN_CLASS); id++, nargs++) { in AddFunctionTypes() 92 for (size_t id = static_cast<size_t>(GlobalTypeId::ETS_FUNCTION0_CLASS), nargs = 0; in AddFunctionTypes() 93 id < static_cast<size_t>(GlobalTypeId::ETS_FUNCTIONN_CLASS); id++, nargs++) { in AddFunctionTypes() 103 globalTypes_[static_cast<size_t>(GlobalTypeI in AddTSSpecificTypes() [all...] |
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | utf.h | 37 constexpr size_t MASK1 = 0x80; 38 constexpr size_t MASK2 = 0x20; 39 constexpr size_t MASK3 = 0x10; 41 constexpr size_t MASK_4BIT = 0x0f; 42 constexpr size_t MASK_5BIT = 0x1f; 43 constexpr size_t MASK_6BIT = 0x3f; 44 constexpr size_t MASK_10BIT = 0x03ff; 45 constexpr size_t MASK_16BIT = 0xffff; 47 constexpr size_t DATA_WIDTH = 6; 48 constexpr size_t PAIR_ELEMENT_WIDT [all...] |
H A D | arch.h | 46 static constexpr size_t CODE_ALIGNMENT = 8; 47 static constexpr size_t INSTRUCTION_ALIGNMENT = 4; 48 static constexpr size_t INSTRUCTION_MAX_SIZE_BITS = 32; 49 static constexpr size_t POINTER_SIZE = 4; 51 static constexpr size_t THREAD_REG = 10; 52 static constexpr size_t CALLER_REG_MASK = 0x0000000f; 53 static constexpr size_t CALLER_FP_REG_MASK = 0x0000ffff; // s0-s15 or d0-d7 54 static constexpr size_t CALLEE_REG_MASK = 0x000007f0; 55 static constexpr size_t CALLEE_FP_REG_MASK = 0xffff0000; // s16-s31 or d8-d15 59 static constexpr size_t DWARF_S [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | heap_space.h | 85 void Initialize(size_t initialSize, size_t maxSize, uint32_t minFreePercentage, uint32_t maxFreePercentage); 91 virtual size_t GetHeapSize() const; 94 [[nodiscard]] virtual Pool TryAllocPool(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, 98 [[nodiscard]] virtual Arena *TryAllocArena(size_t arenaSize, SpaceType spaceType, AllocatorType allocatorType, 102 void FreePool(void *poolMem, size_t poolSize, bool releasePages = true); 133 void Initialize(size_t initialSize, size_t maxSize); 135 size_t GetCurrentSize() const in GetCurrentSize() 140 size_t GetMaxSiz [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/ |
H A D | g1_analytics.h | 33 void ReportEvacuatedBytes(size_t bytes); 34 void ReportRemsetSize(size_t remsetSize, size_t remsetRefsCount); 36 void ReportScanDirtyCardsEnd(uint64_t time, size_t dirtyCardsCount); 38 void ReportMarkingEnd(uint64_t time, size_t remsetRefsCount); 44 void ReportLiveObjects(size_t num); 47 uint64_t PredictYoungCollectionTimeInMicros(size_t edenLength) const; 49 uint64_t PredictOldCollectionTimeInMicros(size_t remsetSize, size_t liveBytes, size_t liveObject [all...] |
/arkcompiler/runtime_core/static_core/verification/util/ |
H A D | bit_vector.h | 98 static constexpr size_t BITS_IN_WORD = sizeof(Word) * 8; 99 static constexpr size_t BITS_IN_INT = sizeof(int) * 8; 100 size_t MaxBitIdx() const in MaxBitIdx() 104 static constexpr size_t POS_SHIFT = ark::Ctz(BITS_IN_WORD); 105 static constexpr size_t POS_MASK = BITS_IN_WORD - 1; 108 static Word MaskForIndex(size_t idx) in MaskForIndex() 113 static Word MaskUpToIndex(size_t idx) in MaskUpToIndex() 120 Bit(BitVector &bitVector, size_t index) : bitVector_ {bitVector}, index_ {index} {}; in Bit() 140 size_t index_; 143 static constexpr size_t SizeInBitsFromSizeInWord [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
H A D | gc_trigger.h | 75 size_t GetMinExtraHeapSize() const in GetMinExtraHeapSize() 80 size_t GetMaxExtraHeapSize() const in GetMaxExtraHeapSize() 105 size_t minExtraHeapSize_; 106 size_t maxExtraHeapSize_; 126 virtual void SetMinTargetFootprint([[maybe_unused]] size_t heapSize) {} in SetMinTargetFootprint() 137 explicit GCTriggerHeap(MemStatsType *memStats, HeapSpace *heapSpace, size_t minHeapSize, uint8_t percentThreshold, 138 size_t minExtraSize, size_t maxExtraSize, uint32_t skipGcTimes = 0); 146 void GCStarted(const GCTask &task, size_t heapSize) override; 147 void GCFinished(const GCTask &task, size_t heapSizeBeforeG [all...] |
/arkcompiler/runtime_core/libpandabase/mem/ |
H A D | mem_config.h | 30 static void Initialize(size_t object_pool_size, size_t internal_size, size_t compiler_size, size_t code_size, in Initialize() 31 size_t initial_object_pool_size) in Initialize() 42 static void Initialize(size_t object_pool_size, size_t internal_size, size_t compiler_size, size_t code_size) in Initialize() 55 static size_t GetInitialHeapSizeLimi [all...] |
H A D | mmap_mem_pool.h | 37 using FreePoolsIter = std::multimap<size_t, MmapPool *>::iterator; 45 size_t GetSize() in GetSize() 50 void SetSize(size_t size) in SetSize() 98 Pool PopFreePool(size_t size); 107 size_t GetAllSize() const; 115 bool HaveEnoughFreePools(size_t pools_num, size_t pool_size) const; 119 std::multimap<size_t, MmapPool *> free_pools_; 151 size_t GetTotalObjectSize() const in GetTotalObjectSize() 166 size_t GetObjectSpaceFreeByte [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/shared_heap/ |
H A D | shared_space.h | 33 SharedSparseSpace(SharedHeap *heap, MemSpaceType type, size_t initialCapacity, size_t maximumCapacity); 43 uintptr_t AllocateWithoutGC(JSThread *thread, size_t size); 45 uintptr_t Allocate(JSThread *thread, size_t size, bool allowGC = true); 46 uintptr_t TryAllocateAndExpand(JSThread *thread, size_t size, bool expand); 50 uintptr_t AllocateNoGCAndExpand(JSThread *thread, size_t size); 74 size_t GetHeapObjectSize() const; 76 void IncreaseAllocatedSize(size_t size); 78 void IncreaseLiveObjectSize(size_t size) in IncreaseLiveObjectSize() 83 void DecreaseLiveObjectSize(size_t siz [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | native_inline_lowering.h | 48 std::optional<std::pair<size_t, bool>> GetCallInfo(GateRef gate); 49 void TryInlineStringFromCharCode(GateRef gate, size_t argc, bool skipThis); 50 void TryInlineStringCharCodeAt(GateRef gate, size_t argc, bool skipThis); 51 void TryInlineStringSubstring(GateRef gate, size_t argc, bool skipThis); 52 void TryInlineStringSubStr(GateRef gate, size_t argc, bool skipThis); 53 void TryInlineStringSlice(GateRef gate, size_t argc, bool skipThis); 54 void TryInlineNumberIsFinite(GateRef gate, size_t argc, bool skipThis); 55 void TryInlineNumberIsInteger(GateRef gate, size_t argc, bool skipThis); 56 void TryInlineNumberIsNaN(GateRef gate, size_t argc, bool skipThis); 57 void TryInlineNumberParseFloat(GateRef gate, size_t arg [all...] |
/arkcompiler/ets_runtime/ecmascript/deoptimizer/ |
H A D | deoptimizer.h | 58 enum class Index : size_t { 66 static_assert(static_cast<size_t>(Index::NUM_OF_MEMBER) == NumOfTypes); 68 static size_t GetInlineDepthOffset(bool isArch32) in GetInlineDepthOffset() 70 return GetOffset<static_cast<size_t>(Index::INLINE_DEPTH_INDEX)>(isArch32); in GetInlineDepthOffset() 73 static size_t GetCallFrameTopOffset(bool isArch32) in GetCallFrameTopOffset() 75 return GetOffset<static_cast<size_t>(Index::CALLFRAME_TOP_INDEX)>(isArch32); in GetCallFrameTopOffset() 78 static size_t GetReturnAddressOffset(bool isArch32) in GetReturnAddressOffset() 80 return GetOffset<static_cast<size_t>(Index::RETURN_ADDRESS_INDEX)>(isArch32); in GetReturnAddressOffset() 83 static size_t GetCallerFpOffset(bool isArch32) in GetCallerFpOffset() 85 return GetOffset<static_cast<size_t>(Inde in GetCallerFpOffset() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mempool/include/ |
H A D | maple_string.h | 31 MapleString(const char *str, size_t size, MemPool *memPool); // copyin 32 MapleString(size_t size, MemPool *memPool); 37 size_t length() const in length() 55 char &operator[](const size_t x) in operator []() 60 const char &operator[](const size_t x) const in operator []() 80 size_t size = strlen(str); in operator =() 84 size_t oldSize = ((data == nullptr) ? 0 : (dataLength + 1)); in operator =() 103 size_t size = str.length(); in operator =() 106 size_t oldSize = (data == nullptr) ? 0 : (dataLength + 1); in operator =() 127 size_t siz in operator =() [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | arena_allocator_test.cpp | 55 static constexpr size_t MIN_LOG_ALIGN_SIZE_T = static_cast<size_t>(LOG_ALIGN_MIN); 56 static constexpr size_t MAX_LOG_ALIGN_SIZE_T = static_cast<size_t>(LOG_ALIGN_MAX); 57 static constexpr size_t ARRAY_SIZE = 1024; 65 static bool IsAligned(const void *ptr, size_t alignment) in IsAligned() 72 static constexpr size_t INTERNAL_SIZE = 128_MB; 89 align = static_cast<Alignment>(static_cast<size_t>(align) + 1)) { in AllocateWithAlignment() 92 size_t mask = GetAlignmentInBytes(align) - 1L; in AllocateWithAlignment() 96 for (size_t in AllocateWithAlignment() [all...] |
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
H A D | globalTypesHolder.cpp | 42 globalTypes_[static_cast<size_t>(GlobalTypeId::NUMBER)] = allocator->New<NumberType>(); in GlobalTypesHolder() 43 globalTypes_[static_cast<size_t>(GlobalTypeId::ANY)] = allocator->New<AnyType>(); in GlobalTypesHolder() 44 globalTypes_[static_cast<size_t>(GlobalTypeId::STRING)] = allocator->New<StringType>(); in GlobalTypesHolder() 45 globalTypes_[static_cast<size_t>(GlobalTypeId::SYMBOL)] = allocator->New<SymbolType>(); in GlobalTypesHolder() 46 globalTypes_[static_cast<size_t>(GlobalTypeId::BOOLEAN)] = allocator->New<BooleanType>(); in GlobalTypesHolder() 47 globalTypes_[static_cast<size_t>(GlobalTypeId::VOID)] = allocator->New<VoidType>(); in GlobalTypesHolder() 48 globalTypes_[static_cast<size_t>(GlobalTypeId::NULL_ID)] = allocator->New<NullType>(); in GlobalTypesHolder() 49 globalTypes_[static_cast<size_t>(GlobalTypeId::UNDEFINED)] = allocator->New<UndefinedType>(); in GlobalTypesHolder() 50 globalTypes_[static_cast<size_t>(GlobalTypeId::UNKNOWN)] = allocator->New<UnknownType>(); in GlobalTypesHolder() 51 globalTypes_[static_cast<size_t>(GlobalTypeI in GlobalTypesHolder() [all...] |