Searched refs:leftLength (Results 1 – 3 of 3) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/ |
D | ecma_string.cpp | 29 uint32_t leftLength = strLeft->GetLength(); in Concat() local 31 uint32_t newLength = leftLength + rightLength; in Concat() 36 if (leftLength == 0) { in Concat() 49 return CopyStringToOldSpace(vm, left, leftLength, strLeft->IsUtf8()); in Concat() 66 Span<const uint8_t> srcLeft(strLeft->GetDataUtf8(), leftLength); in Concat() 67 EcmaString::MemCopyChars(sp, newLength, srcLeft, leftLength); in Concat() 69 sp = sp.SubSpan(leftLength); in Concat() 76 EcmaString::CopyChars(sp.data(), strLeft->GetDataUtf8(), leftLength); in Concat() 78 Span<const uint16_t> srcLeft(strLeft->GetDataUtf16(), leftLength); in Concat() 79 EcmaString::MemCopyChars(sp, newLength << 1U, srcLeft, leftLength << 1U); in Concat() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | typed_hcr_lowering.cpp | 1713 GateRef leftLength = GetLengthFromString(left); in LowerStringEqual() local 1719 builder_.Branch(builder_.Equal(leftLength, rightLength), &lenEqual, &exit); in LowerStringEqual() 1736 GateRef leftLength = builder_.GetLengthFromString(left); in LowerStringAdd() local 1738 GateRef newLength = builder_.Int32Add(leftLength, rightLength); in LowerStringAdd() 1762 builder_.Branch(builder_.Equal(leftLength, builder_.Int32(0)), &leftEmpty, &leftNotEmpty); in LowerStringAdd() 1810 builder_.ZExtInt32ToPtr(leftLength))); in LowerStringAdd() 1811 builder_.CopyChars(glue, leftDst, leftSource, leftLength, in LowerStringAdd() 1828 builder_.PtrMul(builder_.ZExtInt32ToPtr(leftLength), in LowerStringAdd() 1834 builder_.CopyUtf8AsUtf16(glue, leftDst, leftSource, leftLength); in LowerStringAdd() 1841 builder_.CopyChars(glue, leftDst, leftSource, leftLength, in LowerStringAdd() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | builtins_string_stub_builder.cpp | 1736 GateRef leftLength = GetLengthFromString(leftString); in StringConcat() local 1738 GateRef newLength = Int32Add(leftLength, rightLength); in StringConcat() 1762 Branch(Int32Equal(leftLength, Int32(0)), &leftEqualZero, &leftNotEqualZero); in StringConcat() 1807 … GateRef rightDst = ChangeStringTaggedPointerToInt64(PtrAdd(leftDst, ZExtInt32ToPtr(leftLength))); in StringConcat() 1808 … CopyChars(glue, leftDst, leftSource, leftLength, IntPtr(sizeof(uint8_t)), VariableType::INT8()); in StringConcat() 1823 … PtrAdd(leftDst, PtrMul(ZExtInt32ToPtr(leftLength), IntPtr(sizeof(uint16_t))))); in StringConcat() 1828 CopyUtf8AsUtf16(glue, leftDst, leftSource, leftLength); in StringConcat() 1835 CopyChars(glue, leftDst, leftSource, leftLength, in StringConcat()
|