Home
last modified time | relevance | path

Searched refs:ObjectSize (Results 1 - 23 of 23) sorted by relevance

/arkcompiler/runtime_core/static_core/runtime/tests/
H A Darray_test.cpp68 ASSERT_EQ(array->ObjectSize(klass->GetComponentSize()), GetArrayObjectSize(klass, n)) << msg; in TestArrayObjectSize()
71 TEST_F(ArrayTest, ObjectSize) in TEST_F()
H A Dmem_stats_test.cpp378 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 Dmem_stats_additional_info_test.cpp71 size_t stringSize = stringObject->ObjectSize(); in TEST_F()
H A Dstring_test.cpp478 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 Dobject_header.cpp185 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 Dclass-inl.h665 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 Dobject_header.h303 size_t ObjectSize() const;
306 size_t ObjectSize(BaseClass *baseKlass) const in ObjectSize() function in ark::ObjectHeader
H A Dlanguage_context.h230 return stringObject->ObjectSize(); in GetStringSize()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
H A Dets_array.h46 size_t ObjectSize() in ObjectSize() function in ark::ets::EtsArray
48 return GetCoreType()->ObjectSize(GetElementSize()); in ObjectSize()
H A Dets_string_builder.cpp60 newBuf->ObjectSize()); in ReallocateBuffer()
/arkcompiler/runtime_core/static_core/runtime/mem/
H A Dobject_helpers.h48 return static_cast<const ObjectHeader *>(mem)->ObjectSize(); in GetObjectSize()
H A Drunslots.cpp168 auto sizePowerOfTwo = ConvertToPowerOfTwoUnsafe(obj->ObjectSize()); in operator ()()
H A Dobject_helpers.cpp48 size_t size = header->ObjectSize(); in GetDebugInfoAboutObject()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Dconstant_string_test.cpp63 * @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 Decma_string_test.cpp145 * @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 Decma_string_accessor_test.cpp355 * @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 Decma_string.h788 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 Djs_hclass-inl.h259 size = LineEcmaString::ObjectSize(reinterpret_cast<EcmaString* >(header)); in SizeFromJSHClass()
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
H A Dsnapshot.cpp236 size_t objectSize = AlignUp(EcmaStringAccessor(str).ObjectSize(), in WriteToFile()
261 size_t strSize = AlignUp(EcmaStringAccessor(str).ObjectSize(), in WriteToFile()
H A Dsnapshot_processor.cpp1328 size_t strSize = EcmaStringAccessor(str).ObjectSize(); in DeserializeString()
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/
H A Darray.h180 size_t ObjectSize(uint32_t componentSize) const in ObjectSize() function in ark::ark::coretypes::Array
H A Dstring.h221 size_t ObjectSize() const in ObjectSize() function in ark::coretypes::String
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/
H A Dg1-gc.cpp50 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()

Completed in 30 milliseconds