Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_dataview_test.cpp37 enum class AlgorithmType { enum
61 static JSTaggedValue DataViewAlgorithmGet(AlgorithmType type, EcmaRuntimeCallInfo* ecmaRuntimeCallI… 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::GET_INT32: in DataViewAlgorithmGet()
[all …]
Dbuiltins_symbol_test.cpp43 enum class AlgorithmType { enum
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::BUILTIN_TO_PRIMITIVE: in SymbolAlgorithm()
101 … auto result = SymbolAlgorithm(thread, symbol.GetTaggedValue(), args, 4, AlgorithmType::TO_STRING); in HWTEST_F_L0()
[all …]
Dbuiltins_locale_test.cpp118 enum class AlgorithmType { enum
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::GET_CASE_FIRST: in LocaleAlgorithm()
[all …]
Dbuiltins_atomics_test.cpp179 enum class AlgorithmType { enum
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::ALGORITHM_EXCHANGE: in AtomicsAlgorithm()
227 case AlgorithmType::ALGORITHM_OR: in AtomicsAlgorithm()
[all …]
Dbuiltins_date_time_format_first_test.cpp64 enum class AlgorithmType { enum
72 …std::vector<JSTaggedValue> vals, uint32_t argLen, AlgorithmType type = AlgorithmType::ALGORITHM_FO… 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 … in FormatCommon()
155 AlgorithmType::ALGORITHM_FORMAT_TO_PARTS); // 6: args length in HWTEST_F_L0()
175 …AtomicsAlgorithm(thread, jsDateTimeFormat, vals, 8, AlgorithmType::ALGORITHM_FORMAT_RANGE); // 8:… in HWTEST_F_L0()
196 …AtomicsAlgorithm(thread, jsDateTimeFormat, vals, 8, AlgorithmType::ALGORITHM_FORMAT_RANGE); // 8:… in HWTEST_F_L0()
[all …]
Dbuiltins_bigint_test.cpp31 enum class AlgorithmType { enum
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::BIGINT_CONSTRUCTOR); in HWTEST_F_L0()
[all …]
Dbuiltins_promise_test.cpp105 enum class AlgorithmType { enum
113 AlgorithmType type) in PromiseAlgorithm()
123 case AlgorithmType::REJECT: in PromiseAlgorithm()
126 case AlgorithmType::RESOLVE: in PromiseAlgorithm()
129 case AlgorithmType::RACE: in PromiseAlgorithm()
132 case AlgorithmType::ALL: in PromiseAlgorithm()
172 … auto result = PromiseAlgorithm(thread, promise, paramMsg.GetTaggedValue(), AlgorithmType::REJECT); in HWTEST_F_L0()
196 …auto result = PromiseAlgorithm(thread, promise, paramMsg1.GetTaggedValue(), AlgorithmType::REJECT); in HWTEST_F_L0()
204 …auto result1 = PromiseAlgorithm(thread, promise, promise1.GetTaggedValue(), AlgorithmType::REJECT); in HWTEST_F_L0()
228 …auto result = PromiseAlgorithm(thread, promise, paramMsg.GetTaggedValue(), AlgorithmType::RESOLVE); in HWTEST_F_L0()
[all …]
Dbuiltins_string_test.cpp59 enum class AlgorithmType { enum
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::FROM_CHAR_CODE) in StringAlgorithm()
109 case AlgorithmType::FROM_CHAR_CODE: in StringAlgorithm()
[all …]
Dbuiltins_collator_test.cpp47 enum class AlgorithmType { enum
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.GetT… in HWTEST_F_L0()
195 …auto result2 = CollatorAlgorithm(thread, arrayVals, 6, AlgorithmType::ARRAY_SORT, jsObject.GetTagg… in HWTEST_F_L0()
[all …]
Dbuiltins_shared_function_test.cpp63 enum class AlgorithmType { enum
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::PROTOTYPE_BIND); in HWTEST_F_L0()
248 auto result = FunctionAlgorithm(thread, target, args, 10, AlgorithmType::PROTOTYPE_BIND); in HWTEST_F_L0()
[all …]
Dbuiltins_function_test.cpp61 enum class AlgorithmType { enum
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::PROTOTYPE_BIND); in HWTEST_F_L0()
271 auto result = FunctionAlgorithm(thread, target, args, 10, AlgorithmType::PROTOTYPE_BIND); in HWTEST_F_L0()
[all …]
Dbuiltins_set_test.cpp75 enum class AlgorithmType { enum
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::ADD); in HWTEST_F_L0()
Dbuiltins_map_test.cpp76 enum class AlgorithmType { enum
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 … 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()
Dbuiltins_shared_set_test.cpp87 enum class AlgorithmType { enum
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::ADD); in HWTEST_F_L0()
Dbuiltins_shared_map_test.cpp164 enum class AlgorithmType { enum
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: a… 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()
Dbuiltins_date_test.cpp47 enum class AlgorithmType { enum
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… in HWTEST_F_L0()
680 …auto result1 = DateAlgorithm(thread, jsDate.GetTaggedValue(), args, 4, AlgorithmType::ALGORITHM_TO… in HWTEST_F_L0()
750 void ToStringCommon(JSThread* thread, CString& str1, CString& str2, CString& str3, AlgorithmType ty… in ToStringCommon()
788 ToStringCommon(thread, str1, str2, str3, AlgorithmType::ALGORITHM_TO_STRING); in HWTEST_F_L0()
796 ToStringCommon(thread, str1, str2, str3, AlgorithmType::ALGORITHM_TO_TIME_STRING); in HWTEST_F_L0()