Home
last modified time | relevance | path

Searched refs:objectSize (Results 1 – 8 of 8) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/mem/
Dspace.cpp86 uintptr_t HugeObjectSpace::Allocate(size_t objectSize, JSThread *thread) in Allocate() argument
90 …size_t alignedSize = AlignUp(objectSize + sizeof(Region) + HUGE_OBJECT_BITSET_SIZE, PANDA_POOL_ALI… in Allocate()
98 ASAN_UNPOISON_MEMORY_REGION(reinterpret_cast<void *>(region->GetBegin()), objectSize); in Allocate()
100 InvokeAllocationInspector(region->GetBegin(), objectSize); in Allocate()
144 void HugeObjectSpace::InvokeAllocationInspector(Address object, size_t objectSize) in InvokeAllocationInspector() argument
149 if (objectSize >= allocationCounter_.NextBytes()) { in InvokeAllocationInspector()
150 allocationCounter_.InvokeAllocationInspector(object, objectSize, objectSize); in InvokeAllocationInspector()
152 allocationCounter_.AdvanceAllocationInspector(objectSize); in InvokeAllocationInspector()
Dallocation_inspector.cpp75 void AllocationCounter::InvokeAllocationInspector(Address object, size_t objectSize, size_t aligned… in InvokeAllocationInspector() argument
85 inspector_->Step(object, objectSize); in InvokeAllocationInspector()
Dspace.h233 uintptr_t Allocate(size_t objectSize, JSThread *thread);
240 void InvokeAllocationInspector(Address object, size_t objectSize);
Dallocation_inspector.h56 void InvokeAllocationInspector(Address object, size_t objectSize, size_t alignedObjectSize);
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_hclass_test.cpp83 size_t objectSize; in HWTEST_F_L0() local
85 objectSize = objectClass->SizeFromJSHClass(*objectClass); in HWTEST_F_L0()
86 EXPECT_EQ(objectSize, 40U); in HWTEST_F_L0()
89 objectSize = string->GetClass()->SizeFromJSHClass(string); in HWTEST_F_L0()
90 EXPECT_EQ(objectSize, 16U); in HWTEST_F_L0()
92 objectSize = string->GetClass()->SizeFromJSHClass(string); in HWTEST_F_L0()
93 EXPECT_EQ(objectSize, 32U); in HWTEST_F_L0()
96 objectSize = objectClass->SizeFromJSHClass(*objectClass); in HWTEST_F_L0()
97 EXPECT_EQ(objectSize, 24U); in HWTEST_F_L0()
100 objectSize = objectClass->SizeFromJSHClass(*objectClass); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
Dsnapshot_processor.cpp1178 uintptr_t SnapshotProcessor::AllocateObjectToLocalSpace(Space *space, size_t objectSize) in AllocateObjectToLocalSpace() argument
1182 …newObj = reinterpret_cast<HugeObjectSpace *>(space)->Allocate(objectSize, vm_->GetAssociatedJSThre… in AllocateObjectToLocalSpace()
1184 newObj = reinterpret_cast<SnapshotSpace *>(space)->Allocate(objectSize); in AllocateObjectToLocalSpace()
1186 newObj = reinterpret_cast<LocalSpace *>(space)->Allocate(objectSize); in AllocateObjectToLocalSpace()
1194 snapshotData += SnapshotHelper::EncodeHugeObjectSize(objectSize); in AllocateObjectToLocalSpace()
1829 size_t objectSize = objectHeader->GetClass()->SizeFromJSHClass(objectHeader); in EncodeTaggedObject() local
1830 if (objectSize == 0) { in EncodeTaggedObject()
1835 newObj = AllocateObjectToLocalSpace(snapshotLocalSpace_, objectSize); in EncodeTaggedObject()
1839 newObj = AllocateObjectToLocalSpace(oldLocalSpace_, objectSize); in EncodeTaggedObject()
1841 newObj = AllocateObjectToLocalSpace(machineCodeLocalSpace_, objectSize); in EncodeTaggedObject()
[all …]
Dsnapshot.cpp202 size_t objectSize = AlignUp(EcmaStringAccessor(str).ObjectSize(), in WriteToFile() local
204 totalStringSize += objectSize; in WriteToFile()
Dsnapshot_processor.h129 uintptr_t AllocateObjectToLocalSpace(Space *space, size_t objectSize);