Home
last modified time | relevance | path

Searched refs:ComputeSizeUtf16 (Results 1 - 13 of 13) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Decma_string-inl.h109 size_t size = IsUtf8() ? LineEcmaString::ComputeSizeUtf8(newLength) : LineEcmaString::ComputeSizeUtf16(newLength); in TrimLineString()
140 size_t size = compressed ? LineEcmaString::ComputeSizeUtf8(length) : LineEcmaString::ComputeSizeUtf16(length); in CreateLineString()
150 size_t size = compressed ? LineEcmaString::ComputeSizeUtf8(length) : LineEcmaString::ComputeSizeUtf16(length); in CreateLineStringNoGC()
163 size_t size = compressed ? LineEcmaString::ComputeSizeUtf8(length) : LineEcmaString::ComputeSizeUtf16(length); in CreateLineStringWithSpaceType()
H A Decma_string.h783 static size_t ComputeSizeUtf16(uint32_t utf16Len)
791 return str->IsUtf16() ? ComputeSizeUtf16(length) : ComputeSizeUtf8(length);
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dtest_utils.h41 return heapManager->AllocateObject(stringClass, ark::coretypes::String::ComputeSizeUtf16(length)); in AllocateNullifiedPayloadString()
H A Dstring_test.cpp493 ASSERT_EQ(string->ObjectSize(), String::ComputeSizeUtf16(utf16Length)); in TEST_F()
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/
H A Dstring.h103 static size_t ComputeSizeUtf16(uint32_t utf16Length) in ComputeSizeUtf16() function in ark::coretypes::String
224 return IsUtf16() ? ComputeSizeUtf16(length) : ComputeSizeMUtf8(length); in ObjectSize()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dhcr_circuit_builder.h136 GateRef CircuitBuilder::ComputeSizeUtf16(GateRef length) in ComputeSizeUtf16() function in panda::ecmascript::kungfu::CircuitBuilder
H A Dcircuit_builder.h750 inline GateRef ComputeSizeUtf16(GateRef length);
H A Dstub_builder.h973 GateRef ComputeSizeUtf16(GateRef length);
H A Dnew_object_stub_builder.cpp1624 size_ = AlignUp(ComputeSizeUtf16(ZExtInt32ToPtr(length)), in AllocLineStringObject()
H A Dstub_builder-inl.h3558 inline GateRef StubBuilder::ComputeSizeUtf16(GateRef length) in ComputeSizeUtf16() function in panda::ecmascript::kungfu::StubBuilder
H A Dtyped_hcr_lowering.cpp2111 size = builder_.AlignUp(builder_.ComputeSizeUtf16(builder_.ZExtInt32ToPtr(length)), in AllocateLineString()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Decma_string_accessor_test.cpp42 * @tc.name: ComputeSizeUtf16
43 * @tc.desc: Check whether the value returned through calling ComputeSizeUtf16 function is within expectations.
47 HWTEST_F_L0(LineEcmaStringTest, ComputeSizeUtf16) in HWTEST_F_L0()
52 EXPECT_EQ(LineEcmaString::ComputeSizeUtf16(length), 2 * length + LineEcmaString::SIZE); in HWTEST_F_L0()
/arkcompiler/runtime_core/static_core/runtime/coretypes/
H A Dstring.cpp1042 size_t size = compressed ? String::ComputeSizeMUtf8(length) : String::ComputeSizeUtf16(length); in AllocStringObject()

Completed in 38 milliseconds