/arkcompiler/ets_runtime/ecmascript/ |
D | ecma_string-inl.h | 67 ASSERT_PRINT(canBeCompress == CanBeCompressed(string), "Bad input canBeCompress!"); in CreateFromUtf8() 90 ASSERT_PRINT(canBeCompress == CanBeCompressed(string), "Bad input canBeCompress!"); in CreateFromUtf16() 178 ASSERT_PRINT(CanBeCompressed(string), "canBeCompresse does not match the real value!"); in FastSubUtf8String() 187 bool canBeCompressed = CanBeCompressed(src->GetDataUtf16() + start, length); in FastSubUtf16String() 199 …ASSERT_PRINT(canBeCompressed == CanBeCompressed(string), "canBeCompresse does not match the real v… in FastSubUtf16String()
|
D | ecma_string.h | 444 static bool CanBeCompressed(const uint8_t *utf8Data, uint32_t utf8Len); 445 static bool CanBeCompressed(const uint16_t *utf16Data, uint32_t utf16Len); 446 static bool CanBeCompressed(const EcmaString *string); 1010 static bool CanBeCompressed(const uint8_t *utf8Data, uint32_t utf8Len) in CanBeCompressed() function 1012 return EcmaString::CanBeCompressed(utf8Data, utf8Len); in CanBeCompressed() 1015 static bool CanBeCompressed(const uint16_t *utf16Data, uint32_t utf16Len) in CanBeCompressed() function 1017 return EcmaString::CanBeCompressed(utf16Data, utf16Len); in CanBeCompressed() 1021 static bool CanBeCompressed(const EcmaString *string) in CanBeCompressed() function 1023 return EcmaString::CanBeCompressed(string); in CanBeCompressed()
|
D | ecma_string.cpp | 91 …ASSERT_PRINT(compressed == CanBeCompressed(newString), "compressed does not match the real value!"… in Concat() 125 …ASSERT_PRINT(compressed == CanBeCompressed(newString), "compressed does not match the real value!"… in CopyStringToOldSpace() 416 bool EcmaString::CanBeCompressed(const EcmaString *string) in CanBeCompressed() function in panda::ecmascript::EcmaString 420 return CanBeCompressed(string->GetDataUtf8(), string->GetLength()); in CanBeCompressed() 422 return CanBeCompressed(string->GetDataUtf16(), string->GetLength()); in CanBeCompressed() 426 bool EcmaString::CanBeCompressed(const uint8_t *utf8Data, uint32_t utf8Len) in CanBeCompressed() function in panda::ecmascript::EcmaString 443 bool EcmaString::CanBeCompressed(const uint16_t *utf16Data, uint32_t utf16Len) in CanBeCompressed() function in panda::ecmascript::EcmaString
|
D | object_factory.cpp | 3431 ASSERT(EcmaStringAccessor::CanBeCompressed(utf8Data, data.length())); in NewFromASCII() 3438 ASSERT(EcmaStringAccessor::CanBeCompressed(utf8Data, data.length())); in NewFromASCIINonMovable() 3445 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf8Data, data.length()); in NewFromUtf8() 3453 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf16Data, length); in NewFromUtf16() 3460 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf8Data, data.length()); in NewFromStdString() 3466 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf8Data, utf8Len); in NewFromUtf8() 3472 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf16Data, utf16Len); in NewFromUtf16() 3478 ASSERT(EcmaStringAccessor::CanBeCompressed(utf16Data, utf16Len)); in NewFromUtf16Compress() 3484 ASSERT(!EcmaStringAccessor::CanBeCompressed(utf16Data, utf16Len)); in NewFromUtf16NotCompress() 3491 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf8Data, utf8Len); in NewFromUtf8Literal() [all …]
|
D | js_stable_array.cpp | 307 …isOneByte == EcmaStringAccessor::CanBeCompressed(newString), "isOneByte does not match the real va… in Join()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | builtins_string_stub_builder.h | 41 GateRef CanBeCompressed(GateRef utf16Data, GateRef utf16Len, bool isUtf16);
|
D | builtins_string_stub_builder.cpp | 74 canBeCompressed = CanBeCompressed(dataAddr, Int32(1), true); in CreateFromEcmaString() 81 canBeCompressed = CanBeCompressed(dataAddr, Int32(1), false); in CreateFromEcmaString() 215 GateRef canBeCompressed = CanBeCompressed(source, len, true); in FastSubUtf16String() 286 GateRef BuiltinsStringStubBuilder::CanBeCompressed(GateRef data, GateRef len, bool isUtf16) in CanBeCompressed() function in panda::ecmascript::kungfu::BuiltinsStringStubBuilder
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
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(arrayU16Co… in SetUpTestCase() 62 HWTEST_F_L0(EcmaStringTest, CanBeCompressed) in HWTEST_F_L0() argument 67 EXPECT_TRUE(EcmaString::CanBeCompressed(arrayU8, sizeof(arrayU8) / sizeof(arrayU8[0]))); in HWTEST_F_L0() 68 …EXPECT_TRUE(EcmaString::CanBeCompressed(arrayU16Comp, sizeof(arrayU16Comp) / sizeof(arrayU16Comp[0… in HWTEST_F_L0() 69 …EXPECT_FALSE(EcmaString::CanBeCompressed(arrayU16NotComp, sizeof(arrayU16Comp) / sizeof(arrayU16Co… in HWTEST_F_L0()
|
D | ecma_string_accessor_test.cpp | 1697 HWTEST_F_L0(EcmaStringAccessorTest, CanBeCompressed) in HWTEST_F_L0() argument 1702 EXPECT_TRUE(EcmaStringAccessor::CanBeCompressed(arrayU8, sizeof(arrayU8) / sizeof(arrayU8[0]))); in HWTEST_F_L0() 1703 …EXPECT_TRUE(EcmaStringAccessor::CanBeCompressed(arrayU16Comp, sizeof(arrayU16Comp) / sizeof(arrayU… in HWTEST_F_L0() 1704 …EXPECT_FALSE(EcmaStringAccessor::CanBeCompressed(arrayU16NotComp, sizeof(arrayU16Comp) / sizeof(ar… in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_typedarray.cpp | 834 …isOneByte == EcmaStringAccessor::CanBeCompressed(newString), "isOneByte does not match the real va… in Join()
|