/arkcompiler/runtime_core/static_core/verification/util/tests/ |
D | enum_tag_test.cpp | 24 enum class Numbers { ONE, TWO, THREE, FOUR, FIVE }; enumerator 32 …using EnumTag5 = TagForEnum<Numbers, Numbers::ONE, Numbers::TWO, Numbers::THREE, Numbers::FOUR, Nu… in TEST_F() 36 EXPECT_EQ(EnumTag5::GetIndexFor(Numbers::TWO), 1UL); in TEST_F() 39 using EnumTag3 = TagForEnum<Numbers, Numbers::ONE, Numbers::TWO, Numbers::THREE>; in TEST_F() 43 EXPECT_EQ(EnumTag3::GetIndexFor(Numbers::TWO), 1UL); in TEST_F()
|
D | saturated_enum_test.cpp | 25 enum class Numbers { ONE, TWO, THREE, FOUR, FIVE }; enumerator 29 SaturatedEnum<Numbers, Numbers::FOUR, Numbers::THREE, Numbers::TWO, Numbers::ONE> sEnum; in TEST_F() 36 EXPECT_FALSE(sEnum[Numbers::TWO]); in TEST_F() 42 EXPECT_TRUE(sEnum[Numbers::TWO]); in TEST_F() 54 return en != Numbers::TWO; in TEST_F()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/declgen_ets2ts/ |
D | main.ts | 25 const TWO = 2; constant 87 const intArr = [ONE, TWO, THREE]; constant 97 let simpleArray: Simple[] = [new Simple(ZERO), new Simple(ONE), new Simple(TWO)]; 106 AssertEq(fields.double_.toFixed(PRECISION), (TWO + TWO_TENTH).toFixed(PRECISION)); 131 AssertEq(o.SumIntArray([ONE, TWO, THREE, FOUR, FIVE]), FIFTEEN); 142 …AssertEq(o.SumIntVariadic(ONE, TWO, THREE, FOUR, FIVE).toFixed(PRECISION), (FIFTEEN).toFixed(PRECI… 154 AssertEq(ETSEnum.Val2, TWO); 161 const d = new Derived(TWO, THREE); 162 AssertEq(d.a, TWO);
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | utf_helper.cpp | 91 return UtfLength::TWO; in UTF8Length() 124 case UtfLength::TWO: in IsValidUTF8() 179 return {UtfLength::TWO, {UTF8_2B_FIRST, UTF8_2B_SECOND}}; in ConvertUtf16ToUtf8() 190 return {UtfLength::TWO, {ch0, ch1}}; in ConvertUtf16ToUtf8() 227 res += UtfLength::TWO; // special case for U+0000 => C0 80 in Utf16ToUtf8Size() 232 res += UtfLength::TWO; in Utf16ToUtf8Size() 313 return {((d0 & utf::MASK_5BIT) << utf::DATA_WIDTH) | (d1 & utf::MASK_6BIT), UtfLength::TWO}; in ConvertUtf8ToUtf16Pair() 316 uint8_t d2 = data[UtfLength::TWO]; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ConvertUtf8ToUtf16Pair() 380 if (maxLen < UtfLength::TWO) { in ConvertUtf8ToUnicodeChar() 387 … return {((d0 & utf::MASK_5BIT) << utf::DATA_WIDTH) | (d1 & utf::MASK_6BIT), UtfLength::TWO}; in ConvertUtf8ToUnicodeChar() [all …]
|
D | typed_array_helper-inl.h | 119 return ElementSize::TWO; in GetElementSize() 293 return ElementSize::TWO; in GetSizeFromType()
|
D | typed_array_helper.h | 28 enum ElementSize : uint8_t { ONE = 1, TWO = 2, FOUR = 4, EIGHT = 8 }; enumerator
|
D | utf_helper.h | 66 enum UtfLength : uint8_t { ONE = 1, TWO = 2, THREE = 3, FOUR = 4 }; enumerator
|
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
D | utf.cpp | 387 case UtfLength::TWO: in IsValidUTF8() 429 return {UtfLength::TWO, {UTF8_2B_FIRST, UTF8_2B_SECOND}}; in ConvertUtf16ToUtf8() 440 return {UtfLength::TWO, {ch0, ch1}}; in ConvertUtf16ToUtf8() 477 res += UtfLength::TWO; // special case for U+0000 => C0 80 in Utf16ToUtf8Size() 482 res += UtfLength::TWO; in Utf16ToUtf8Size() 543 return {((d0 & MASK_5BIT) << DATA_WIDTH) | (d1 & MASK_6BIT), UtfLength::TWO}; in ConvertUtf8ToUtf16Pair() 546 uint8_t d2 = data[UtfLength::TWO]; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ConvertUtf8ToUtf16Pair()
|
D | utf.h | 79 enum UtfLength : uint8_t { ONE = 1, TWO = 2, THREE = 3, FOUR = 4 }; enumerator
|
/arkcompiler/ets_runtime/ecmascript/containers/ |
D | containers_private.cpp | 295 SetFrozenFunction(thread, prototype, "insert", ContainersArrayList::Insert, FuncLength::TWO); in InitializeArrayList() 309 …nFunction(thread, prototype, "removeByRange", ContainersArrayList::RemoveByRange, FuncLength::TWO); in InitializeArrayList() 311 FuncLength::TWO, BUILTINS_STUB_ID(ArrayListReplaceAllElements)); in InitializeArrayList() 313 …zenFunction(thread, prototype, "subArrayList", ContainersArrayList::SubArrayList, FuncLength::TWO); in InitializeArrayList() 315 SetFrozenFunction(thread, prototype, "forEach", ContainersArrayList::ForEach, FuncLength::TWO, in InitializeArrayList() 507 SetFrozenFunction(thread, mapFuncPrototype, "set", ContainersTreeMap::Set, FuncLength::TWO); in InitializeTreeMap() 520 …etFrozenFunction(thread, mapFuncPrototype, "replace", ContainersTreeMap::Replace, FuncLength::TWO); in InitializeTreeMap() 584 SetFrozenFunction(thread, setFuncPrototype, "add", ContainersTreeSet::Add, FuncLength::TWO); in InitializeTreeSet() 594 …etFrozenFunction(thread, setFuncPrototype, "isEmpty", ContainersTreeSet::IsEmpty, FuncLength::TWO); in InitializeTreeSet() 792 SetFrozenFunction(thread, prototype, "insert", ContainersVector::Insert, FuncLength::TWO); in InitializeVector() [all …]
|
D | containers_private.h | 23 enum FuncLength : uint8_t { ZERO = 0, ONE, TWO, THREE, FOUR }; enumerator
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | utf_helper_test.cpp | 640 unicodeRes = ConvertUtf8ToUnicodeChar(utf8ValuePtr3, UtfLength::TWO); in HWTEST_F_L0() 643 unicodeRes = ConvertUtf8ToUnicodeChar(utf8ValuePtr4, UtfLength::TWO); in HWTEST_F_L0() 648 unicodeRes = ConvertUtf8ToUnicodeChar(utf8ValuePtr5, UtfLength::TWO); in HWTEST_F_L0() 668 unicodeRes = ConvertUtf8ToUnicodeChar(utf8ValuePtr7, UtfLength::TWO); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins.cpp | 299 …etSFunction(env, sFuncPrototypeObj, "apply", Function::FunctionPrototypeApply, FunctionLength::TWO, in InitializeSFunciton() 644 …Function(env, funcFuncPrototypeObj, "apply", Function::FunctionPrototypeApply, FunctionLength::TWO, in InitializeFunction() 945 SetFunction(env, bigIntFunction, "asUintN", BuiltinsBigInt::AsUintN, FunctionLength::TWO); in InitializeBigInt() 946 SetFunction(env, bigIntFunction, "asIntN", BuiltinsBigInt::AsIntN, FunctionLength::TWO); in InitializeBigInt() 1041 SetFunction(env, proxyFunction, "revocable", Proxy::Revocable, FunctionLength::TWO); in InitializeProxy() 1278 functionLength = FunctionLength::TWO; in InitializeError() 1514 FunctionLength::TWO); in InitializeWeakMap() 1665 BuiltinsFinalizationRegistry::Register, FunctionLength::TWO); in InitializeFinalizationRegistry() 1715 SetFunction(env, jsonObject, "parse", Json::Parse, FunctionLength::TWO); in InitializeJson() 1977 …ewBuiltinConstructor(env, regPrototype, RegExp::RegExpConstructor, "RegExp", FunctionLength::TWO)); in InitializeRegExp() [all …]
|
D | builtins.h | 35 enum FunctionLength : uint8_t { ZERO = 0, ONE, TWO, THREE, FOUR }; enumerator
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
D | basicblock.cpp | 492 constexpr auto TWO = 2; in GenerateSelects() local 493 ASSERT(other->GetPredsBlocks().size() >= TWO); in GenerateSelects() 505 if (other->GetPredsBlocks().size() > TWO) { in GenerateSelects()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | typed_array_stub_builder.cpp | 337 … GateRef byteIndex = Int32Add(Int32Mul(index, Int32(base::ElementSize::TWO)), offset); in GetValueFromBuffer() 346 … GateRef byteIndex = Int32Add(Int32Mul(index, Int32(base::ElementSize::TWO)), offset); in GetValueFromBuffer()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | object_factory.cpp | 3282 JSFunction::SetFunctionLength(thread_, function, JSTaggedValue(FunctionLength::TWO)); in CreateJSPromiseExecutorFunction()
|