Home
last modified time | relevance | path

Searched refs:ecmaRuntimeCallInfo2 (Results 1 – 20 of 20) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_bigint_test.cpp213 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
214 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
215 ecmaRuntimeCallInfo2->SetThis(bigIntHandle.GetTaggedValue()); in HWTEST_F_L0()
216 ecmaRuntimeCallInfo2->SetCallArg(0, locale.GetTaggedValue()); in HWTEST_F_L0()
217 ecmaRuntimeCallInfo2->SetCallArg(1, JSTaggedValue::Undefined()); in HWTEST_F_L0()
219 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
220 JSTaggedValue result2 = BuiltinsBigInt::ToLocaleString(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
255 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
256 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
257 ecmaRuntimeCallInfo2->SetThis(bigIntHandle.GetTaggedValue()); in HWTEST_F_L0()
[all …]
Dbuiltins_string_iterator_test.cpp83 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
84 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
85 ecmaRuntimeCallInfo2->SetThis(stringIterator.GetTaggedValue()); in HWTEST_F_L0()
87 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
88 BuiltinsStringIterator::Next(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
122 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
123 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
124 ecmaRuntimeCallInfo2->SetThis(stringIterator.GetTaggedValue()); in HWTEST_F_L0()
126 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
127 BuiltinsStringIterator::Next(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
Dbuiltins_typedarray_test.cpp300 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
301 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
302 ecmaRuntimeCallInfo2->SetThis(obj.GetTaggedValue()); in HWTEST_F_L0()
303 ecmaRuntimeCallInfo2->SetCallArg(0, JSTaggedValue(static_cast<int32_t>(1))); in HWTEST_F_L0()
305 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
306 result = TypedArray::Includes(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
370 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
371 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
372 ecmaRuntimeCallInfo2->SetThis(obj.GetTaggedValue()); in HWTEST_F_L0()
373 ecmaRuntimeCallInfo2->SetCallArg(0, JSTaggedValue(static_cast<int32_t>(-2))); in HWTEST_F_L0()
[all …]
Dbuiltins_promise_test.cpp308 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*promise),… in HWTEST_F_L0() local
309 ecmaRuntimeCallInfo2->SetFunction(promise.GetTaggedValue()); in HWTEST_F_L0()
310 ecmaRuntimeCallInfo2->SetThis(promise.GetTaggedValue()); in HWTEST_F_L0()
311 ecmaRuntimeCallInfo2->SetCallArg(0, paramMsg2.GetTaggedValue()); in HWTEST_F_L0()
313 [[maybe_unused]] auto prevResolve = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
314 JSTaggedValue result2 = BuiltinsPromise::Resolve(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
379 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*promise),… in HWTEST_F_L0() local
380 ecmaRuntimeCallInfo2->SetFunction(promise.GetTaggedValue()); in HWTEST_F_L0()
381 ecmaRuntimeCallInfo2->SetThis(promise.GetTaggedValue()); in HWTEST_F_L0()
382 ecmaRuntimeCallInfo2->SetCallArg(0, paramMsg2.GetTaggedValue()); in HWTEST_F_L0()
[all …]
Dbuiltins_collator_test.cpp191 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
192 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
193 ecmaRuntimeCallInfo2->SetThis(jsObject.GetTaggedValue()); in HWTEST_F_L0()
194 ecmaRuntimeCallInfo2->SetCallArg(0, jsFunction.GetTaggedValue()); in HWTEST_F_L0()
196 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
197 JSTaggedValue result2 = BuiltinsArray::Sort(ecmaRuntimeCallInfo2); // sort in language(de) in HWTEST_F_L0()
240 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
241 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
242 ecmaRuntimeCallInfo2->SetThis(jsObject.GetTaggedValue()); in HWTEST_F_L0()
243 ecmaRuntimeCallInfo2->SetCallArg(0, jsFunction.GetTaggedValue()); in HWTEST_F_L0()
[all …]
Dbuiltins_locale_test.cpp383 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
384 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
385 ecmaRuntimeCallInfo2->SetThis(resultLocale.GetTaggedValue()); in HWTEST_F_L0()
387 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
388 JSTaggedValue result = BuiltinsLocale::GetBaseName(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
410 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
411 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
412 ecmaRuntimeCallInfo2->SetThis(resultLocale.GetTaggedValue()); in HWTEST_F_L0()
414 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
415 JSTaggedValue result = BuiltinsLocale::GetBaseName(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
[all …]
Dbuiltins_sharedarraybuffer_test.cpp145 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
146 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
147 ecmaRuntimeCallInfo2->SetThis(arrBuf2.GetTaggedValue()); in HWTEST_F_L0()
148 ecmaRuntimeCallInfo2->SetCallArg(0, JSTaggedValue(static_cast<int32_t>(1))); in HWTEST_F_L0()
149 ecmaRuntimeCallInfo2->SetCallArg(1, JSTaggedValue(static_cast<int32_t>(5))); in HWTEST_F_L0()
151 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
152 JSTaggedValue result3 = BuiltinsSharedArrayBuffer::Slice(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
Dbuiltins_date_time_format_test.cpp185 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
186 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
187 ecmaRuntimeCallInfo2->SetThis(jsObject.GetTaggedValue()); in HWTEST_F_L0()
188 ecmaRuntimeCallInfo2->SetCallArg(0, value.GetTaggedValue()); in HWTEST_F_L0()
190 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
191 JSTaggedValue result2 = BuiltinsArray::ToString(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
225 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
226 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
227 ecmaRuntimeCallInfo2->SetThis(jsObject.GetTaggedValue()); in HWTEST_F_L0()
228 ecmaRuntimeCallInfo2->SetCallArg(0, value.GetTaggedValue()); in HWTEST_F_L0()
[all …]
Dbuiltins_weak_ref_test.cpp214 auto ecmaRuntimeCallInfo2 = in HWTEST_F_L0() local
216 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
217 ecmaRuntimeCallInfo2->SetThis(jsWeakRef.GetTaggedValue()); in HWTEST_F_L0()
220 [[maybe_unused]] auto prev2 = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
221 JSTaggedValue result2 = BuiltinsWeakRef::Deref(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
Dbuiltins_date_test.cpp555 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
556 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
557 ecmaRuntimeCallInfo2->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0()
558 ecmaRuntimeCallInfo2->SetCallArg(0, JSTaggedValue(10.23)); in HWTEST_F_L0()
559 ecmaRuntimeCallInfo2->SetCallArg(1, JSTaggedValue(4.32)); in HWTEST_F_L0()
560 ecmaRuntimeCallInfo2->SetCallArg(2, JSTaggedValue(11.32)); in HWTEST_F_L0()
562 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
563 result1 = BuiltinsDate::UTC(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
707 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
708 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
[all …]
Dbuiltins_set_test.cpp177 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
178 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
179 ecmaRuntimeCallInfo2->SetThis(JSTaggedValue(jsSet)); in HWTEST_F_L0()
180 ecmaRuntimeCallInfo2->SetCallArg(0, negativeZero.GetTaggedValue()); in HWTEST_F_L0()
182 [[maybe_unused]] auto prevLocal = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
183 BuiltinsSet::Add(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
Dbuiltins_symbol_test.cpp286 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
287 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
288 ecmaRuntimeCallInfo2->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0()
289 ecmaRuntimeCallInfo2->SetCallArg(0, otherSymbol.GetTaggedValue()); in HWTEST_F_L0()
291 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
292 JSTaggedValue otherResult = BuiltinsSymbol::KeyFor(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
303 ecmaRuntimeCallInfo2->SetCallArg(0, JSTaggedValue::Undefined()); in HWTEST_F_L0()
Dbuiltins_array_test.cpp330 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
331 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
332 ecmaRuntimeCallInfo2->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0()
333 ecmaRuntimeCallInfo2->SetCallArg(0, JSTaggedValue(static_cast<int32_t>(1))); in HWTEST_F_L0()
335 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
336 result = Array::IsArray(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
1011 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
1012 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
1013 ecmaRuntimeCallInfo2->SetThis(obj.GetTaggedValue()); in HWTEST_F_L0()
1014 ecmaRuntimeCallInfo2->SetCallArg(0, JSTaggedValue(static_cast<int32_t>(3))); in HWTEST_F_L0()
[all …]
Dbuiltins_function_test.cpp412 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
413 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
414 ecmaRuntimeCallInfo2->SetThis(booleanCtor.GetTaggedValue()); in HWTEST_F_L0()
415 ecmaRuntimeCallInfo2->SetCallArg(0, booleanInstance.GetTaggedValue()); in HWTEST_F_L0()
417 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
418 EXPECT_TRUE(BuiltinsFunction::FunctionPrototypeHasInstance(ecmaRuntimeCallInfo2).GetRawData()); in HWTEST_F_L0()
Dbuiltins_number_format_test.cpp104 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget… in BuiltinsFormatTest() local
105 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in BuiltinsFormatTest()
106 ecmaRuntimeCallInfo2->SetThis(numberFormatVal.GetTaggedValue()); in BuiltinsFormatTest()
108 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in BuiltinsFormatTest()
109 JSTaggedValue resultFunc = BuiltinsNumberFormat::Format(ecmaRuntimeCallInfo2); in BuiltinsFormatTest()
Dbuiltins_string_test.cpp1052 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
1053 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
1054 ecmaRuntimeCallInfo2->SetThis(thisStr.GetTaggedValue()); in HWTEST_F_L0()
1055 ecmaRuntimeCallInfo2->SetCallArg(0, searchStr.GetTaggedValue()); in HWTEST_F_L0()
1056 ecmaRuntimeCallInfo2->SetCallArg(1, replaceStr2.GetTaggedValue()); in HWTEST_F_L0()
1058 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
1059 JSTaggedValue result2 = BuiltinsString::Replace(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
1127 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
1128 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
1129 ecmaRuntimeCallInfo2->SetThis(thisStr.GetTaggedValue()); in HWTEST_F_L0()
[all …]
Dbuiltins_object_test.cpp790 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
791 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
792 ecmaRuntimeCallInfo2->SetThis(objFather.GetTaggedValue()); in HWTEST_F_L0()
793 ecmaRuntimeCallInfo2->SetCallArg(0, obj.GetTaggedValue()); in HWTEST_F_L0()
795 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
796 JSTaggedValue result2 = BuiltinsObject::IsPrototypeOf(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dbuiltins_base_test.cpp107 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*handleNew… in HWTEST_F_L0() local
108 ecmaRuntimeCallInfo2->SetFunction(handleFunction.GetTaggedValue()); in HWTEST_F_L0()
109 ecmaRuntimeCallInfo2->SetThis(handleNewTarget.GetTaggedValue()); in HWTEST_F_L0()
110 ecmaRuntimeCallInfo2->SetCallArg(0, JSTaggedValue::Undefined()); in HWTEST_F_L0()
111 [[maybe_unused]] auto prev2 = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
113 EXPECT_TRUE(BuiltinsBase::GetConstructor(ecmaRuntimeCallInfo2)->IsJSFunction()); in HWTEST_F_L0()
114 EXPECT_TRUE(BuiltinsBase::GetNewTarget(ecmaRuntimeCallInfo2)->IsJSGlobalObject()); in HWTEST_F_L0()
115 EXPECT_TRUE(BuiltinsBase::GetCallArg(ecmaRuntimeCallInfo2, 0)->IsUndefined()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_regexp_iterator_test.cpp114 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
115 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
116 ecmaRuntimeCallInfo2->SetThis(regExpIterator.GetTaggedValue()); in HWTEST_F_L0()
118 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
119 JSTaggedValue result = JSRegExpIterator::Next(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
Djs_map_iterator_test.cpp229 …auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
230 ecmaRuntimeCallInfo2->SetThis(mapIterator.GetTaggedValue()); in HWTEST_F_L0()
231 ecmaRuntimeCallInfo2->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
232 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo2); in HWTEST_F_L0()
234 JSHandle<JSTaggedValue> nextTagValResult(thread, JSMapIterator::Next(ecmaRuntimeCallInfo2)); in HWTEST_F_L0()