/arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
D | snapshot_processor.cpp | 198 static uintptr_t g_nativeTable[] = { 199 reinterpret_cast<uintptr_t>(nullptr), 200 reinterpret_cast<uintptr_t>(BuiltinsMap::Species), 201 reinterpret_cast<uintptr_t>(StringIterator::Next), 202 reinterpret_cast<uintptr_t>(Function::FunctionPrototypeInvokeSelf), 203 reinterpret_cast<uintptr_t>(Function::FunctionConstructor), 204 reinterpret_cast<uintptr_t>(JSFunction::AccessCallerArgumentsThrowTypeError), 205 reinterpret_cast<uintptr_t>(Function::FunctionPrototypeApply), 206 reinterpret_cast<uintptr_t>(Function::FunctionPrototypeBind), 207 reinterpret_cast<uintptr_t>(Function::FunctionPrototypeCall), [all …]
|
D | snapshot_processor.h | 67 …void DeserializeObjectExcludeString(uintptr_t oldSpaceBegin, size_t oldSpaceObjSize, size_t nonMov… 69 void DeserializeString(uintptr_t stringBegin, uintptr_t stringEnd); 86 const CVector<uintptr_t> GetStringVector() const in GetStringVector() 105 …bool VisitObjectBodyWithRep(TaggedObject *root, ObjectSlot slot, uintptr_t obj, int index, VisitOb… 106 void SetObjectEncodeField(uintptr_t obj, size_t offset, uint64_t value); 116 void DeserializePandaMethod(uintptr_t begin, uintptr_t end, MethodLiteral *methods, 118 void DeserializeSpaceObject(uintptr_t beginAddr, Space* space, size_t spaceObjSize); 119 …void DeserializeHugeSpaceObject(uintptr_t beginAddr, HugeObjectSpace* space, size_t hugeSpaceObjSi… 120 …void HandleRootObject(SnapshotType type, uintptr_t rootObjectAddr, size_t objType, size_t &constSp… 124 uintptr_t TaggedObjectEncodeBitToAddr(EncodeBit taggedBit); [all …]
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | allocator.h | 43 inline BumpPointerAllocator(uintptr_t begin, uintptr_t end); 46 inline void Reset(uintptr_t begin, uintptr_t end); 47 inline void Reset(uintptr_t begin, uintptr_t end, uintptr_t top); 48 inline uintptr_t Allocate(size_t size); 50 uintptr_t GetTop() const in GetTop() 55 uintptr_t GetEnd() const in GetEnd() 60 const uintptr_t *GetTopAddress() in GetTopAddress() 65 const uintptr_t *GetEndAddress() in GetEndAddress() 76 uintptr_t begin_ {0}; 77 uintptr_t top_ {0}; [all …]
|
D | remembered_set.h | 32 … return reinterpret_cast<GCBitset *>(reinterpret_cast<uintptr_t>(this) + GCBITSET_DATA_OFFSET); in GCBitsetData() 37 … return reinterpret_cast<GCBitset *>(reinterpret_cast<uintptr_t>(this) + GCBITSET_DATA_OFFSET); in GCBitsetData() 45 bool Insert(uintptr_t begin, uintptr_t addr) in Insert() 50 bool AtomicInsert(uintptr_t begin, uintptr_t addr) in AtomicInsert() 55 void ClearBit(uintptr_t begin, uintptr_t addr) in ClearBit() 60 void ClearRange(uintptr_t begin, uintptr_t start, uintptr_t end) in ClearRange() 66 void AtomicClearRange(uintptr_t begin, uintptr_t start, uintptr_t end) in AtomicClearRange() 73 void IterateAllMarkedBits(uintptr_t begin, Visitor visitor) in IterateAllMarkedBits() 79 void AtomicIterateAllMarkedBits(uintptr_t begin, Visitor visitor) in AtomicIterateAllMarkedBits() 85 void IterateAllMarkedBitsConst(uintptr_t begin, Visitor visitor) const in IterateAllMarkedBitsConst()
|
D | mark_stack.h | 33 uintptr_t GetBegin() const in GetBegin() 38 uintptr_t PopBackChecked() in PopBackChecked() 40 if (UNLIKELY(top_ <= reinterpret_cast<uintptr_t *>(begin_))) { in PopBackChecked() 47 void PushBackUnchecked(uintptr_t obj) in PushBackUnchecked() 53 uintptr_t PopBackUnchecked() in PopBackUnchecked() 59 bool PushBackChecked(uintptr_t obj) in PushBackChecked() 71 return top_ == reinterpret_cast<uintptr_t *>(begin_); in IsEmpty() 74 void ResetBegin(uintptr_t begin, uintptr_t end) in ResetBegin() 77 top_ = reinterpret_cast<uintptr_t *>(begin); in ResetBegin() 78 end_ = reinterpret_cast<uintptr_t *>(end); in ResetBegin() [all …]
|
D | allocator-inl.h | 26 BumpPointerAllocator::BumpPointerAllocator(uintptr_t begin, uintptr_t end) : begin_(begin), top_(be… in BumpPointerAllocator() 35 void BumpPointerAllocator::Reset(uintptr_t begin, uintptr_t end) in Reset() 43 void BumpPointerAllocator::Reset(uintptr_t begin, uintptr_t end, uintptr_t top) in Reset() 51 uintptr_t BumpPointerAllocator::Allocate(size_t size) in Allocate() 58 uintptr_t result = top_; in Allocate() 90 uintptr_t FreeListAllocator::Allocate(size_t size) in Allocate() 104 uintptr_t FreeListAllocator::Allocate(FreeObject *object, size_t size) in Allocate() 106 uintptr_t begin = object->GetBegin(); in Allocate() 107 uintptr_t end = object->GetEnd(); in Allocate() 108 uintptr_t remainSize = end - begin - size; in Allocate() [all …]
|
D | region.h | 102 …Region(JSThread *thread, uintptr_t allocateBase, uintptr_t begin, uintptr_t end, RegionSpaceFlag s… in Region() 140 uintptr_t GetBegin() const in GetBegin() 145 uintptr_t GetEnd() const in GetEnd() 150 uintptr_t GetHighWaterMark() const in GetHighWaterMark() 200 void InsertCrossRegionRSet(uintptr_t addr); 201 void AtomicInsertCrossRegionRSet(uintptr_t addr); 205 void ClearCrossRegionRSetInRange(uintptr_t start, uintptr_t end); 206 void AtomicClearCrossRegionRSetInRange(uintptr_t start, uintptr_t end); 209 void InsertOldToNewRSet(uintptr_t addr); 210 void ClearOldToNewRSet(uintptr_t addr); [all …]
|
D | region-inl.h | 84 auto addrPtr = reinterpret_cast<uintptr_t>(address); in AtomicMark() 92 auto addrPtr = reinterpret_cast<uintptr_t>(address); in ClearMark() 99 auto addrPtr = reinterpret_cast<uintptr_t>(addr); in Test() 108 reinterpret_cast<uintptr_t>(this), packedData_.bitsetSize_, visitor); in IterateAllMarkedBits() 118 inline void Region::InsertCrossRegionRSet(uintptr_t addr) in InsertCrossRegionRSet() 124 inline void Region::AtomicInsertCrossRegionRSet(uintptr_t addr) in AtomicInsertCrossRegionRSet() 145 inline void Region::ClearCrossRegionRSetInRange(uintptr_t start, uintptr_t end) in ClearCrossRegionRSetInRange() 152 inline void Region::AtomicClearCrossRegionRSetInRange(uintptr_t start, uintptr_t end) in AtomicClearCrossRegionRSetInRange() 167 inline void Region::InsertOldToNewRSet(uintptr_t addr) in InsertOldToNewRSet() 173 inline void Region::ClearOldToNewRSet(uintptr_t addr) in ClearOldToNewRSet() [all …]
|
D | tlab_allocator-inl.h | 46 uintptr_t TlabAllocator::Allocate(size_t size, MemSpaceType space) in Allocate() 48 uintptr_t result = 0; in Allocate() 66 uintptr_t TlabAllocator::AllocateInYoungSpace(size_t size) in AllocateInYoungSpace() 70 uintptr_t address = heap_->AllocateYoungSync(size); in AllocateInYoungSpace() 73 uintptr_t result = youngAllocator_.Allocate(size); in AllocateInYoungSpace() 84 uintptr_t TlabAllocator::AllocateInCompressSpace(size_t size) in AllocateInCompressSpace() 88 uintptr_t result = localSpace_->Allocate(size, true); in AllocateInCompressSpace() 93 uintptr_t TlabAllocator::AllocateInOldSpace(size_t size) in AllocateInOldSpace() 98 uintptr_t result = localSpace_->Allocate(size, false); in AllocateInOldSpace() 110 uintptr_t buffer = heap_->AllocateYoungSync(MIN_BUFFER_SIZE); in ExpandYoung() [all …]
|
D | area.h | 22 Area(uintptr_t begin, size_t capacity) in Area() 31 uintptr_t GetBegin() const in GetBegin() 36 uintptr_t GetEnd() const in GetEnd() 69 uintptr_t begin_; 70 uintptr_t end_;
|
D | mem_common.h | 23 inline uintptr_t ToUintPtr(T *val) in ToUintPtr() 25 return reinterpret_cast<uintptr_t>(val); in ToUintPtr() 28 inline uintptr_t ToUintPtr(std::nullptr_t) in ToUintPtr() 30 return reinterpret_cast<uintptr_t>(nullptr); in ToUintPtr() 33 inline void *ToVoidPtr(uintptr_t val) in ToVoidPtr()
|
D | linear_space.h | 27 uintptr_t Allocate(size_t size, bool isPromoted = false); 36 const uintptr_t *GetAllocationTopAddress() in GetAllocationTopAddress() 40 const uintptr_t *GetAllocationEndAddress() in GetAllocationEndAddress() 70 uintptr_t waterLine_ {0}; 85 uintptr_t AllocateSync(size_t size); 92 uintptr_t GetWaterLine() const in GetWaterLine() 96 uintptr_t GetTop() const in GetTop() 102 size_t GetAllocatedSizeSinceGC(uintptr_t top = 0) const;
|
D | tlab_allocator.h | 38 inline uintptr_t Allocate(size_t size, MemSpaceType space); 41 inline uintptr_t AllocateInYoungSpace(size_t size); 42 inline uintptr_t AllocateInOldSpace(size_t size); 43 inline uintptr_t AllocateInCompressSpace(size_t size);
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | mem_range_test.cpp | 27 constexpr uintptr_t MAX_PTR = std::numeric_limits<uintptr_t>::max(); 31 constexpr uintptr_t RANDOM_AREA_SIZE = 100000; 34 std::uniform_int_distribution<uintptr_t> distribution(0, MAX_PTR); 37 static uintptr_t RandomUintptr() in RandomUintptr() 43 static panda::mem::MemRange RandomMemRange(uintptr_t min_start, uintptr_t max_end) in RandomMemRange() 47 uintptr_t rand_1 = min_start + RandomUintptr() % (max_end - min_start + 1); in RandomMemRange() 48 uintptr_t rand_2 = min_start + RandomUintptr() % (max_end - min_start + 1); in RandomMemRange() 66 constexpr uintptr_t START = 10, END = 10000; in TEST() 67 constexpr uintptr_t LOWER_THAN_START = 0, HIGHER_THAN_END = 50000; in TEST() 93 constexpr uintptr_t MIN = 10000, MAX = 50000; in TEST() [all …]
|
/arkcompiler/ets_runtime/ecmascript/stackmap/ |
D | ark_stackmap_parser.h | 40 …void GetConstInfo(uintptr_t callsite, LLVMStackMapType::ConstInfo& info, uint8_t *stackmapAddr = n… 43 uintptr_t callSiteAddr, uintptr_t callsiteFp, 44 uintptr_t callSiteSp, uint8_t *stackmapAddr) const; 45 …void GetArkDeopt(uintptr_t callSiteAddr, uint8_t *stackmapAddr, std::vector<ARKDeopt>& deopts) con… 47 …int BinaraySearch(CallsiteHeader *callsiteHead, uint32_t callsiteNum, uintptr_t callSiteAddr) cons… 53 uintptr_t GetStackSlotAddress(const LLVMStackMapType::DwarfRegAndOffsetType info, 54 uintptr_t callSiteSp, uintptr_t callsiteFp) const;
|
D | ark_stackmap_parser.cpp | 24 int ArkStackMapParser::BinaraySearch(CallsiteHeader *callsiteHead, uint32_t callsiteNum, uintptr_t … in BinaraySearch() 50 void ArkStackMapParser::GetArkDeopt(uintptr_t callSiteAddr, uint8_t *stackmapAddr, in GetArkDeopt() 69 void ArkStackMapParser::GetConstInfo(uintptr_t callSiteAddr, LLVMStackMapType::ConstInfo& info, in GetConstInfo() 94 uintptr_t ArkStackMapParser::GetStackSlotAddress(const LLVMStackMapType::DwarfRegAndOffsetType info, in GetStackSlotAddress() 95 uintptr_t callSiteSp, uintptr_t callsiteFp) const in GetStackSlotAddress() 97 uintptr_t address = 0; in GetStackSlotAddress() 110 uintptr_t callSiteAddr, uintptr_t callsiteFp, uintptr_t callSiteSp, uint8_t *stackmapAddr) const in IteratorStackMap() 132 std::map<uintptr_t, uintptr_t> baseSet; in IteratorStackMap() 136 uintptr_t base = GetStackSlotAddress(baseInfo, callSiteSp, callsiteFp); in IteratorStackMap() 137 uintptr_t derived = GetStackSlotAddress(derivedInfo, callSiteSp, callsiteFp); in IteratorStackMap() [all …]
|
/arkcompiler/runtime_core/libpandabase/mem/ |
D | mem_range.h | 28 …MemRange(uintptr_t start_address, uintptr_t end_address) : start_address_(start_address), end_addr… in MemRange() 33 bool IsAddressInRange(uintptr_t addr) const in IsAddressInRange() 38 uintptr_t GetStartAddress() const in GetStartAddress() 43 uintptr_t GetEndAddress() const in GetEndAddress() 60 bool Contains(uintptr_t addr) const in Contains() 76 uintptr_t start_address_; /// < address of the first byte in memory range 77 uintptr_t end_address_; /// < address of the last byte in memory range
|
/arkcompiler/runtime_core/libpandabase/os/ |
D | stacktrace.cpp | 35 …VmaEntry(uintptr_t param_start_addr, uintptr_t param_end_addr, uintptr_t param_offset, const std::… in VmaEntry() 42 uintptr_t start_addr; // NOLINT(misc-non-private-member-variables-in-classes) 43 uintptr_t end_addr; // NOLINT(misc-non-private-member-variables-in-classes) 44 uintptr_t offset; // NOLINT(misc-non-private-member-variables-in-classes) 88 std::ostream &Print(const std::vector<uintptr_t> &stacktrace, std::ostream &out) in Print() 105 void PrintFrame(size_t frame_num, uintptr_t pc, std::ostream &out) in PrintFrame() 120 uintptr_t pc_offset = pc - vma->start_addr + vma->offset; in PrintFrame() 131 uintptr_t offset = 0; in PrintFrame() 163 void PrintFrame(const std::string &function, uintptr_t offset, std::ostream &out) in PrintFrame() 171 bool ReadSymbol(uintptr_t pc, std::string *function, uintptr_t *offset) in ReadSymbol() [all …]
|
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/ |
D | js_stackinfo.cpp | 105 uintptr_t *native = nullptr; in BuildJsStackInfo() 161 native = reinterpret_cast<uintptr_t *>(extraInfo->GetExternalPointer()); in BuildJsStackInfo() 177 uintptr_t pc = uctx->uc_mcontext.pc; in CrashCallback() 178 uintptr_t fp = uctx->uc_mcontext.regs[29]; // 29: fp in CrashCallback() 209 uintptr_t func = uctx->uc_mcontext.regs[2]; // 2: func in CrashCallback() 222 bool ReadUintptrFromAddr(int pid, uintptr_t addr, uintptr_t &value, bool needCheckRegion) in ReadUintptrFromAddr() 228 uintptr_t regionBegin = region->GetBegin(); in ReadUintptrFromAddr() 229 uintptr_t regionEnd = region->GetEnd(); in ReadUintptrFromAddr() 245 value = *(reinterpret_cast<uintptr_t *>(addr)); in ReadUintptrFromAddr() 250 for (size_t i = 0; i < sizeof(uintptr_t) / sizeof(long); i++) { in ReadUintptrFromAddr() [all …]
|
D | js_stackinfo.h | 28 uintptr_t *nativePointer = nullptr; 41 int pid, uintptr_t *pc, uintptr_t *fp, uintptr_t *sp, char *buf, size_t buf_sz); 43 int pid, uintptr_t *x20, uintptr_t *fp, int out_js_info, char *buf, size_t buf_sz);
|
/arkcompiler/ets_runtime/ecmascript/ |
D | frames.h | 113 enum class FrameType: uintptr_t { 145 enum class JSCallMode : uintptr_t { 213 return reinterpret_cast<OptimizedFrame *>(reinterpret_cast<uintptr_t>(sp) - in GetFrameFromSp() 220 uintptr_t GetReturnAddr() const in GetReturnAddr() 227 alignas(EAS) uintptr_t returnAddr {0}; 247 uintptr_t GetCallSiteSp() const in GetCallSiteSp() 268 return reinterpret_cast<AsmBridgeFrame *>(reinterpret_cast<uintptr_t>(sp) - in GetFrameFromSp() 275 uintptr_t GetReturnAddr() const in GetReturnAddr() 281 alignas(EAS) uintptr_t returnAddr {0}; 331 … return reinterpret_cast<OptimizedJSFunctionUnfoldArgVFrame *>(reinterpret_cast<uintptr_t>(sp) - in GetFrameFromSp() [all …]
|
D | frames.cpp | 40 int FrameIterator::GetCallSiteDelta(uintptr_t returnAddr) const in GetCallSiteDelta() 112 AOTFileInfo::CallSiteInfo FrameIterator::CalCallSiteInfo(uintptr_t retAddr) const in CalCallSiteInfo() 325 uintptr_t FrameIterator::GetPrevFrameCallSiteSp() const in GetPrevFrameCallSiteSp() 364 auto callSiteSp = reinterpret_cast<uintptr_t>(current_) + fpDeltaPrevFrameSp_; in GetPrevFrameCallSiteSp() 432 uintptr_t FrameIterator::GetPrevFrame() const in GetPrevFrame() 435 uintptr_t end = 0U; in GetPrevFrame() 468 reinterpret_cast<uintptr_t>(current_), optimizedCallSiteSp_, stackMapAddr_); in IteratorStackMap() 496 uintptr_t *preFrameSp = ComputePrevFrameSp(it); in GetArgv() 500 ARK_INLINE uintptr_t* OptimizedJSFunctionFrame::ComputePrevFrameSp(const FrameIterator &it) const in ComputePrevFrameSp() 504 ASSERT((delta > 0) && (delta % sizeof(uintptr_t) == 0)); in ComputePrevFrameSp() [all …]
|
D | free_object.h | 28 static FreeObject *Cast(uintptr_t object) in Cast() 32 static FreeObject *FillFreeObject(EcmaVM *vm, uintptr_t address, size_t size); 39 inline uintptr_t GetBegin() const in GetBegin() 41 return reinterpret_cast<uintptr_t>(this); in GetBegin() 44 inline uintptr_t GetEnd() const in GetEnd() 46 return reinterpret_cast<uintptr_t>(this) + Available(); in GetEnd()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | frame_test.cpp | 51 if (sizeof(uintptr_t) == sizeof(uint32_t)) { // 32 bit in HWTEST_F_L0() 75 uintptr_t x20 = reinterpret_cast<uintptr_t>(&bytecode[5]); // 5: HandleThrow offset in HWTEST_F_L0() 76 uintptr_t fp = reinterpret_cast<uintptr_t>(&frame[9]); // 9: bottom of frame in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | llvm_codegen.h | 59 uint8_t *Alloca(uintptr_t size, bool isReq, size_t alignSize); 76 uint8_t *AllocaInReqSecBuffer(uintptr_t size, size_t alignSize = 0); 78 uint8_t *AllocaInNotReqSecBuffer(uintptr_t size, size_t alignSize = 0); 80 uint8_t *AllocaCodeSection(uintptr_t size, const char *sectionName); 82 uint8_t *AllocaDataSection(uintptr_t size, const char *sectionName); 90 std::vector<std::pair<uint8_t *, uintptr_t>> GetCodeInfo() const; 105 …std::vector<std::pair<uint8_t *, uintptr_t>> codeInfo_ {}; // info for disasssembler, planed to be… 133 void Disassemble(const std::map<uintptr_t, std::string> &addr2name, uint64_t textOffset, 135 static void Disassemble(const std::map<uintptr_t, std::string> *addr2name, 140 uintptr_t GetSectionAddr(ElfSecName sec) const in GetSectionAddr() [all …]
|