/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | array_test.cpp | 68 ASSERT_EQ(array->ObjectSize(klass->GetComponentSize()), GetArrayObjectSize(klass, n)) << msg; in TestArrayObjectSize() 71 TEST_F(ArrayTest, ObjectSize) in TEST_F()
|
H A D | mem_stats_test.cpp | 378 stats.RecordAllocateObject(stringObject->ObjectSize(), type); in FillMemStatsForConcurrency() 388 stats.RecordFreeObject(stringObject->ObjectSize(), type); in FillMemStatsForConcurrency() 425 ASSERT_EQ(stats.GetAllocated(type), TOTAL_ITERATION_COUNT * stringObject->ObjectSize()); in TEST_F() 426 ASSERT_EQ(stats.GetFreed(type), NUM_THREADS * stringObject->ObjectSize()); in TEST_F() 427 ASSERT_EQ(stats.GetFootprint(type), (TOTAL_ITERATION_COUNT - NUM_THREADS) * stringObject->ObjectSize()); in TEST_F()
|
H A D | mem_stats_additional_info_test.cpp | 71 size_t stringSize = stringObject->ObjectSize(); in TEST_F()
|
H A D | string_test.cpp | 478 TEST_F(StringTest, ObjectSize) in TEST_F() 485 ASSERT_EQ(string->ObjectSize(), String::ComputeSizeMUtf8(utf16Length)); in TEST_F() 493 ASSERT_EQ(string->ObjectSize(), String::ComputeSizeUtf16(utf16Length)); in TEST_F()
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | object_header.cpp | 185 std::size_t objSize = src->ObjectSize(); in ShallowCopy() 247 size_t ObjectHeader::ObjectSize() const in ObjectSize() function in ark::ObjectHeader 263 return static_cast<const coretypes::Array *>(this)->ObjectSize(TaggedValue::TaggedTypeSize()); in ObjectSizeDyn() 281 return static_cast<const coretypes::Array *>(this)->ObjectSize(klass->GetComponentSize()); in ObjectSizeStatic() 285 return static_cast<const coretypes::String *>(this)->ObjectSize(); in ObjectSizeStatic()
|
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | class-inl.h | 665 ASSERT(ToUintPtr(object) < ToUintPtr(this) && ToUintPtr(this) < ToUintPtr(object) + object->ObjectSize()); 694 ASSERT(ToUintPtr(object) < ToUintPtr(this) && ToUintPtr(this) < ToUintPtr(object) + object->ObjectSize()); 715 ASSERT(ToUintPtr(object) < ToUintPtr(this) && ToUintPtr(this) < ToUintPtr(object) + object->ObjectSize()); 748 ASSERT(ToUintPtr(object) < ToUintPtr(this) && ToUintPtr(this) < ToUintPtr(object) + object->ObjectSize()); 766 ASSERT(ToUintPtr(object) < ToUintPtr(this) && ToUintPtr(this) < ToUintPtr(object) + object->ObjectSize()); 786 ASSERT(ToUintPtr(object) < ToUintPtr(this) && ToUintPtr(this) < ToUintPtr(object) + object->ObjectSize()); 804 ASSERT(ToUintPtr(object) < ToUintPtr(this) && ToUintPtr(this) < ToUintPtr(object) + object->ObjectSize());
|
H A D | object_header.h | 303 size_t ObjectSize() const; 306 size_t ObjectSize(BaseClass *baseKlass) const in ObjectSize() function in ark::ObjectHeader
|
H A D | language_context.h | 230 return stringObject->ObjectSize(); in GetStringSize()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
H A D | ets_array.h | 46 size_t ObjectSize() in ObjectSize() function in ark::ets::EtsArray 48 return GetCoreType()->ObjectSize(GetElementSize()); in ObjectSize()
|
H A D | ets_string_builder.cpp | 60 newBuf->ObjectSize()); in ReallocateBuffer()
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | object_helpers.h | 48 return static_cast<const ObjectHeader *>(mem)->ObjectSize(); in GetObjectSize()
|
H A D | runslots.cpp | 168 auto sizePowerOfTwo = ConvertToPowerOfTwoUnsafe(obj->ObjectSize()); in operator ()()
|
H A D | object_helpers.cpp | 48 size_t size = header->ObjectSize(); in GetDebugInfoAboutObject()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | constant_string_test.cpp | 63 * @tc.name: ObjectSize
64 * @tc.desc: Check whether the value returned through calling ObjectSize function is within expectations.
68 HWTEST_F_L0(ConstantStringTest, ObjectSize)
in HWTEST_F_L0() 72 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrEmpty).ObjectSize(), ConstantString::SIZE);
in HWTEST_F_L0() 78 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrU8).ObjectSize(), ConstantString::SIZE);
in HWTEST_F_L0()
|
H A D | ecma_string_test.cpp | 145 * @tc.name: ObjectSize 146 * @tc.desc: Check whether the value returned through calling ObjectSize function is within expectations. 150 HWTEST_F_L0(EcmaStringTest, ObjectSize) in HWTEST_F_L0() 153 EXPECT_EQ(handleEcmaStrEmpty->ObjectSize(), EcmaString::SIZE + 0); in HWTEST_F_L0() 158 EXPECT_EQ(handleEcmaStrAllocComp->ObjectSize(), EcmaString::SIZE + sizeof(uint8_t) * lengthEcmaStrAllocComp); in HWTEST_F_L0() 163 EXPECT_EQ(handleEcmaStrAllocNotComp->ObjectSize(), in HWTEST_F_L0() 170 EXPECT_EQ(handleEcmaStrU8->ObjectSize(), EcmaString::SIZE + sizeof(uint8_t) * lengthEcmaStrU8); in HWTEST_F_L0() 172 // ObjectSize(). EcmaString made by CreateFromUtf16( , , , true). in HWTEST_F_L0() 177 EXPECT_EQ(handleEcmaStrU16Comp->ObjectSize(), EcmaString::SIZE + sizeof(uint8_t) * lengthEcmaStrU16Comp); in HWTEST_F_L0() 179 // ObjectSize() in HWTEST_F_L0() [all...] |
H A D | ecma_string_accessor_test.cpp | 355 * @tc.name: ObjectSize 356 * @tc.desc: Check whether the value returned through calling ObjectSize function is within expectations. 360 HWTEST_F_L0(EcmaStringAccessorTest, ObjectSize) in HWTEST_F_L0() 363 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrEmpty).ObjectSize(), EcmaString::SIZE + 0); in HWTEST_F_L0() 368 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrAllocComp).ObjectSize(), in HWTEST_F_L0() 374 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrAllocNotComp).ObjectSize(), in HWTEST_F_L0() 381 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrU8).ObjectSize(), EcmaString::SIZE + sizeof(uint8_t) * lengthEcmaStrU8); in HWTEST_F_L0() 383 // ObjectSize(). EcmaString made by CreateFromUtf16( , , , true). in HWTEST_F_L0() 388 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrU16Comp).ObjectSize(), in HWTEST_F_L0() 391 // ObjectSize() in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_string.h | 788 static size_t ObjectSize(EcmaString *str) 869 static size_t ObjectSize() 919 static size_t ObjectSize() 1166 size_t ObjectSize() const in ObjectSize() function in panda::EcmaStringAccessor 1169 return LineEcmaString::ObjectSize(string_); in ObjectSize() 1171 return ConstantString::ObjectSize(); in ObjectSize() 1181 return ConstantString::ObjectSize(); in GetFlatStringSize() 1183 return LineEcmaString::ObjectSize(string_); in GetFlatStringSize()
|
H A D | js_hclass-inl.h | 259 size = LineEcmaString::ObjectSize(reinterpret_cast<EcmaString* >(header)); in SizeFromJSHClass()
|
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
H A D | snapshot.cpp | 236 size_t objectSize = AlignUp(EcmaStringAccessor(str).ObjectSize(), in WriteToFile() 261 size_t strSize = AlignUp(EcmaStringAccessor(str).ObjectSize(), in WriteToFile()
|
H A D | snapshot_processor.cpp | 1328 size_t strSize = EcmaStringAccessor(str).ObjectSize(); in DeserializeString()
|
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/ |
H A D | array.h | 180 size_t ObjectSize(uint32_t componentSize) const in ObjectSize() function in ark::ark::coretypes::Array
|
H A D | string.h | 221 size_t ObjectSize() const in ObjectSize() function in ark::coretypes::String
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/ |
H A D | g1-gc.cpp | 50 size_t objectSize = GetAlignedObjectSize(object->ObjectSize<LanguageConfig::LANG_TYPE>(baseKlass)); in CalcLiveBytesMarkPreprocess() 59 size_t objectSize = GetAlignedObjectSize(object->ObjectSize<LanguageConfig::LANG_TYPE>(baseKlass)); in CalcLiveBytesNotAtomicallyMarkPreprocess()
|