Searched refs:ObjectSize (Results 1 – 7 of 7) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/ |
D | ecma_string.h | 587 static size_t ObjectSize(EcmaString *str) in ObjectSize() function 649 static size_t ObjectSize() in ObjectSize() function 809 size_t ObjectSize() const in ObjectSize() function 812 return LineEcmaString::ObjectSize(string_); in ObjectSize() 814 return ConstantString::ObjectSize(); in ObjectSize() 824 return ConstantString::ObjectSize(); in GetFlatStringSize() 826 return LineEcmaString::ObjectSize(string_); in GetFlatStringSize()
|
D | js_hclass-inl.h | 198 size = LineEcmaString::ObjectSize(reinterpret_cast<EcmaString* >(header)); in SizeFromJSHClass()
|
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
D | snapshot.cpp | 202 size_t objectSize = AlignUp(EcmaStringAccessor(str).ObjectSize(), in WriteToFile() 227 size_t strSize = AlignUp(EcmaStringAccessor(str).ObjectSize(), in WriteToFile()
|
D | snapshot_processor.cpp | 1348 size_t strSize = EcmaStringAccessor(str).ObjectSize(); in DeserializeString()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | constant_string_test.cpp | 92 HWTEST_F_L0(ConstantStringTest, ObjectSize) in HWTEST_F_L0() argument 96 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrEmpty).ObjectSize(), ConstantString::SIZE); in HWTEST_F_L0() 102 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrU8).ObjectSize(), ConstantString::SIZE); in HWTEST_F_L0()
|
D | ecma_string_test.cpp | 169 HWTEST_F_L0(EcmaStringTest, ObjectSize) in HWTEST_F_L0() argument 172 EXPECT_EQ(handleEcmaStrEmpty->ObjectSize(), EcmaString::SIZE + 0); in HWTEST_F_L0() 177 …EXPECT_EQ(handleEcmaStrAllocComp->ObjectSize(), EcmaString::SIZE + sizeof(uint8_t) * lengthEcmaStr… in HWTEST_F_L0() 182 EXPECT_EQ(handleEcmaStrAllocNotComp->ObjectSize(), in HWTEST_F_L0() 189 EXPECT_EQ(handleEcmaStrU8->ObjectSize(), EcmaString::SIZE + sizeof(uint8_t) * lengthEcmaStrU8); in HWTEST_F_L0() 196 …EXPECT_EQ(handleEcmaStrU16Comp->ObjectSize(), EcmaString::SIZE + sizeof(uint8_t) * lengthEcmaStrU1… in HWTEST_F_L0() 203 …EXPECT_EQ(handleEcmaStrU16NotComp->ObjectSize(), EcmaString::SIZE + sizeof(uint16_t) * lengthEcmaS… in HWTEST_F_L0()
|
D | ecma_string_accessor_test.cpp | 442 HWTEST_F_L0(EcmaStringAccessorTest, ObjectSize) in HWTEST_F_L0() argument 445 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrEmpty).ObjectSize(), EcmaString::SIZE + 0); in HWTEST_F_L0() 450 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrAllocComp).ObjectSize(), in HWTEST_F_L0() 456 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrAllocNotComp).ObjectSize(), in HWTEST_F_L0() 463 …EXPECT_EQ(EcmaStringAccessor(handleEcmaStrU8).ObjectSize(), EcmaString::SIZE + sizeof(uint8_t) * l… in HWTEST_F_L0() 470 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrU16Comp).ObjectSize(), in HWTEST_F_L0() 478 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrU16NotComp).ObjectSize(), in HWTEST_F_L0()
|