Searched refs:ObjectSize (Results 1 – 14 of 14) sorted by relevance
/ark/runtime_core/runtime/ |
D | object_header.cpp | 136 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/ |
D | array_test.cpp | 64 ASSERT_EQ(array->ObjectSize(), GetArrayObjectSize(klass, n)) << msg; in TestArrayObjectSize() 67 TEST_F(ArrayTest, ObjectSize) in TEST_F() argument
|
D | mem_stats_test.cpp | 373 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()
|
D | mem_stats_additional_info_test.cpp | 66 size_t string_size = string_object->ObjectSize(); in TEST_F()
|
D | string_test.cpp | 454 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/ |
D | runslots.cpp | 168 auto size_power_of_two = ConvertToPowerOfTwoUnsafe(obj->ObjectSize()); in operator ()()
|
D | object_helpers.cpp | 46 object_size = string_object->ObjectSize(); in GetObjectSize() 54 object_size = obj_header->ObjectSize(); in GetObjectSize()
|
/ark/js_runtime/ecmascript/tests/ |
D | ecma_string_test.cpp | 253 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/ |
D | array.h | 168 size_t ObjectSize() const in ObjectSize() function
|
D | string.h | 202 size_t ObjectSize() const in ObjectSize() function
|
/ark/js_runtime/ecmascript/ |
D | js_hclass-inl.h | 183 size = reinterpret_cast<EcmaString *>(header)->ObjectSize(); in SizeFromJSHClass()
|
D | ecma_string.h | 209 size_t ObjectSize() const in ObjectSize() function
|
/ark/runtime_core/runtime/include/ |
D | object_header.h | 279 size_t ObjectSize() const;
|
/ark/js_runtime/ecmascript/hprof/ |
D | heap_snapshot.cpp | 482 size_t selfsize = originStr->ObjectSize(); in GenerateStringNode()
|