/arkcompiler/runtime_core/static_core/runtime/coretypes/ |
H A D | string.cpp | 69 bool canBeCompressed, const LanguageContext &ctx, PandaVM *vm, bool movable, in CreateFromMUtf8() 72 auto string = AllocStringObject(utf16Length, canBeCompressed, ctx, vm, movable, pinned); in CreateFromMUtf8() 80 if (canBeCompressed) { in CreateFromMUtf8() 95 bool canBeCompressed = CanBeCompressedMUtf8(mutf8Data); in CreateFromMUtf8() local 98 return CreateFromMUtf8(mutf8Data, mutf8Length, utf16Length, canBeCompressed, ctx, vm, movable, pinned); in CreateFromMUtf8() 102 String *String::CreateFromMUtf8(const uint8_t *mutf8Data, uint32_t utf16Length, bool canBeCompressed, in CreateFromMUtf8() argument 107 ASSERT(canBeCompressed == CanBeCompressedMUtf8(mutf8Data)); in CreateFromMUtf8() 108 return CreateFromMUtf8(mutf8Data, mutf8Length, utf16Length, canBeCompressed, ctx, vm, movable, pinned); in CreateFromMUtf8() 117 bool canBeCompressed = CanBeCompressedMUtf8(mutf8Data); in CreateFromMUtf8() local 118 return CreateFromMUtf8(mutf8Data, mutf8Length, utf16Length, canBeCompressed, ct in CreateFromMUtf8() 68 CreateFromMUtf8(const uint8_t *mutf8Data, size_t mutf8Length, uint32_t utf16Length, bool canBeCompressed, const LanguageContext &ctx, PandaVM *vm, bool movable, bool pinned) CreateFromMUtf8() argument 126 auto canBeCompressed = CanBeCompressedMUtf8(mutf8Data, mutf8Length); CreateFromMUtf8() local 153 bool canBeCompressed = CanBeCompressed(utf16Data, utf16Length); CreateFromUtf16() local 207 bool canBeCompressed = CanBeCompressed(src, length); CreateNewStringFromChars() local 246 bool canBeCompressed = CanBeCompressedMUtf8(src, length) && (highByte == 0); CreateNewStringFromBytes() local 668 bool canBeCompressed = CanBeCompressedMUtf8(mutf8Data); StringsAreEqualMUtf8() local 673 StringsAreEqualMUtf8(String *str1, const uint8_t *mutf8Data, uint32_t utf16Length, bool canBeCompressed) StringsAreEqualMUtf8() argument 854 bool canBeCompressed = CanBeCompressedMUtf8(mutf8Data); ComputeHashcodeMutf8() local 859 ComputeHashcodeMutf8(const uint8_t *mutf8Data, uint32_t utf16Length, bool canBeCompressed) ComputeHashcodeMutf8() argument 886 bool canBeCompressed = IsASCIICharacter(newC); DoReplace() local 941 bool canBeCompressed = !src->IsUtf16() || CanBeCompressed(src->GetDataUtf16() + start, utf16Length); FastSubString() local [all...] |
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | string_table.cpp | 27 bool canBeCompressed = coretypes::String::CanBeCompressedMUtf8(mutf8Data); in GetOrInternString() local 28 auto *str = internalTable_.GetString(mutf8Data, utf16Length, canBeCompressed, ctx); in GetOrInternString() 30 str = table_.GetOrInternString(mutf8Data, utf16Length, canBeCompressed, ctx); in GetOrInternString() 92 coretypes::String *StringTable::Table::GetString(const uint8_t *utf8Data, uint32_t utf16Length, bool canBeCompressed, in GetString() argument 95 uint32_t hashCode = coretypes::String::ComputeHashcodeMutf8(utf8Data, utf16Length, canBeCompressed); in GetString() 99 if (coretypes::String::StringsAreEqualMUtf8(foundString, utf8Data, utf16Length, canBeCompressed)) { in GetString() 169 bool canBeCompressed, const LanguageContext &ctx) in GetOrInternString() 171 coretypes::String *result = GetString(mutf8Data, utf16Length, canBeCompressed, ctx); in GetOrInternString() 179 coretypes::String::CreateFromMUtf8(mutf8Data, utf16Length, canBeCompressed, ctx, Thread::GetCurrent()->GetVM()); in GetOrInternString() 272 bool canBeCompressed, cons in GetOrInternString() 168 GetOrInternString(const uint8_t *mutf8Data, uint32_t utf16Length, bool canBeCompressed, const LanguageContext &ctx) GetOrInternString() argument 271 GetOrInternString(const uint8_t *mutf8Data, uint32_t utf16Length, bool canBeCompressed, const LanguageContext &ctx) GetOrInternString() argument [all...] |
H A D | string_table.h | 80 bool canBeCompressed, const LanguageContext &ctx); 92 coretypes::String *GetString(const uint8_t *utf8Data, uint32_t utf16Length, bool canBeCompressed, 124 coretypes::String *GetOrInternString(const uint8_t *mutf8Data, uint32_t utf16Length, bool canBeCompressed,
|
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/ |
H A D | string.h | 40 bool canBeCompressed, const LanguageContext &ctx, PandaVM *vm, 44 bool canBeCompressed, const LanguageContext &ctx, PandaVM *vm, 263 bool canBeCompressed); 269 static uint32_t ComputeHashcodeMutf8(const uint8_t *mutf8Data, uint32_t utf16Length, bool canBeCompressed);
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_string-inl.h | 261 bool canBeCompressed = CanBeCompressed(srcFlat.GetDataUtf16() + start, length); in FastSubUtf16String() local 262 JSHandle<EcmaString> string(vm->GetJSThread(), CreateLineString(vm, length, canBeCompressed)); in FastSubUtf16String() 265 if (canBeCompressed) { in FastSubUtf16String() 275 ASSERT_PRINT(canBeCompressed == CanBeCompressed(*string), "canBeCompresse does not match the real value!"); in FastSubUtf16String()
|
H A D | ecma_string.cpp | 175 bool canBeCompressed = CanBeCompressed(srcFlat.GetDataUtf16() + start, length); in GetSubString() local 176 if (canBeCompressed) { in GetSubString() 177 JSHandle<EcmaString> string(vm->GetJSThread(), CreateLineString(vm, length, canBeCompressed)); in GetSubString()
|
H A D | object_factory.cpp | 3263 bool canBeCompressed = sd.is_ascii; in GetRawStringFromStringTable() local 3265 if (canBeCompressed) { in GetRawStringFromStringTable() 3283 bool canBeCompressed = sd.is_ascii; in GetRawStringFromStringTableWithoutJSHandle() local 3285 if (canBeCompressed) { in GetRawStringFromStringTableWithoutJSHandle()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | typed_hcr_lowering.h | 256 GateRef AllocateLineString(GateRef glue, GateRef length, GateRef canBeCompressed); 257 GateRef AllocateSlicedString(GateRef glue, GateRef flatString, GateRef length, GateRef canBeCompressed);
|
H A D | typed_hcr_lowering.cpp | 1858 GateRef canBeCompressed = builder_.BitAnd(leftIsUtf8, rightIsUtf8); in LowerStringAdd() local 1884 lineString = AllocateLineString(glue, backStoreLength, canBeCompressed); in LowerStringAdd() 1885 BRANCH_CIR(canBeCompressed, &canBeCompress, &canNotBeCompress); in LowerStringAdd() 1937 slicedString = AllocateSlicedString(glue, *lineString, newLength, canBeCompressed); in LowerStringAdd() 1968 BRANCH_CIR(canBeCompressed, &canBeCompress, &canNotBeCompress); in LowerStringAdd() 1972 canBeCompressed); in LowerStringAdd() 1999 canBeCompressed); in LowerStringAdd() 2030 BRANCH_CIR(canBeCompressed, &canBeCompress, &canNotBeCompress); in LowerStringAdd() 2089 GateRef TypedHCRLowering::AllocateLineString(GateRef glue, GateRef length, GateRef canBeCompressed) in AllocateLineString() argument 2101 BRANCH_CIR(canBeCompressed, in AllocateLineString() 2132 AllocateSlicedString(GateRef glue, GateRef flatString, GateRef length, GateRef canBeCompressed) AllocateSlicedString() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_string_stub_builder.cpp | 767 GateRef canBeCompressed = CanBeCompressed(source, len, true);
in GetSubString() local 768 BRANCH(canBeCompressed, &isUtf8, &sliceString);
in GetSubString() 1283 DEFVARIABLE(canBeCompressed, VariableType::BOOL(), False());
in CreateFromEcmaString() 1296 canBeCompressed = CanBeCompressed(dataAddr, Int32(1), true);
in CreateFromEcmaString() 1303 canBeCompressed = CanBeCompressed(dataAddr, Int32(1), false);
in CreateFromEcmaString() 1313 BRANCH(*canBeCompressed, &isUtf8Next, &isUtf16Next);
in CreateFromEcmaString() 1329 BRANCH(*canBeCompressed, &isUtf8Copy, &isUtf16Copy);
in CreateFromEcmaString() 1442 GateRef canBeCompressed = CanBeCompressed(source, len, true);
in FastSubUtf16String() local 1446 BRANCH(canBeCompressed, &isUtf8, &isUtf16);
in FastSubUtf16String() 1459 BRANCH(canBeCompressed, in FastSubUtf16String() 2325 GateRef canBeCompressed = BitAnd(leftIsUtf8, rightIsUtf8); StringConcat() local [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_string.cpp | 1680 bool canBeCompressed = false; in CreateArrayFromString() local 1682 canBeCompressed = EcmaStringAccessor::CanBeCompressed(*thisString); in CreateArrayFromString() 1684 bool isOneByte = isUtf8 & canBeCompressed; in CreateArrayFromString()
|