Home
last modified time | relevance | path

Searched refs:ComputeSizeUtf8 (Results 1 - 9 of 9) 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.h778 static size_t ComputeSizeUtf8(uint32_t utf8Len)
791 return str->IsUtf16() ? ComputeSizeUtf16(length) : ComputeSizeUtf8(length);
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dhcr_circuit_builder.h131 GateRef CircuitBuilder::ComputeSizeUtf8(GateRef length) in ComputeSizeUtf8() function in panda::ecmascript::kungfu::CircuitBuilder
H A Dcircuit_builder.h749 inline GateRef ComputeSizeUtf8(GateRef length);
H A Dstub_builder.h972 GateRef ComputeSizeUtf8(GateRef length);
H A Dnew_object_stub_builder.cpp1621 size_ = AlignUp(ComputeSizeUtf8(ZExtInt32ToPtr(length)), in AllocLineStringObject()
H A Dstub_builder-inl.h3553 inline GateRef StubBuilder::ComputeSizeUtf8(GateRef length) in ComputeSizeUtf8() function in panda::ecmascript::kungfu::StubBuilder
H A Dtyped_hcr_lowering.cpp2104 size = builder_.AlignUp(builder_.ComputeSizeUtf8(builder_.ZExtInt32ToPtr(length)), in AllocateLineString()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Decma_string_accessor_test.cpp27 * @tc.name: ComputeSizeUtf8
28 * @tc.desc: Check whether the value returned through calling ComputeSizeUtf8 function is within expectations.
32 HWTEST_F_L0(LineEcmaStringTest, ComputeSizeUtf8) in HWTEST_F_L0()
37 EXPECT_EQ(LineEcmaString::ComputeSizeUtf8(length), length + LineEcmaString::SIZE); in HWTEST_F_L0()

Completed in 32 milliseconds