Home
last modified time | relevance | path

Searched refs:AlgorithmType (Results 1 - 16 of 16) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_dataview_test.cpp37 enum class AlgorithmType { class
61 static JSTaggedValue DataViewAlgorithmGet(AlgorithmType type, EcmaRuntimeCallInfo* ecmaRuntimeCallInfo) in DataViewAlgorithmGet()
65 case AlgorithmType::GET_OFFSET: in DataViewAlgorithmGet()
68 case AlgorithmType::GET_BYTELENGTH: in DataViewAlgorithmGet()
71 case AlgorithmType::GET_BUFFER: in DataViewAlgorithmGet()
74 case AlgorithmType::GET_INT8: in DataViewAlgorithmGet()
77 case AlgorithmType::GET_UINT16: in DataViewAlgorithmGet()
80 case AlgorithmType::GET_INT16: in DataViewAlgorithmGet()
83 case AlgorithmType::GET_UINT32: in DataViewAlgorithmGet()
86 case AlgorithmType in DataViewAlgorithmGet()
[all...]
H A Dbuiltins_symbol_test.cpp43 enum class AlgorithmType { class
54 uint32_t argLen = 8, AlgorithmType type = AlgorithmType::TO_STRING) in SymbolAlgorithm()
65 case AlgorithmType::TO_STRING: in SymbolAlgorithm()
68 case AlgorithmType::VALUE_OF: in SymbolAlgorithm()
71 case AlgorithmType::KEY_FOR: in SymbolAlgorithm()
74 case AlgorithmType::BUILTIN_VALUE_OF: in SymbolAlgorithm()
77 case AlgorithmType::BUILTIN_FOR: in SymbolAlgorithm()
80 case AlgorithmType::BUILTIN_KEY_FOR: in SymbolAlgorithm()
83 case AlgorithmType in SymbolAlgorithm()
53 SymbolAlgorithm(JSThread *thread, JSTaggedValue thisArg, std::vector<JSTaggedValue>& args, uint32_t argLen = 8, AlgorithmType type = AlgorithmType::TO_STRING) SymbolAlgorithm() argument
[all...]
H A Dbuiltins_locale_test.cpp118 enum class AlgorithmType { class
134 JSTaggedValue AlgorithmOther(EcmaRuntimeCallInfo *ecmaRuntimeCallInfo, AlgorithmType type) in AlgorithmOther()
137 case AlgorithmType::TO_STRING: in AlgorithmOther()
139 case AlgorithmType::MAXI_MIZE: in AlgorithmOther()
141 case AlgorithmType::MINI_MIZE: in AlgorithmOther()
149 int32_t argLen, AlgorithmType type) in LocaleAlgorithm()
160 case AlgorithmType::GET_BASE_NAME: in LocaleAlgorithm()
163 case AlgorithmType::GET_HOUR_CYCLE: in LocaleAlgorithm()
166 case AlgorithmType::GET_CALENDAR: in LocaleAlgorithm()
169 case AlgorithmType in LocaleAlgorithm()
[all...]
H A Dbuiltins_atomics_test.cpp179 enum class AlgorithmType { class
194 uint32_t argLen = 8, AlgorithmType type = AlgorithmType::ALGORITHM_LOAD) in AtomicsAlgorithm()
206 case AlgorithmType::ALGORITHM_AND: in AtomicsAlgorithm()
209 case AlgorithmType::ALGORITHM_ADD: in AtomicsAlgorithm()
212 case AlgorithmType::ALGORITHM_SUB: in AtomicsAlgorithm()
215 case AlgorithmType::ALGORITHM_LOAD: in AtomicsAlgorithm()
218 case AlgorithmType::ALGORITHM_STORE: in AtomicsAlgorithm()
221 case AlgorithmType::ALGORITHM_COMP_EXCHANGE: in AtomicsAlgorithm()
224 case AlgorithmType in AtomicsAlgorithm()
193 AtomicsAlgorithm(JSThread *thread, JSHandle<JSTaggedValue>& obj, std::vector<int32_t>& vals, uint32_t argLen = 8, AlgorithmType type = AlgorithmType::ALGORITHM_LOAD) AtomicsAlgorithm() argument
[all...]
H A Dbuiltins_bigint_test.cpp31 enum class AlgorithmType { class
41 AlgorithmType type, JSTaggedValue argThis = JSTaggedValue::Undefined()) in BigIntAlgorithm()
53 case AlgorithmType::BIGINT_CONSTRUCTOR: in BigIntAlgorithm()
56 case AlgorithmType::BIGINT_ASINTN: in BigIntAlgorithm()
59 case AlgorithmType::BIGINT_ASUINTN: in BigIntAlgorithm()
62 case AlgorithmType::BIGINT_TOLOCALSTR: in BigIntAlgorithm()
65 case AlgorithmType::BIGINT_TOSTR: in BigIntAlgorithm()
68 case AlgorithmType::BIGINT_VALUEOF: in BigIntAlgorithm()
84 auto result = BigIntAlgorithm(thread, vals, 6, AlgorithmType::BIGINT_CONSTRUCTOR); in HWTEST_F_L0()
96 auto result = BigIntAlgorithm(thread, vals, 6, AlgorithmType in HWTEST_F_L0()
[all...]
H A Dbuiltins_date_time_format_first_test.cpp64 enum class AlgorithmType { class
72 std::vector<JSTaggedValue> vals, uint32_t argLen, AlgorithmType type = AlgorithmType::ALGORITHM_FORMAT) in AtomicsAlgorithm()
83 case AlgorithmType::ALGORITHM_FORMAT: in AtomicsAlgorithm()
86 case AlgorithmType::ALGORITHM_FORMAT_TO_PARTS: in AtomicsAlgorithm()
89 case AlgorithmType::ALGORITHM_FORMAT_RANGE: in AtomicsAlgorithm()
92 case AlgorithmType::ALGORITHM_FORMAT_RANGE_TO_PARTS: in AtomicsAlgorithm()
111 AtomicsAlgorithm(thread, jsDateTimeFormat, vals, 6, AlgorithmType::ALGORITHM_FORMAT); // 6: args length in FormatCommon()
155 AlgorithmType::ALGORITHM_FORMAT_TO_PARTS); // 6: args length in HWTEST_F_L0()
175 AtomicsAlgorithm(thread, jsDateTimeFormat, vals, 8, AlgorithmType in HWTEST_F_L0()
71 AtomicsAlgorithm(JSThread *thread, JSHandle<JSDateTimeFormat>& jsDateTimeFormat, std::vector<JSTaggedValue> vals, uint32_t argLen, AlgorithmType type = AlgorithmType::ALGORITHM_FORMAT) AtomicsAlgorithm() argument
[all...]
H A Dbuiltins_string_test.cpp59 enum class AlgorithmType { class
77 JSTaggedValue StringAlgorithmOther(EcmaRuntimeCallInfo*ecmaRuntimeCallInfos, AlgorithmType type) in StringAlgorithmOther()
80 case AlgorithmType::START_WITH: in StringAlgorithmOther()
82 case AlgorithmType::ENDS_WITH: in StringAlgorithmOther()
84 case AlgorithmType::TO_STRING: in StringAlgorithmOther()
86 case AlgorithmType::VALUE_OF: in StringAlgorithmOther()
88 case AlgorithmType::REPLACE: in StringAlgorithmOther()
90 case AlgorithmType::SPLIT: in StringAlgorithmOther()
98 uint32_t argLen = 8, AlgorithmType type = AlgorithmType in StringAlgorithm()
97 StringAlgorithm(JSThread *thread, JSTaggedValue thisArg, std::vector<JSTaggedValue>& args, uint32_t argLen = 8, AlgorithmType type = AlgorithmType::FROM_CHAR_CODE) StringAlgorithm() argument
[all...]
H A Dbuiltins_promise_test.cpp100 enum class AlgorithmType { class
108 AlgorithmType type) in PromiseAlgorithm()
118 case AlgorithmType::REJECT: in PromiseAlgorithm()
121 case AlgorithmType::RESOLVE: in PromiseAlgorithm()
124 case AlgorithmType::RACE: in PromiseAlgorithm()
127 case AlgorithmType::ALL: in PromiseAlgorithm()
167 auto result = PromiseAlgorithm(thread, promise, paramMsg.GetTaggedValue(), AlgorithmType::REJECT); in HWTEST_F_L0()
191 auto result = PromiseAlgorithm(thread, promise, paramMsg1.GetTaggedValue(), AlgorithmType::REJECT); in HWTEST_F_L0()
199 auto result1 = PromiseAlgorithm(thread, promise, promise1.GetTaggedValue(), AlgorithmType::REJECT); in HWTEST_F_L0()
223 auto result = PromiseAlgorithm(thread, promise, paramMsg.GetTaggedValue(), AlgorithmType in HWTEST_F_L0()
[all...]
H A Dbuiltins_collator_test.cpp47 enum class AlgorithmType { class
57 AlgorithmType type, JSTaggedValue thisValue = JSTaggedValue::Undefined()) in CollatorAlgorithm()
68 case AlgorithmType::COLLATOR_SUPPORTED_LOCALES_OF: in CollatorAlgorithm()
71 case AlgorithmType::COLLATOR_RESOLVED_OPTIONS: in CollatorAlgorithm()
74 case AlgorithmType::COLLATOR_COMPARE: in CollatorAlgorithm()
77 case AlgorithmType::ARRAY_SORT: in CollatorAlgorithm()
80 case AlgorithmType::ARRAY_JOIN: in CollatorAlgorithm()
83 case AlgorithmType::ARRAY_TOSTR: in CollatorAlgorithm()
174 auto result1 = CollatorAlgorithm(thread, vals, 4, AlgorithmType::COLLATOR_COMPARE, jsCollator.GetTaggedValue()); in HWTEST_F_L0()
195 auto result2 = CollatorAlgorithm(thread, arrayVals, 6, AlgorithmType in HWTEST_F_L0()
[all...]
H A Dbuiltins_function_test.cpp61 enum class AlgorithmType { class
69 AlgorithmType type = AlgorithmType::PROTOTYPE_APPLY) in FunctionAlgorithm()
80 case AlgorithmType::PROTOTYPE_BIND: in FunctionAlgorithm()
83 case AlgorithmType::PROTOTYPE_APPLY: in FunctionAlgorithm()
86 case AlgorithmType::PROTOTYPE_CALL: in FunctionAlgorithm()
115 auto result = FunctionAlgorithm(thread, func, args, 6, AlgorithmType::PROTOTYPE_APPLY); in HWTEST_F_L0()
153 auto result = FunctionAlgorithm(thread, func, args, 8, AlgorithmType::PROTOTYPE_APPLY); in HWTEST_F_L0()
179 auto result = FunctionAlgorithm(thread, target, args, 6, AlgorithmType::PROTOTYPE_BIND); in HWTEST_F_L0()
222 auto result = FunctionAlgorithm(thread, target, args, 10, AlgorithmType in HWTEST_F_L0()
67 FunctionAlgorithm(JSThread *thread, JSHandle<JSFunction> &thisArg, std::vector<JSTaggedValue> &args, uint32_t argLen, AlgorithmType type = AlgorithmType::PROTOTYPE_APPLY) FunctionAlgorithm() argument
[all...]
H A Dbuiltins_shared_function_test.cpp63 enum class AlgorithmType { class
71 AlgorithmType type = AlgorithmType::PROTOTYPE_APPLY) in FunctionAlgorithm()
82 case AlgorithmType::PROTOTYPE_BIND: in FunctionAlgorithm()
85 case AlgorithmType::PROTOTYPE_APPLY: in FunctionAlgorithm()
88 case AlgorithmType::PROTOTYPE_CALL: in FunctionAlgorithm()
132 auto result = FunctionAlgorithm(thread, func, args, 6, AlgorithmType::PROTOTYPE_APPLY); in HWTEST_F_L0()
169 auto result = FunctionAlgorithm(thread, func, args, 8, AlgorithmType::PROTOTYPE_APPLY); in HWTEST_F_L0()
188 auto result = FunctionAlgorithm(thread, target, args, 6, AlgorithmType::PROTOTYPE_BIND); in HWTEST_F_L0()
213 auto result = FunctionAlgorithm(thread, target, args, 10, AlgorithmType in HWTEST_F_L0()
69 FunctionAlgorithm(JSThread *thread, JSHandle<JSFunction> &thisArg, std::vector<JSTaggedValue> &args, uint32_t argLen, AlgorithmType type = AlgorithmType::PROTOTYPE_APPLY) FunctionAlgorithm() argument
[all...]
H A Dbuiltins_set_test.cpp75 enum class AlgorithmType { class
81 uint32_t argLen = 8, AlgorithmType type = AlgorithmType::ADD) in SetAlgorithm()
92 case AlgorithmType::ADD: in SetAlgorithm()
95 case AlgorithmType::HAS: in SetAlgorithm()
172 auto result3 = SetAlgorithm(thread, jsSetTag, args, 6, AlgorithmType::HAS); in HWTEST_F_L0()
181 SetAlgorithm(thread, jsSetTag, args, 6, AlgorithmType::ADD); in HWTEST_F_L0()
184 auto result4 = SetAlgorithm(thread, jsSetTag, args, 6, AlgorithmType::HAS); in HWTEST_F_L0()
200 auto result1 = SetAlgorithm(thread, set.GetTaggedValue(), args, 6, AlgorithmType::ADD); in HWTEST_F_L0()
237 auto result1 = SetAlgorithm(thread, set.GetTaggedValue(), args, 6, AlgorithmType in HWTEST_F_L0()
80 SetAlgorithm(JSThread *thread, JSTaggedValue jsSet, std::vector<JSTaggedValue>& args, uint32_t argLen = 8, AlgorithmType type = AlgorithmType::ADD) SetAlgorithm() argument
[all...]
H A Dbuiltins_shared_set_test.cpp87 enum class AlgorithmType { class
93 uint32_t argLen = 8, AlgorithmType type = AlgorithmType::ADD) in SharedSetAlgorithm()
104 case AlgorithmType::ADD: in SharedSetAlgorithm()
107 case AlgorithmType::HAS: in SharedSetAlgorithm()
212 auto result3 = SharedSetAlgorithm(thread, jsSetTag, args, 6, AlgorithmType::HAS); in HWTEST_F_L0()
221 SharedSetAlgorithm(thread, jsSetTag, args, 6, AlgorithmType::ADD); in HWTEST_F_L0()
224 auto result4 = SharedSetAlgorithm(thread, jsSetTag, args, 6, AlgorithmType::HAS); in HWTEST_F_L0()
240 auto result1 = SharedSetAlgorithm(thread, set.GetTaggedValue(), args, 6, AlgorithmType::ADD); in HWTEST_F_L0()
277 auto result1 = SharedSetAlgorithm(thread, set.GetTaggedValue(), args, 6, AlgorithmType in HWTEST_F_L0()
92 SharedSetAlgorithm(JSThread *thread, JSTaggedValue jsSet, std::vector<JSTaggedValue>& args, uint32_t argLen = 8, AlgorithmType type = AlgorithmType::ADD) SharedSetAlgorithm() argument
[all...]
H A Dbuiltins_map_test.cpp76 enum class AlgorithmType { class
83 int32_t argLen, AlgorithmType type) in MapAlgorithm()
94 case AlgorithmType::SET: in MapAlgorithm()
97 case AlgorithmType::FOR_EACH: in MapAlgorithm()
100 case AlgorithmType::HAS: in MapAlgorithm()
183 auto result3 = MapAlgorithm(thread, JSTaggedValue(jsMap), args, 8, AlgorithmType::HAS); // 8: arg len in HWTEST_F_L0()
198 auto result1 = MapAlgorithm(thread, map.GetTaggedValue(), args, 8, AlgorithmType::SET); in HWTEST_F_L0()
208 auto result2 = MapAlgorithm(thread, map.GetTaggedValue(), args, 8, AlgorithmType::FOR_EACH); in HWTEST_F_L0()
226 auto result1 = MapAlgorithm(thread, map.GetTaggedValue(), args, 8, AlgorithmType::SET); in HWTEST_F_L0()
H A Dbuiltins_shared_map_test.cpp164 enum class AlgorithmType { class
171 int32_t argLen, AlgorithmType type) in MapAlgorithm()
182 case AlgorithmType::SET: in MapAlgorithm()
185 case AlgorithmType::FOR_EACH: in MapAlgorithm()
188 case AlgorithmType::HAS: in MapAlgorithm()
226 auto result3 = MapAlgorithm(thread, jsSMap.GetTaggedValue(), args, 8, AlgorithmType::HAS); // 8: arg len in HWTEST_F_L0()
274 auto result1 = MapAlgorithm(thread, map.GetTaggedValue(), args, 8, AlgorithmType::SET); in HWTEST_F_L0()
284 auto result2 = MapAlgorithm(thread, map.GetTaggedValue(), args, 8, AlgorithmType::FOR_EACH); in HWTEST_F_L0()
302 auto result1 = MapAlgorithm(thread, map.GetTaggedValue(), args, 8, AlgorithmType::SET); in HWTEST_F_L0()
H A Dbuiltins_date_test.cpp47 enum class AlgorithmType { class
54 uint32_t argLen = 8, AlgorithmType type = AlgorithmType::ALGORITHM_TO_STRING) in DateAlgorithm()
65 case AlgorithmType::ALGORITHM_TO_STRING: in DateAlgorithm()
68 case AlgorithmType::ALGORITHM_TO_TIME_STRING: in DateAlgorithm()
71 case AlgorithmType::ALGORITHM_TO_ISO_STRING: in DateAlgorithm()
666 auto result1 = DateAlgorithm(thread, jsDate.GetTaggedValue(), args, 4, AlgorithmType::ALGORITHM_TO_ISO_STRING); in HWTEST_F_L0()
680 auto result1 = DateAlgorithm(thread, jsDate.GetTaggedValue(), args, 4, AlgorithmType::ALGORITHM_TO_ISO_STRING); in HWTEST_F_L0()
750 void ToStringCommon(JSThread* thread, CString& str1, CString& str2, CString& str3, AlgorithmType type) in ToStringCommon()
788 ToStringCommon(thread, str1, str2, str3, AlgorithmType in HWTEST_F_L0()
53 DateAlgorithm(JSThread *thread, const JSTaggedValue& thisTag, std::vector<JSTaggedValue>& vals, uint32_t argLen = 8, AlgorithmType type = AlgorithmType::ALGORITHM_TO_STRING) DateAlgorithm() argument
[all...]

Completed in 13 milliseconds