Home
last modified time | relevance | path

Searched refs:ObjectSize (Results 1 – 14 of 14) sorted by relevance

/ark/runtime_core/runtime/
Dobject_header.cpp136 std::size_t obj_size = src->ObjectSize(); in ShallowCopy()
193 size_t ObjectHeader::ObjectSize() const in ObjectSize() function in panda::ObjectHeader
198 return static_cast<const coretypes::Array *>(this)->ObjectSize(); in ObjectSize()
202 return static_cast<const coretypes::String *>(this)->ObjectSize(); in ObjectSize()
/ark/runtime_core/runtime/tests/
Darray_test.cpp64 ASSERT_EQ(array->ObjectSize(), GetArrayObjectSize(klass, n)) << msg; in TestArrayObjectSize()
67 TEST_F(ArrayTest, ObjectSize) in TEST_F() argument
Dmem_stats_test.cpp373 stats.RecordAllocateObject(string_object->ObjectSize(), type); in FillMemStatsForConcurrency()
383 stats.RecordFreeObject(string_object->ObjectSize(), type); in FillMemStatsForConcurrency()
420 … ASSERT_EQ(stats.GetAllocated(type), TOTAL_ITERATION_COUNT * string_object->ObjectSize()); in TEST_F()
421 ASSERT_EQ(stats.GetFreed(type), NUM_THREADS * string_object->ObjectSize()); in TEST_F()
422 …_EQ(stats.GetFootprint(type), (TOTAL_ITERATION_COUNT - NUM_THREADS) * string_object->ObjectSize()); in TEST_F()
Dmem_stats_additional_info_test.cpp66 size_t string_size = string_object->ObjectSize(); in TEST_F()
Dstring_test.cpp454 TEST_F(StringTest, ObjectSize) in TEST_F() argument
461 ASSERT_EQ(string->ObjectSize(), String::ComputeSizeMUtf8(utf16_length)); in TEST_F()
469 ASSERT_EQ(string->ObjectSize(), String::ComputeSizeUtf16(utf16_length)); in TEST_F()
/ark/runtime_core/runtime/mem/
Drunslots.cpp168 auto size_power_of_two = ConvertToPowerOfTwoUnsafe(obj->ObjectSize()); in operator ()()
Dobject_helpers.cpp46 object_size = string_object->ObjectSize(); in GetObjectSize()
54 object_size = obj_header->ObjectSize(); in GetObjectSize()
/ark/js_runtime/ecmascript/tests/
Decma_string_test.cpp253 HWTEST_F_L0(EcmaStringTest, ObjectSize) in HWTEST_F_L0() argument
258 EXPECT_EQ(handleEcmaStrEmpty->ObjectSize(), EcmaString::SIZE + 0); in HWTEST_F_L0()
263 …EXPECT_EQ(handleEcmaStrAllocComp->ObjectSize(), EcmaString::SIZE + sizeof(uint8_t) * lengthEcmaStr… in HWTEST_F_L0()
268 EXPECT_EQ(handleEcmaStrAllocNotComp->ObjectSize(), in HWTEST_F_L0()
275 EXPECT_EQ(handleEcmaStrU8->ObjectSize(), EcmaString::SIZE + sizeof(uint8_t) * lengthEcmaStrU8); in HWTEST_F_L0()
282 …EXPECT_EQ(handleEcmaStrU16Comp->ObjectSize(), EcmaString::SIZE + sizeof(uint8_t) * lengthEcmaStrU1… in HWTEST_F_L0()
289 …EXPECT_EQ(handleEcmaStrU16NotComp->ObjectSize(), EcmaString::SIZE + sizeof(uint16_t) * lengthEcmaS… in HWTEST_F_L0()
/ark/runtime_core/runtime/include/coretypes/
Darray.h168 size_t ObjectSize() const in ObjectSize() function
Dstring.h202 size_t ObjectSize() const in ObjectSize() function
/ark/js_runtime/ecmascript/
Djs_hclass-inl.h183 size = reinterpret_cast<EcmaString *>(header)->ObjectSize(); in SizeFromJSHClass()
Decma_string.h209 size_t ObjectSize() const in ObjectSize() function
/ark/runtime_core/runtime/include/
Dobject_header.h279 size_t ObjectSize() const;
/ark/js_runtime/ecmascript/hprof/
Dheap_snapshot.cpp482 size_t selfsize = originStr->ObjectSize(); in GenerateStringNode()