/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | utf.cpp | 236 uint32_t c2; in CompareMUtf8ToMUtf8() local 242 c2 = *mutf8_2; in CompareMUtf8ToMUtf8() 244 if (c1 == 0 && c2 == 0) { in CompareMUtf8ToMUtf8() 248 if (c1 == 0 && c2 != 0) { in CompareMUtf8ToMUtf8() 252 if (c1 != 0 && c2 == 0) { in CompareMUtf8ToMUtf8() 257 std::tie(c2, n2) = ConvertMUtf8ToUtf16Pair(mutf8_2); in CompareMUtf8ToMUtf8() 261 } while (c1 == c2); in CompareMUtf8ToMUtf8() 264 auto [c2p1, c2p2] = SplitUtf16Pair(c2); in CompareMUtf8ToMUtf8() 278 uint32_t c2; in CompareUtf8ToUtf8() local 299 c2 in CompareUtf8ToUtf8() [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | utf.cpp | 170 uint32_t c2; in CompareMUtf8ToMUtf8() local 176 c2 = *mutf82; in CompareMUtf8ToMUtf8() 178 if (c1 == 0 && c2 == 0) { in CompareMUtf8ToMUtf8() 182 if (c1 == 0 && c2 != 0) { in CompareMUtf8ToMUtf8() 186 if (c1 != 0 && c2 == 0) { in CompareMUtf8ToMUtf8() 191 std::tie(c2, n2) = ConvertMUtf8ToUtf16Pair(mutf82); in CompareMUtf8ToMUtf8() 195 } while (c1 == c2); in CompareMUtf8ToMUtf8() 198 auto [c2p1, c2p2] = SplitUtf16Pair(c2); in CompareMUtf8ToMUtf8() 212 uint32_t c2; in CompareUtf8ToUtf8() local 233 c2 in CompareUtf8ToUtf8() [all...] |
/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/ |
H A D | regexp_executor.cpp | 476 uint32_t c2 = GetChar(¤tPtr_, inputEnd_); in HandleOpBackReferenceMatch() local 479 c2 = static_cast<uint32_t>(RegExpParser::Canonicalize(c2, IsUtf16())); in HandleOpBackReferenceMatch() 481 if (c1 != c2) { in HandleOpBackReferenceMatch() 509 uint32_t c2 = GetPrevChar(¤tPtr_, input_); in HandleOpBackwardBackReferenceMatch() local 512 c2 = static_cast<uint32_t>(RegExpParser::Canonicalize(c2, IsUtf16())); in HandleOpBackwardBackReferenceMatch() 514 if (c1 != c2) { in HandleOpBackwardBackReferenceMatch()
|
H A D | regexp_parser.cpp | 1305 uint32_t c2 = ParseClassAtom(&s2); in ParseClassRanges() local 1306 if (c2 == UINT32_MAX) { in ParseClassRanges() 1310 if (c2 == CLASS_RANGE_BASE) { in ParseClassRanges() 1319 if (c1 > c2) { in ParseClassRanges() 1326 c2 = static_cast<uint32_t>(Canonicalize(c2, IsUtf16())); in ParseClassRanges() 1329 result->Insert(c1, c2); in ParseClassRanges()
|
/arkcompiler/ets_runtime/test/moduletest/ictest/ |
H A D | ictest.js | 111 class c2 extends c1 {} 112 let v2 = new c2();
|
/arkcompiler/ets_runtime/ecmascript/regexp/ |
H A D | regexp_executor.h | 390 uint32_t c2 = GetChar(¤tPtr_, inputEnd_); in HandleOpBackReference() local 393 c2 = static_cast<uint32_t>(RegExpParser::Canonicalize(c2, IsUtf16())); in HandleOpBackReference() 395 if (c1 != c2) { in HandleOpBackReference() 417 uint32_t c2 = GetPrevChar(¤tPtr_, input_); in HandleOpBackReference() local 420 c2 = static_cast<uint32_t>(RegExpParser::Canonicalize(c2, IsUtf16())); in HandleOpBackReference() 422 if (c1 != c2) { in HandleOpBackReference()
|
H A D | regexp_parser.cpp | 1380 uint32_t c2 = ParseClassAtom(&s2); in ParseClassRanges() local 1381 if (c2 == UINT32_MAX) { in ParseClassRanges() 1385 if (c2 == CLASS_RANGE_BASE) { in ParseClassRanges() 1394 if (c1 > c2) { in ParseClassRanges() 1399 needInter = NeedIntersection(c2); in ParseClassRanges() 1400 result->Insert(c1, c2); in ParseClassRanges()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | utf_helper.cpp | 381 const uint8_t c2 = utf8[++in_pos]; in Utf8ToUtf16Size() local 384 uint32_t codePoint = ((src & LOW_3BITS) << OFFSET_18POS) | ((c2 & LOW_6BITS) << OFFSET_12POS) | in Utf8ToUtf16Size() 427 const uint8_t c2 = utf8In[++in_pos]; in ConvertRegionUtf8ToUtf16() local 430 uint32_t codePoint = ((src & LOW_3BITS) << OFFSET_18POS) | ((c2 & LOW_6BITS) << OFFSET_12POS) | in ConvertRegionUtf8ToUtf16() 447 const uint8_t c2 = utf8In[++in_pos]; in ConvertRegionUtf8ToUtf16() local 450 ((c2 & LOW_6BITS) << OFFSET_6POS) | (c3 & LOW_6BITS)); in ConvertRegionUtf8ToUtf16() 456 const uint8_t c2 = utf8In[++in_pos]; in ConvertRegionUtf8ToUtf16() local 457 utf16Out[out_pos++] = static_cast<uint16_t>(((src & LOW_5BITS) << OFFSET_6POS) | (c2 & LOW_6BITS)); in ConvertRegionUtf8ToUtf16()
|
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | span_test.cpp | 116 int c2[] {4, 5, 6}; in TEST() 118 auto s = Span(c2); in TEST()
|
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | span_test.cpp | 118 int c2[] {4U, 5U, 6U}; in TEST() 120 auto s = Span(c2); in TEST()
|
/arkcompiler/runtime_core/compiler/tests/ |
H A D | graph_comparator.h | 224 auto c2 = inst2->CastToConstant(); in CompareConstantInst() local 229 same = static_cast<uint32_t>(c1->GetRawValue()) == static_cast<uint32_t>(c2->GetRawValue()); in CompareConstantInst() 232 same = c1->GetRawValue() == c2->GetRawValue(); in CompareConstantInst()
|
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | graph_comparator.h | 306 auto c2 = inst2->CastToConstant(); in Compare() local 311 same = static_cast<uint32_t>(c1->GetRawValue()) == static_cast<uint32_t>(c2->GetRawValue()); in Compare() 314 same = c1->GetRawValue() == c2->GetRawValue(); in Compare()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_global.cpp | 939 uint16_t c2 = EcmaStringAccessor(string).Get(k + ESCAPE_CHAR_OFFSET2); in Unescape() local 943 bool c2IsHexDigits = IsHexDigits(c2); in Unescape() 949 c = ESCAPE_CHAR_TO_HEX[c2]; in Unescape() 956 uint16_t c2 = EcmaStringAccessor(string).Get(k + ESCAPE_CHAR_OFFSET2); in Unescape() local 958 bool c2IsHexDigits = IsHexDigits(c2); in Unescape() 962 c = (c << ESCAPE_HEX_BIT4) | ESCAPE_CHAR_TO_HEX[c2]; in Unescape()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_string.cpp | 1014 const uint8_t c2 = *(++utf8Data); in IsUtf8EqualsUtf16() local 1017 uint32_t codePoint = ((src & LOW_3BITS) << OFFSET_18POS) | ((c2 & LOW_6BITS) << OFFSET_12POS) | in IsUtf8EqualsUtf16() 1038 const uint8_t c2 = *(++utf8Data); in IsUtf8EqualsUtf16() local 1041 ((c2 & LOW_6BITS) << OFFSET_6POS) | (c3 & LOW_6BITS))) { in IsUtf8EqualsUtf16() 1049 const uint8_t c2 = *(++utf8Data); in IsUtf8EqualsUtf16() local 1050 if (*utf16Data++ != static_cast<uint16_t>(((src & LOW_5BITS) << OFFSET_6POS) | (c2 & LOW_6BITS))) { in IsUtf8EqualsUtf16()
|