Home
last modified time | relevance | path

Searched refs:canBeCompress (Results 1 - 11 of 11) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Decma_string_table.cpp95 bool canBeCompress, uint32_t hashcode) const in GetStringThreadUnsafe()
100 if (EcmaStringAccessor::StringIsEqualUint8Data(foundString, utf8Data, utf8Len, canBeCompress)) { in GetStringThreadUnsafe()
218 bool canBeCompress) in GetOrInternString()
220 uint32_t hashcode = EcmaStringAccessor::ComputeHashcodeUtf8(utf8Data, utf8Len, canBeCompress); in GetOrInternString()
222 return GetOrInternStringWithoutLock(vm, utf8Data, utf8Len, canBeCompress, hashcode); in GetOrInternString()
225 return GetOrInternStringWithoutLock(vm, utf8Data, utf8Len, canBeCompress, hashcode); in GetOrInternString()
230 uint32_t utf8Len, bool canBeCompress, uint32_t hashcode) in GetOrInternStringWithoutLock()
237 std::pair<EcmaString *, uint32_t> result = GetStringThreadUnsafe(utf8Data, utf8Len, canBeCompress, hashcode); in GetOrInternStringWithoutLock()
243 EcmaStringAccessor::CreateFromUtf8(vm, utf8Data, utf8Len, canBeCompress, MemSpaceType::SHARED_OLD_SPACE); in GetOrInternStringWithoutLock()
302 bool canBeCompress) in CreateAndInternStringReadOnly()
94 GetStringThreadUnsafe(const uint8_t *utf8Data, uint32_t utf8Len, bool canBeCompress, uint32_t hashcode) const GetStringThreadUnsafe() argument
217 GetOrInternString(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, bool canBeCompress) GetOrInternString() argument
229 GetOrInternStringWithoutLock(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, bool canBeCompress, uint32_t hashcode) GetOrInternStringWithoutLock() argument
301 CreateAndInternStringReadOnly(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, bool canBeCompress) CreateAndInternStringReadOnly() argument
322 GetOrInternString(EcmaVM *vm, const uint16_t *utf16Data, uint32_t utf16Len, bool canBeCompress) GetOrInternString() argument
434 GetOrInternStringWithSpaceType(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, bool canBeCompress, MemSpaceType type, bool isConstantString, uint32_t idOffset) GetOrInternStringWithSpaceType() argument
[all...]
H A Decma_string_table.h117 EcmaString *GetOrInternString(EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, bool canBeCompress);
119 bool canBeCompress, uint32_t hashcode);
122 bool canBeCompress);
123 EcmaString *GetOrInternString(EcmaVM *vm, const uint16_t *utf16Data, uint32_t utf16Len, bool canBeCompress);
128 bool canBeCompress, MemSpaceType type, bool isConstantString, uint32_t idOffset);
157 bool canBeCompress, uint32_t hashcode) const;
H A Decma_string-inl.h40 bool canBeCompress, MemSpaceType type, bool isConstantString, in CreateFromUtf8()
47 if (canBeCompress) { in CreateFromUtf8()
49 string = CreateConstantString(vm, utf8Data, utf8Len, canBeCompress, type, idOffset); in CreateFromUtf8()
65 ASSERT_PRINT(canBeCompress == CanBeCompressed(string), "Bad input canBeCompress!"); in CreateFromUtf8()
98 ASSERT_PRINT(false == CanBeCompressed(string), "Bad input canBeCompress!"); in CreateUtf16StringFromUtf8()
115 bool canBeCompress, MemSpaceType type) in CreateFromUtf16()
120 auto string = CreateLineStringWithSpaceType(vm, utf16Len, canBeCompress, type); in CreateFromUtf16()
123 if (canBeCompress) { in CreateFromUtf16()
133 ASSERT_PRINT(canBeCompress in CreateFromUtf16()
39 CreateFromUtf8(const EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, bool canBeCompress, MemSpaceType type, bool isConstantString, uint32_t idOffset) CreateFromUtf8() argument
114 CreateFromUtf16(const EcmaVM *vm, const uint16_t *utf16Data, uint32_t utf16Len, bool canBeCompress, MemSpaceType type) CreateFromUtf16() argument
[all...]
H A Decma_string.h116 bool canBeCompress, MemSpaceType type = MemSpaceType::SHARED_OLD_SPACE, bool isConstantString = false,
123 bool canBeCompress, MemSpaceType type = MemSpaceType::SHARED_OLD_SPACE);
323 static uint32_t ComputeHashcodeUtf8(const uint8_t *utf8Data, size_t utf8Len, bool canBeCompress);
376 bool canBeCompress);
1090 static EcmaString *CreateFromUtf8(const EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, bool canBeCompress, in CreateFromUtf8() argument
1094 return EcmaString::CreateFromUtf8(vm, utf8Data, utf8Len, canBeCompress, type, isConstantString, idOffset); in CreateFromUtf8()
1117 bool canBeCompress, MemSpaceType type = MemSpaceType::SHARED_OLD_SPACE) in CreateFromUtf16()
1119 return EcmaString::CreateFromUtf16(vm, utf16Data, utf16Len, canBeCompress, type); in CreateFromUtf16()
1339 static uint32_t ComputeHashcodeUtf8(const uint8_t *utf8Data, size_t utf8Len, bool canBeCompress) in ComputeHashcodeUtf8() argument
1341 return EcmaString::ComputeHashcodeUtf8(utf8Data, utf8Len, canBeCompress); in ComputeHashcodeUtf8()
1116 CreateFromUtf16(const EcmaVM *vm, const uint16_t *utf16Data, uint32_t utf16Len, bool canBeCompress, MemSpaceType type = MemSpaceType::SHARED_OLD_SPACE) CreateFromUtf16() argument
1399 StringIsEqualUint8Data(const EcmaString *str1, const uint8_t *dataAddr, uint32_t dataLen, bool canBeCompress) StringIsEqualUint8Data() argument
[all...]
H A Dobject_factory.cpp3189 bool canBeCompress) const in GetStringFromStringTable()
3196 return JSHandle<EcmaString>(thread_, stringTable->GetOrInternString(vm_, utf8Data, utf8Len, canBeCompress)); in GetStringFromStringTable()
3221 bool canBeCompress) const in GetStringFromStringTableReadOnly()
3229 canBeCompress)); in GetStringFromStringTableReadOnly()
3233 bool canBeCompress) const in GetStringFromStringTable()
3240 return JSHandle<EcmaString>(thread_, stringTable->GetOrInternString(vm_, utf16Data, utf16Len, canBeCompress)); in GetStringFromStringTable()
4099 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf8Data, data.length()); in NewFromUtf8WithoutStringTable() local
4106 EcmaStringAccessor::CreateFromUtf8(vm_, utf8Data, utf8Len, canBeCompress, MemSpaceType::SHARED_OLD_SPACE); in NewFromUtf8WithoutStringTable()
4107 uint32_t hashCode = EcmaStringAccessor::ComputeHashcodeUtf8(utf8Data, utf8Len, canBeCompress); in NewFromUtf8WithoutStringTable()
4115 bool canBeCompress in NewFromUtf8() local
4119 NewFromUtf8(std::string_view data, bool canBeCompress) NewFromUtf8() argument
4129 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf8Data, data.length()); NewFromUtf8ReadOnly() local
4137 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf16Data, utf16Len); NewFromUtf16WithoutStringTable() local
4153 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf16Data, length); NewFromUtf16() local
4160 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf8Data, data.length()); NewFromStdString() local
4166 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf8Data, utf8Len); NewFromUtf8WithoutStringTable() local
4180 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf8Data, utf8Len); NewFromUtf8() local
4186 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf16Data, utf16Len); NewFromUtf16WithoutStringTable() local
4200 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf16Data, utf16Len); NewFromUtf16() local
4219 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf8Data, utf8Len); NewFromUtf8Literal() local
4257 bool canBeCompress = EcmaStringAccessor::CanBeCompressed(utf16Data, utf16Len); NewFromUtf16Literal() local
[all...]
H A Dobject_factory.h580 JSHandle<EcmaString> NewFromUtf8(std::string_view data, bool canBeCompress);
948 JSHandle<EcmaString> GetStringFromStringTable(const uint8_t *utf8Data, uint32_t utf8Len, bool canBeCompress) const;
953 bool canBeCompress = true) const;
964 bool canBeCompress) const;
H A Decma_string.cpp945 uint32_t EcmaString::ComputeHashcodeUtf8(const uint8_t *utf8Data, size_t utf8Len, bool canBeCompress) in ComputeHashcodeUtf8() argument
948 if (canBeCompress) { in ComputeHashcodeUtf8()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_string.cpp193 bool canBeCompress = true; in Raw() local
203 canBeCompress = false; in Raw()
213 canBeCompress = false; in Raw()
219 return canBeCompress ? factory->NewFromUtf16LiteralCompress(uint16tData, u16str.size()).GetTaggedValue() : in Raw()
1271 void ProcessDollarAmpersand(std::u16string &stringBuilder, const JSHandle<EcmaString> &matched, bool &canBeCompress) in ProcessDollarAmpersand() argument
1275 canBeCompress = false; in ProcessDollarAmpersand()
1281 int position, bool &canBeCompress) in ProcessDollarBacktick()
1287 canBeCompress = false; in ProcessDollarBacktick()
1294 int tailPos, bool &canBeCompress) in ProcessDollarSingleQuote()
1301 canBeCompress in ProcessDollarSingleQuote()
1280 ProcessDollarBacktick(EcmaVM *ecmaVm, std::u16string &stringBuilder, const JSHandle<EcmaString> &srcString, int position, bool &canBeCompress) ProcessDollarBacktick() argument
1293 ProcessDollarSingleQuote(EcmaVM *ecmaVm, std::u16string &stringBuilder, const JSHandle<EcmaString> &srcString, int tailPos, bool &canBeCompress) ProcessDollarSingleQuote() argument
1314 bool canBeCompress = true; ProcessDigitCapture() local
1349 bool canBeCompress = true; ProcessNamedCaptures() local
1396 bool canBeCompress = true; GetSubstitution() local
[all...]
/arkcompiler/ets_runtime/ecmascript/tests/
H A Decma_test_common.h45 std::function<EcmaString *(const EcmaVM *vm, const uint8_t *utf8Data, size_t length, bool canBeCompress)>;
47 std::function<EcmaString *(const EcmaVM *vm, const uint16_t *utf8Data, size_t length, bool canBeCompress)>;
51 std::function<bool(const EcmaString *str1, const uint8_t *dataAddr, uint32_t dataLen, bool canBeCompress)>;
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dtyped_hcr_lowering.cpp1873 Label canBeCompress(&builder_); in LowerStringAdd()
1885 BRANCH_CIR(canBeCompressed, &canBeCompress, &canNotBeCompress); in LowerStringAdd()
1886 builder_.Bind(&canBeCompress); in LowerStringAdd()
1960 Label canBeCompress(&builder_); in LowerStringAdd()
1968 BRANCH_CIR(canBeCompressed, &canBeCompress, &canNotBeCompress); in LowerStringAdd()
1969 builder_.Bind(&canBeCompress); in LowerStringAdd()
2028 Label canBeCompress(&builder_); in LowerStringAdd()
2030 BRANCH_CIR(canBeCompressed, &canBeCompress, &canNotBeCompress); in LowerStringAdd()
2031 builder_.Bind(&canBeCompress); in LowerStringAdd()
3370 Label canBeCompress( in LowerStringFromSingleCharCode()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dbuiltins_string_stub_builder.cpp33 Label canBeCompress(env); in FromCharCode()
72 BRANCH(IsASCIICharacter(ZExtInt16ToInt32(*value)), &canBeCompress, &canNotBeCompress); in FromCharCode() local
75 Bind(&canBeCompress); in FromCharCode()

Completed in 35 milliseconds