• Home
  • Raw
  • Download

Lines Matching full:thread

50         TestHelper::CreateEcmaVMWithScope(instance, thread, scope);  in SetUp()
60 JSThread *thread {nullptr}; member in panda::test::BuiltinsReflectTest
64 static JSHandle<JSFunction> TestObjectCreate(JSThread *thread) in TestObjectCreate() argument
66 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in TestObjectCreate()
73 auto thread = argv->GetThread(); in TestReflectApply() local
74 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in TestReflectApply()
83 JSObject::GetProperty(thread, thisValue, in TestReflectApply()
88 JSObject::GetProperty(thread, thisValue, in TestReflectApply()
100 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
102 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
108 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
109 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArgument), in HWTEST_F_L0()
111 JSHandle<JSTaggedValue>(thread, JSTaggedValue(11))); in HWTEST_F_L0()
112 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArgument), in HWTEST_F_L0()
114 JSHandle<JSTaggedValue>(thread, JSTaggedValue(22))); in HWTEST_F_L0()
116 JSHandle<JSObject> argumentsList(JSArray::ArrayCreate(thread, JSTaggedNumber(2))); in HWTEST_F_L0()
117 PropertyDescriptor desc(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(33))); in HWTEST_F_L0()
118 …JSArray::DefineOwnProperty(thread, argumentsList, JSHandle<JSTaggedValue>(thread, JSTaggedValue(0)… in HWTEST_F_L0()
120 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(44))); in HWTEST_F_L0()
121 …JSArray::DefineOwnProperty(thread, argumentsList, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)… in HWTEST_F_L0()
123 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
130 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
134 JSObject::DeleteProperty(thread, (thisArgument), in HWTEST_F_L0()
136 JSObject::DeleteProperty(thread, (thisArgument), in HWTEST_F_L0()
138 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
144 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0()
146 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
151 JSHandle<JSObject> argumentsList(JSArray::ArrayCreate(thread, JSTaggedNumber(1))); in HWTEST_F_L0()
152 PropertyDescriptor desc(thread, in HWTEST_F_L0()
154 …JSArray::DefineOwnProperty(thread, argumentsList, JSHandle<JSTaggedValue>(thread, JSTaggedValue(0)… in HWTEST_F_L0()
156 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
162 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
166 JSHandle<JSTaggedValue> taggedResult(thread, result); in HWTEST_F_L0()
170 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
176 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
180 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
185 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
187 auto globalConst = thread->GlobalConstants(); in HWTEST_F_L0()
189 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(100)); in HWTEST_F_L0()
190 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(attributes), valueKey, value); in HWTEST_F_L0()
193 JSHandle<JSTaggedValue> writable(thread, JSTaggedValue::True()); in HWTEST_F_L0()
194 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(attributes), writableKey, writable); in HWTEST_F_L0()
197 JSHandle<JSTaggedValue> enumerable(thread, JSTaggedValue::False()); in HWTEST_F_L0()
198 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(attributes), enumerableKey, enumerable); in HWTEST_F_L0()
201 JSHandle<JSTaggedValue> configurable(thread, JSTaggedValue::True()); in HWTEST_F_L0()
202 … JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(attributes), configurableKey, configurable); in HWTEST_F_L0()
204 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
211 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
215 PropertyDescriptor descRuler(thread); in HWTEST_F_L0()
216 JSObject::GetOwnProperty(thread, target, key, descRuler); in HWTEST_F_L0()
221 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
227 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
231 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
234 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(101)); in HWTEST_F_L0()
235 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(target), key, value); in HWTEST_F_L0()
237 PropertyDescriptor desc(thread); in HWTEST_F_L0()
238 ASSERT_EQ(JSObject::GetOwnProperty(thread, target, key, desc), true); in HWTEST_F_L0()
240 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
246 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
249 ASSERT_EQ(JSObject::GetOwnProperty(thread, target, key, desc), false); in HWTEST_F_L0()
250 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
256 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
260 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
264 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(101.5)); in HWTEST_F_L0()
265 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(target), key, value); in HWTEST_F_L0()
267 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
273 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
276 JSHandle<JSTaggedValue> resultValue(thread, result); in HWTEST_F_L0()
278 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
284 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
288 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
291 …PropertyDescriptor desc(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(102)), true, false, … in HWTEST_F_L0()
292 …ASSERT_EQ(JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(target), key, desc)… in HWTEST_F_L0()
294 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
300 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
305 JSHandle<JSTaggedValue> resultObj(thread, result); in HWTEST_F_L0()
307 auto globalConst = thread->GlobalConstants(); in HWTEST_F_L0()
309 …JSHandle<JSTaggedValue> resultValue = JSObject::GetProperty(thread, resultObj, valueKey).GetValue(… in HWTEST_F_L0()
313 …JSHandle<JSTaggedValue> resultWritable = JSObject::GetProperty(thread, resultObj, writableKey).Get… in HWTEST_F_L0()
317 …JSHandle<JSTaggedValue> resultEnumerable = JSObject::GetProperty(thread, resultObj, enumerableKey)… in HWTEST_F_L0()
321 …JSHandle<JSTaggedValue> resultConfigurable = JSObject::GetProperty(thread, resultObj, configurable… in HWTEST_F_L0()
323 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
329 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
332 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
334 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
336 ASSERT_EQ(JSObject::SetPrototype(thread, target, JSHandle<JSTaggedValue>(proto)), true); in HWTEST_F_L0()
338 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
343 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
346 …JSHandle<JSTaggedValue> resultObj(thread, JSTaggedValue(reinterpret_cast<TaggedObject *>(result.Ge… in HWTEST_F_L0()
348 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
354 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
358 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
361 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(103)); in HWTEST_F_L0()
362 ASSERT_EQ(JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(target), key, value), true); in HWTEST_F_L0()
364 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
370 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
374 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
380 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
384 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
387 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
392 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
396 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
402 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
406 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
408 JSHandle<JSTaggedValue> value0(thread, JSTaggedValue(104)); in HWTEST_F_L0()
409 ASSERT_EQ(JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(target), key0, value0), true); in HWTEST_F_L0()
411 JSHandle<JSTaggedValue> value1(thread, JSTaggedValue(105)); in HWTEST_F_L0()
412 ASSERT_EQ(JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(target), key1, value1), true); in HWTEST_F_L0()
414 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
419 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
423 …JSHandle<JSTaggedValue> resultTaggedValue(thread, reinterpret_cast<TaggedObject *>(result.GetRawDa… in HWTEST_F_L0()
426 JSHandle<JSTaggedValue> resultLengthKey = thread->GlobalConstants()->GetHandledLengthString(); in HWTEST_F_L0()
428 … JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(resultArray), resultLengthKey).GetValue(); in HWTEST_F_L0()
431 JSHandle<JSTaggedValue> resultKey0(thread, JSTaggedValue(0)); in HWTEST_F_L0()
433 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(resultArray), resultKey0).GetValue(); in HWTEST_F_L0()
439 JSHandle<JSTaggedValue> resultKey1(thread, JSTaggedValue(1)); in HWTEST_F_L0()
441 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(resultArray), resultKey1).GetValue(); in HWTEST_F_L0()
446 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
452 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
456 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
459 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
464 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
469 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
475 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
479 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
483 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(106)); in HWTEST_F_L0()
485 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
492 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
497 …JSHandle<JSTaggedValue> ruler = JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(target), key… in HWTEST_F_L0()
498 ASSERT_EQ(JSTaggedValue::ToInt32(thread, ruler), 106); in HWTEST_F_L0()
499 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()
505 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
508 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
510 …tory->NewJSObjectByConstructor(TestObjectCreate(thread), JSHandle<JSTaggedValue>(TestObjectCreate( in HWTEST_F_L0()
512 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
518 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in HWTEST_F_L0()
522 JSHandle<JSTaggedValue> resultObj(thread, target->GetJSHClass()->GetPrototype()); in HWTEST_F_L0()
524 TestHelper::TearDownFrame(thread, prev); in HWTEST_F_L0()