/arkcompiler/runtime_core/static_core/verification/util/tests/ |
H A D | enum_tag_test.cpp | 24 enum class Numbers { ONE, TWO, THREE, FOUR, FIVE }; member in __anon219::Numbers 32 using EnumTag5 = TagForEnum<Numbers, Numbers::ONE, Numbers::TWO, Numbers::THREE, Numbers::FOUR, Numbers::FIVE>; 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()
|
H A D | saturated_enum_test.cpp | 25 enum class Numbers { ONE, TWO, THREE, FOUR, FIVE }; member in ark::verifier::test::Numbers 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/ets_runtime/ecmascript/base/ |
H A D | utf_helper.cpp | 92 return UtfLength::TWO; in UTF8Length() 125 case UtfLength::TWO: in IsValidUTF8() 190 return {UtfLength::TWO, {UTF8_2B_FIRST, UTF8_2B_SECOND}}; in ConvertUtf16ToUtf8() 201 return {UtfLength::TWO, {ch0, ch1}}; in ConvertUtf16ToUtf8() 240 res += UtfLength::TWO; // special case for U+0000 => C0 80 in Utf16ToUtf8Size() 245 res += UtfLength::TWO; in Utf16ToUtf8Size() 326 return {((d0 & utf::MASK_5BIT) << utf::DATA_WIDTH) | (d1 & utf::MASK_6BIT), UtfLength::TWO}; in ConvertUtf8ToUtf16Pair() 329 uint8_t d2 = data[UtfLength::TWO]; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ConvertUtf8ToUtf16Pair() 504 if (maxLen < UtfLength::TWO) { in ConvertUtf8ToUnicodeChar() 511 return {((d0 & utf::MASK_5BIT) << utf::DATA_WIDTH) | (d1 & utf::MASK_6BIT), UtfLength::TWO}; in ConvertUtf8ToUnicodeChar() [all...] |
H A D | utf_helper.h | 92 enum UtfLength : uint8_t { ONE = 1, TWO = 2, THREE = 3, FOUR = 4 };
|
H A D | typed_array_helper.h | 30 enum ElementSize : uint8_t { ONE = 1, TWO = 2, FOUR = 4, EIGHT = 8 };
|
H A D | typed_array_helper-inl.h | 146 return ElementSize::TWO; in GetElementSize() 470 return ElementSize::TWO; in GetSizeFromType()
|
/arkcompiler/ets_runtime/ecmascript/module/ |
H A D | module_logger.h | 55 static constexpr const int TWO = 2; member in panda::ecmascript::ModuleLogger 57 static constexpr const double TWO_SECONDS = TWO * MILLISECONDS_PER_SEC * MILLISECONDS_PER_SEC;
|
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | asm_printer_test.cpp | 39 enum ParamCount { ONE = 1, TWO = 2 }; enumerator 43 std::conditional_t<PARAMS == ParamCount::TWO, void (Encoder::*)(Reg, Reg, Reg), void (Encoder::*)(Reg, Reg)>; 228 if constexpr (PARAMS == ParamCount::TWO) { in DoTest() 316 std::vector<std::pair<std::string_view, EncodeFuncType<TWO>>> doubleFunctions { in Values2()
|
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A 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()
|
H A D | utf.h | 79 enum UtfLength : uint8_t { ONE = 1, TWO = 2, THREE = 3, FOUR = 4 };
|
/arkcompiler/ets_runtime/ecmascript/containers/ |
H A D | containers_private.cpp | 289 SetFrozenFunction(thread, prototype, "insert", ContainersArrayList::Insert, FuncLength::TWO); in InitializeArrayList() 303 SetFrozenFunction(thread, prototype, "removeByRange", ContainersArrayList::RemoveByRange, FuncLength::TWO); in InitializeArrayList() 305 FuncLength::TWO, BUILTINS_STUB_ID(ArrayListReplaceAllElements)); in InitializeArrayList() 307 SetFrozenFunction(thread, prototype, "subArrayList", ContainersArrayList::SubArrayList, FuncLength::TWO); in InitializeArrayList() 309 SetFrozenFunction(thread, prototype, "forEach", ContainersArrayList::ForEach, FuncLength::TWO, in InitializeArrayList() 503 SetFrozenFunction(thread, mapFuncPrototype, "set", ContainersTreeMap::Set, FuncLength::TWO); in InitializeTreeMap() 516 SetFrozenFunction(thread, mapFuncPrototype, "replace", ContainersTreeMap::Replace, FuncLength::TWO); in InitializeTreeMap() 580 SetFrozenFunction(thread, setFuncPrototype, "add", ContainersTreeSet::Add, FuncLength::TWO); in InitializeTreeSet() 590 SetFrozenFunction(thread, setFuncPrototype, "isEmpty", ContainersTreeSet::IsEmpty, FuncLength::TWO); in InitializeTreeSet() 789 SetFrozenFunction(thread, prototype, "insert", ContainersVector::Insert, FuncLength::TWO); in InitializeVector() [all...] |
H A D | containers_private.h | 25 enum FuncLength : uint8_t { ZERO = 0, ONE, TWO, THREE, FOUR };
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_dataview_stub_builder.h | 23 enum OffsetIndex : uint8_t { ZERO = 0, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN};
|
H A D | builtins_dataview_stub_builder.cpp | 128 Store(VariableType::INT8(), glue, pointer, Int32Add(offset, Int32(OffsetIndex::TWO)), TruncInt32ToInt8(b2));
in SetValueInBufferForInt32() 136 Store(VariableType::INT8(), glue, pointer, Int32Add(offset, Int32(OffsetIndex::TWO)), TruncInt32ToInt8(b1));
in SetValueInBufferForInt32() 172 Store(VariableType::INT8(), glue, pointer, Int32Add(offset, Int32(OffsetIndex::TWO)), TruncInt32ToInt8(b2));
in SetValueInBufferForInt64() 184 Store(VariableType::INT8(), glue, pointer, Int32Add(offset, Int32(OffsetIndex::TWO)), TruncInt32ToInt8(b5));
in SetValueInBufferForInt64()
|
H A D | builtins_typedarray_stub_builder.cpp | 310 GateRef byteIndex = Int32Add(Int32Mul(index, Int32(base::ElementSize::TWO)), offset);
in GetValueFromBuffer() 319 GateRef byteIndex = Int32Add(Int32Mul(index, Int32(base::ElementSize::TWO)), offset);
in GetValueFromBuffer() 2952 GateRef byteIndex = Int32Add(Int32Mul(index, Int32(base::ElementSize::TWO)), offset);
in SetValueToBuffer() 2974 GateRef byteIndex = Int32Add(Int32Mul(index, Int32(base::ElementSize::TWO)), offset);
in SetValueToBuffer()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins.cpp | 1033 SetFunction(env, proxyFunction, "revocable", Proxy::Revocable, FunctionLength::TWO); in InitializeProxy() 1271 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() 2043 NewBuiltinConstructor(env, regPrototype, RegExp::RegExpConstructor, "RegExp", FunctionLength::TWO)); in InitializeRegExp() 2118 env, regPrototype, env->GetSplitSymbol(), "[Symbol.split]", RegExp::Split, FunctionLength::TWO); in InitializeRegExp() 2130 env, regPrototype, env->GetReplaceSymbol(), "[Symbol.replace]", RegExp::Replace, FunctionLength::TWO); in InitializeRegExp() 2429 SetFunction(env, arrayBufferFuncPrototype, "slice", ArrayBuffer::Slice, FunctionLength::TWO); in InitializeArrayBuffer() 2517 SetFunction(env, sharedArrayBufferFuncPrototype, "slice", SharedArrayBuffer::Slice, FunctionLength::TWO); in InitializeSharedArrayBuffer() [all...] |
H A D | builtins.h | 37 enum FunctionLength : uint8_t { ZERO = 0, ONE, TWO, THREE, FOUR };
|
H A D | shared_builtins.cpp | 161 BuiltinsSendableArrayBuffer::Slice, fieldIndex++, FunctionLength::TWO); in InitializeSArrayBuffer() 404 SetSFunction(env, sFuncPrototypeObj, "apply", Function::FunctionPrototypeApply, fieldIndex++, FunctionLength::TWO, in InitializeSFunction()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | basicblock.cpp | 923 constexpr auto TWO = 2; 924 ASSERT(other->GetPredsBlocks().size() >= TWO); 936 if (other->GetPredsBlocks().size() > TWO) {
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
H A D | utf_helper_test.cpp | 604 unicodeRes = ConvertUtf8ToUnicodeChar(utf8ValuePtr3, UtfLength::TWO); in HWTEST_F_L0() 607 unicodeRes = ConvertUtf8ToUnicodeChar(utf8ValuePtr4, UtfLength::TWO); in HWTEST_F_L0() 612 unicodeRes = ConvertUtf8ToUnicodeChar(utf8ValuePtr5, UtfLength::TWO); in HWTEST_F_L0() 632 unicodeRes = ConvertUtf8ToUnicodeChar(utf8ValuePtr7, UtfLength::TWO); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | object_factory.cpp | 3589 JSFunction::SetFunctionLength(thread_, function, JSTaggedValue(FunctionLength::TWO)); in CreateJSPromiseExecutorFunction()
|