/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_string-inl.h | 65 ASSERT_PRINT(canBeCompress == CanBeCompressed(string), "Bad input canBeCompress!"); in CreateFromUtf8() 81 ASSERT_PRINT(CanBeCompressed(subString), "String cannot be compressed!"); in CreateFromUtf8CompressedSubString() 98 ASSERT_PRINT(false == CanBeCompressed(string), "Bad input canBeCompress!"); in CreateUtf16StringFromUtf8() 111 SetLength(newLength, CanBeCompressed(this)); in TrimLineString() 133 ASSERT_PRINT(canBeCompress == CanBeCompressed(string), "Bad input canBeCompress!"); in CreateFromUtf16() 252 ASSERT_PRINT(CanBeCompressed(*string), "canBeCompresse does not match the real value!"); in FastSubUtf8String() 261 bool canBeCompressed = CanBeCompressed(srcFlat.GetDataUtf16() + start, length); in FastSubUtf16String() 275 ASSERT_PRINT(canBeCompressed == CanBeCompressed(*string), "canBeCompresse does not match the real value!"); in FastSubUtf16String()
|
H A D | ecma_string.cpp | 91 ASSERT_PRINT(compressed == CanBeCompressed(newString), "compressed does not match the real value!"); in Concat() 122 ASSERT_PRINT(compressed == CanBeCompressed(*newString), "compressed does not match the real value!"); in CopyStringToOldSpace() 164 if (EcmaStringAccessor::CanBeCompressed(&res, 1)) { in GetSubString() 175 bool canBeCompressed = CanBeCompressed(srcFlat.GetDataUtf16() + start, length); in GetSubString() 628 bool EcmaString::CanBeCompressed(const EcmaString *string) in CanBeCompressed() function in panda::ecmascript::EcmaString 632 return CanBeCompressed(string->GetDataUtf8(), string->GetLength()); in CanBeCompressed() 634 return CanBeCompressed(string->GetDataUtf16(), string->GetLength()); in CanBeCompressed() 638 bool EcmaString::CanBeCompressed(const uint8_t *utf8Data, uint32_t utf8Len) in CanBeCompressed() function in panda::ecmascript::EcmaString 660 bool EcmaString::CanBeCompressed(const uint16_t *utf16Data, uint32_t utf16Len) in CanBeCompressed() function in panda::ecmascript::EcmaString
|
H A D | ecma_string.h | 610 static bool CanBeCompressed(const uint8_t *utf8Data, uint32_t utf8Len); 611 static bool CanBeCompressed(const uint16_t *utf16Data, uint32_t utf16Len); 612 static bool CanBeCompressed(const EcmaString *string); 1420 static bool CanBeCompressed(const uint8_t *utf8Data, uint32_t utf8Len) in CanBeCompressed() function in panda::EcmaStringAccessor 1422 return EcmaString::CanBeCompressed(utf8Data, utf8Len); in CanBeCompressed() 1425 static bool CanBeCompressed(const uint16_t *utf16Data, uint32_t utf16Len) in CanBeCompressed() function in panda::EcmaStringAccessor 1427 return EcmaString::CanBeCompressed(utf16Data, utf16Len); in CanBeCompressed() 1431 static bool CanBeCompressed(const EcmaString *string) in CanBeCompressed() function in panda::EcmaStringAccessor 1433 return EcmaString::CanBeCompressed(string); in CanBeCompressed()
|
H A D | object_factory.cpp | 4069 ASSERT(EcmaStringAccessor::CanBeCompressed(utf8Data, data.length())); in NewFromASCII() 4077 ASSERT(EcmaStringAccessor::CanBeCompressed(utf8Data, data.length())); in NewFromASCIISkippingStringTable() 4085 ASSERT(EcmaStringAccessor::CanBeCompressed(utf8Data, data.length())); in NewFromASCIINonMovable() 4092 ASSERT(EcmaStringAccessor::CanBeCompressed(utf8Data, data.length())); in NewFromASCIIReadOnly() 4099 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf8Data, data.length()); in NewFromUtf8WithoutStringTable() 4115 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf8Data, data.length()); in NewFromUtf8() 4122 ASSERT(canBeCompress == EcmaStringAccessor::CanBeCompressed(utf8Data, data.length())); in NewFromUtf8() 4129 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf8Data, data.length()); in NewFromUtf8ReadOnly() 4137 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf16Data, utf16Len); in NewFromUtf16WithoutStringTable() 4153 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf16Dat in NewFromUtf16() [all...] |
H A D | js_stable_array.cpp | 575 isOneByte == EcmaStringAccessor::CanBeCompressed(newString), "isOneByte does not match the real value!"); in Join()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_string_iterator.cpp | 70 if (EcmaStringAccessor::CanBeCompressed(&first, 1)) { in NextInternal()
|
H A D | builtins_string.cpp | 95 if (EcmaStringAccessor::CanBeCompressed(&codePointValue, 1)) { in FromCharCode() 256 if (EcmaStringAccessor::CanBeCompressed(&res, 1)) { in CharAt() 1682 canBeCompressed = EcmaStringAccessor::CanBeCompressed(*thisString); in CreateArrayFromString()
|
H A D | builtins_shared_typedarray.cpp | 841 isOneByte == EcmaStringAccessor::CanBeCompressed(newString), "isOneByte does not match the real value!"); in Join()
|
H A D | builtins_typedarray.cpp | 930 isOneByte == EcmaStringAccessor::CanBeCompressed(newString), "isOneByte does not match the real value!"); in Join()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | ecma_string_test.cpp | 31 EXPECT_TRUE(EcmaString::CanBeCompressed(arrayU8, sizeof(arrayU8) / sizeof(arrayU8[0]))); in SetUpTestCase() 32 EXPECT_TRUE(EcmaString::CanBeCompressed(arrayU16Comp, sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0]))); in SetUpTestCase() 33 EXPECT_FALSE(EcmaString::CanBeCompressed(arrayU16NotComp, sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0]))); in SetUpTestCase() 38 * @tc.name: CanBeCompressed 39 * @tc.desc: Check whether the bool returned through calling CanBeCompressed function is within expectations. 43 HWTEST_F_L0(EcmaStringTest, CanBeCompressed) in HWTEST_F_L0() 48 EXPECT_TRUE(EcmaString::CanBeCompressed(arrayU8, sizeof(arrayU8) / sizeof(arrayU8[0]))); in HWTEST_F_L0() 49 EXPECT_TRUE(EcmaString::CanBeCompressed(arrayU16Comp, sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0]))); in HWTEST_F_L0() 50 EXPECT_FALSE(EcmaString::CanBeCompressed(arrayU16NotComp, sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0]))); in HWTEST_F_L0()
|
H A D | ecma_string_accessor_test.cpp | 1810 * @tc.name: CanBeCompressed 1811 * @tc.desc: Check whether the bool returned through calling CanBeCompressed function is within expectations. 1815 HWTEST_F_L0(EcmaStringAccessorTest, CanBeCompressed) in HWTEST_F_L0() 1820 EXPECT_TRUE(EcmaStringAccessor::CanBeCompressed(arrayU8, sizeof(arrayU8) / sizeof(arrayU8[0]))); in HWTEST_F_L0() 1821 EXPECT_TRUE(EcmaStringAccessor::CanBeCompressed(arrayU16Comp, sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0]))); in HWTEST_F_L0() 1822 EXPECT_FALSE(EcmaStringAccessor::CanBeCompressed(arrayU16NotComp, sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0]))); in HWTEST_F_L0()
|
/arkcompiler/runtime_core/static_core/runtime/coretypes/ |
H A D | string.cpp | 153 bool canBeCompressed = CanBeCompressed(utf16Data, utf16Length); in CreateFromUtf16() 200 // There is a potential data race between read of src in CanBeCompressed and write of destination buf in CreateNewStringFromChars() 207 bool canBeCompressed = CanBeCompressed(src, length); in CreateNewStringFromChars() 567 bool String::CanBeCompressed(const uint16_t *utf16Data, uint32_t utf16Length) in CanBeCompressed() function in ark::coretypes::String 941 bool canBeCompressed = !src->IsUtf16() || CanBeCompressed(src->GetDataUtf16() + start, utf16Length); in FastSubString()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_string_stub_builder.h | 84 GateRef CanBeCompressed(GateRef utf16Data, GateRef utf16Len, bool isUtf16);
|
H A D | builtins_string_stub_builder.cpp | 767 GateRef canBeCompressed = CanBeCompressed(source, len, true);
in GetSubString() 1296 canBeCompressed = CanBeCompressed(dataAddr, Int32(1), true);
in CreateFromEcmaString() 1303 canBeCompressed = CanBeCompressed(dataAddr, Int32(1), false);
in CreateFromEcmaString() 1442 GateRef canBeCompressed = CanBeCompressed(source, len, true);
in FastSubUtf16String() 1618 GateRef BuiltinsStringStubBuilder::CanBeCompressed(GateRef data, GateRef len, bool isUtf16)
in CanBeCompressed() function in panda::ecmascript::kungfu::BuiltinsStringStubBuilder
|
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/ |
H A D | string.h | 339 static bool CanBeCompressed(const uint16_t *utf16Data, uint32_t utf16Length);
|