Home
last modified time | relevance | path

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

/ark/js_runtime/ecmascript/builtins/tests/
Dbuiltins_array_test.cpp173 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
174 ecmaRuntimeCallInfo1->SetFunction(array.GetTaggedValue()); in HWTEST_F_L0()
175 ecmaRuntimeCallInfo1->SetThis(globalObject.GetTaggedValue()); in HWTEST_F_L0()
176 ecmaRuntimeCallInfo1->SetCallArg(0, JSTaggedValue(static_cast<int32_t>(1))); in HWTEST_F_L0()
177 ecmaRuntimeCallInfo1->SetCallArg(1, JSTaggedValue(static_cast<int32_t>(3))); in HWTEST_F_L0()
178 ecmaRuntimeCallInfo1->SetCallArg(2, JSTaggedValue(static_cast<int32_t>(5))); in HWTEST_F_L0()
180 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
181 JSTaggedValue result = Array::ArrayConstructor(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
223 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
224 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
[all …]
Dbuiltins_promise_test.cpp136 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*promise),… in HWTEST_F_L0() local
137 ecmaRuntimeCallInfo1->SetFunction(promise.GetTaggedValue()); in HWTEST_F_L0()
138 ecmaRuntimeCallInfo1->SetThis(promise.GetTaggedValue()); in HWTEST_F_L0()
139 ecmaRuntimeCallInfo1->SetCallArg(0, paramMsg.GetTaggedValue()); in HWTEST_F_L0()
144 [[maybe_unused]] auto prevReject = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
145 JSTaggedValue result = BuiltinsPromise::Reject(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
183 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, promise.GetTaggedValue()… in HWTEST_F_L0() local
184 ecmaRuntimeCallInfo1->SetFunction(promise.GetTaggedValue()); in HWTEST_F_L0()
185 ecmaRuntimeCallInfo1->SetThis(promise.GetTaggedValue()); in HWTEST_F_L0()
186 ecmaRuntimeCallInfo1->SetCallArg(0, promise1.GetTaggedValue()); in HWTEST_F_L0()
[all …]
Dbuiltins_map_test.cpp125 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
126 ecmaRuntimeCallInfo1->SetFunction(newTarget.GetTaggedValue()); in HWTEST_F_L0()
127 ecmaRuntimeCallInfo1->SetThis(map.GetTaggedValue()); in HWTEST_F_L0()
128 ecmaRuntimeCallInfo1->SetCallArg(0, values.GetTaggedValue()); in HWTEST_F_L0()
129 ecmaRuntimeCallInfo1->SetNewTarget(newTarget.GetTaggedValue()); in HWTEST_F_L0()
131 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
132 JSTaggedValue result1 = BuiltinsMap::MapConstructor(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
167 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
168 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
169 ecmaRuntimeCallInfo1->SetThis(JSTaggedValue(jsMap)); in HWTEST_F_L0()
[all …]
Dbuiltins_set_test.cpp122 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
123 ecmaRuntimeCallInfo1->SetFunction(newTarget.GetTaggedValue()); in HWTEST_F_L0()
124 ecmaRuntimeCallInfo1->SetThis(set.GetTaggedValue()); in HWTEST_F_L0()
125 ecmaRuntimeCallInfo1->SetCallArg(0, values.GetTaggedValue()); in HWTEST_F_L0()
126 ecmaRuntimeCallInfo1->SetNewTarget(newTarget.GetTaggedValue()); in HWTEST_F_L0()
128 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
129 JSTaggedValue result1 = BuiltinsSet::SetConstructor(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
159 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
160 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
161 ecmaRuntimeCallInfo1->SetThis(JSTaggedValue(jsSet)); in HWTEST_F_L0()
[all …]
Dbuiltins_dataview_test.cpp183 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
184 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
185 ecmaRuntimeCallInfo1->SetThis(view.GetTaggedValue()); in HWTEST_F_L0()
186 ecmaRuntimeCallInfo1->SetCallArg(0, JSTaggedValue(0)); in HWTEST_F_L0()
187 ecmaRuntimeCallInfo1->SetCallArg(1, JSTaggedValue::True()); in HWTEST_F_L0()
189 JSTaggedValue result1 = BuiltinsDataView::GetUint16(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
209 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
210 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
211 ecmaRuntimeCallInfo1->SetThis(view.GetTaggedValue()); in HWTEST_F_L0()
212 ecmaRuntimeCallInfo1->SetCallArg(0, JSTaggedValue(0)); in HWTEST_F_L0()
[all …]
Dbuiltins_weak_map_test.cpp152 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
153 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
154 ecmaRuntimeCallInfo1->SetCallArg(0, key.GetTaggedValue()); in HWTEST_F_L0()
155 ecmaRuntimeCallInfo1->SetCallArg(1, JSTaggedValue(static_cast<int32_t>(1))); in HWTEST_F_L0()
156 ecmaRuntimeCallInfo1->SetThis(JSTaggedValue(jsWeakMap)); in HWTEST_F_L0()
158 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
159 JSTaggedValue result3 = BuiltinsWeakMap::Has(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
191 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
192 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
193 ecmaRuntimeCallInfo1->SetThis(weakMap.GetTaggedValue()); in HWTEST_F_L0()
[all …]
Dbuiltins_weak_set_test.cpp148 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
149 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
150 ecmaRuntimeCallInfo1->SetThis(JSTaggedValue(jsWeakSet)); in HWTEST_F_L0()
151 ecmaRuntimeCallInfo1->SetCallArg(0, key.GetTaggedValue()); in HWTEST_F_L0()
153 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
154 JSTaggedValue result3 = BuiltinsWeakSet::Has(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
185 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
186 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
187 ecmaRuntimeCallInfo1->SetThis(weakSet.GetTaggedValue()); in HWTEST_F_L0()
188 ecmaRuntimeCallInfo1->SetCallArg(0, lastKey); in HWTEST_F_L0()
[all …]
Dbuiltins_typedarray_test.cpp199 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in CreateTypedArrayFromList() local
200 ecmaRuntimeCallInfo1->SetNewTarget(JSTaggedValue(*int8_array)); in CreateTypedArrayFromList()
201 ecmaRuntimeCallInfo1->SetThis(JSTaggedValue(*globalObject)); in CreateTypedArrayFromList()
202 ecmaRuntimeCallInfo1->SetCallArg(0, jsarray.GetTaggedValue()); in CreateTypedArrayFromList()
204 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in CreateTypedArrayFromList()
205 JSTaggedValue result = TypedArray::Int8ArrayConstructor(ecmaRuntimeCallInfo1.get()); in CreateTypedArrayFromList()
220 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
221 ecmaRuntimeCallInfo1->SetFunction(array.GetTaggedValue()); in HWTEST_F_L0()
222 ecmaRuntimeCallInfo1->SetThis(globalObject.GetTaggedValue()); in HWTEST_F_L0()
224 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
[all …]
Dbuiltins_date_test.cpp517 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
518 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
519 ecmaRuntimeCallInfo1->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0()
520 ecmaRuntimeCallInfo1->SetCallArg(0, JSTaggedValue(2020.982)); in HWTEST_F_L0()
521 ecmaRuntimeCallInfo1->SetCallArg(1, JSTaggedValue(10.23)); in HWTEST_F_L0()
522 ecmaRuntimeCallInfo1->SetCallArg(2, JSTaggedValue(4.32)); in HWTEST_F_L0()
523 ecmaRuntimeCallInfo1->SetCallArg(3, JSTaggedValue(11.32)); in HWTEST_F_L0()
524 ecmaRuntimeCallInfo1->SetCallArg(4, JSTaggedValue(45.1)); in HWTEST_F_L0()
525 ecmaRuntimeCallInfo1->SetCallArg(5, JSTaggedValue(34.321)); in HWTEST_F_L0()
526 ecmaRuntimeCallInfo1->SetCallArg(6, JSTaggedValue(static_cast<int32_t>(231))); in HWTEST_F_L0()
[all …]
Dbuiltins_arraybuffer_test.cpp119 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
120 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
121 ecmaRuntimeCallInfo1->SetThis(arrBuf1.GetTaggedValue()); in HWTEST_F_L0()
122 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
123 JSTaggedValue result2 = BuiltinsArrayBuffer::GetByteLength(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
Dbuiltins_symbol_test.cpp223 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
224 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
225 ecmaRuntimeCallInfo1->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0()
226 ecmaRuntimeCallInfo1->SetCallArg(0, string.GetTaggedValue()); in HWTEST_F_L0()
228 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
229 BuiltinsSymbol::For(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
Dbuiltins_function_test.cpp407 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*booleanCt… in HWTEST_F_L0() local
408 ecmaRuntimeCallInfo1->SetFunction(booleanCtor.GetTaggedValue()); in HWTEST_F_L0()
409 ecmaRuntimeCallInfo1->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0()
410 ecmaRuntimeCallInfo1->SetCallArg(0, JSTaggedValue(static_cast<int32_t>(123))); in HWTEST_F_L0()
412 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
413 JSTaggedValue result = BuiltinsBoolean::BooleanConstructor(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
Dbuiltins_json_test.cpp529 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
530 ecmaRuntimeCallInfo1->SetNewTarget(JSTaggedValue(*int8Func)); in HWTEST_F_L0()
531 ecmaRuntimeCallInfo1->SetThis(JSTaggedValue(*globalObject)); in HWTEST_F_L0()
532 ecmaRuntimeCallInfo1->SetCallArg(0, jsArray.GetTaggedValue()); in HWTEST_F_L0()
534 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
535 …ggedValue> int8Array(thread, BuiltinsTypedArray::Int8ArrayConstructor(ecmaRuntimeCallInfo1.get())); in HWTEST_F_L0()
Dbuiltins_object_test.cpp762 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
763 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
764 ecmaRuntimeCallInfo1->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0()
765 ecmaRuntimeCallInfo1->SetCallArg(0, obj.GetTaggedValue()); in HWTEST_F_L0()
766 ecmaRuntimeCallInfo1->SetCallArg(1, objFather.GetTaggedValue()); in HWTEST_F_L0()
768 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
769 JSTaggedValue result1 = BuiltinsObject::SetPrototypeOf(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
Dbuiltins_string_test.cpp948 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
949 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
950 ecmaRuntimeCallInfo1->SetThis(thisStr.GetTaggedValue()); in HWTEST_F_L0()
951 ecmaRuntimeCallInfo1->SetCallArg(0, searchStr.GetTaggedValue()); in HWTEST_F_L0()
952 ecmaRuntimeCallInfo1->SetCallArg(1, replaceStr1.GetTaggedValue()); in HWTEST_F_L0()
954 prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
955 JSTaggedValue result1 = BuiltinsString::Replace(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
/ark/js_runtime/ecmascript/base/tests/
Dbuiltins_base_test.cpp92 …auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined… in HWTEST_F_L0() local
93 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
94 ecmaRuntimeCallInfo1->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0()
95 ecmaRuntimeCallInfo1->SetCallArg(0, JSTaggedValue(ArgsPosition::FIRST)); in HWTEST_F_L0()
96 ecmaRuntimeCallInfo1->SetCallArg(1, JSTaggedValue(ArgsPosition::SECOND)); in HWTEST_F_L0()
97 ecmaRuntimeCallInfo1->SetCallArg(2, JSTaggedValue(ArgsPosition::FOURTH)); in HWTEST_F_L0()
98 [[maybe_unused]] auto prev1 = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
100 EXPECT_TRUE(BuiltinsBase::GetConstructor(ecmaRuntimeCallInfo1.get())->IsUndefined()); in HWTEST_F_L0()
101 EXPECT_TRUE(BuiltinsBase::GetNewTarget(ecmaRuntimeCallInfo1.get())->IsUndefined()); in HWTEST_F_L0()
102 … EXPECT_EQ(BuiltinsBase::GetCallArg(ecmaRuntimeCallInfo1.get(), 0)->GetInt(), ArgsPosition::FIRST); in HWTEST_F_L0()
[all …]