Lines Matching defs:thread

47         TestHelper::CreateEcmaVMWithScope(instance, thread, scope);
57 JSThread *thread {nullptr};
63 JSThread *thread = argv->GetThread();
69 JSAPILightWeightMap::Set(thread, jsTreeMap, key, value);
76 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
77 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv();
81 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(globalObject), key).GetValue();
83 TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6); // 6 means the value
88 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, objCallInfo);
90 TestHelper::TearDownFrame(thread, prev);
97 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightMapConstructor());
99 TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 4);
104 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, objCallInfo);
106 TestHelper::TearDownFrame(thread, prev);
107 JSHandle<JSAPILightWeightMap> map(thread, result);
115 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightMapConstructor());
117 auto objCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 4);
122 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, objCallInfo);
124 TestHelper::TearDownFrame(thread, prev);
127 JSHandle<JSAPILightWeightMap> mapHandle(thread, result);
128 JSTaggedValue resultProto = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(mapHandle));
142 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8);
148 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
151 TestHelper::TearDownFrame(thread, prev);
156 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
157 JSMutableHandle<JSTaggedValue> key(thread, JSTaggedValue::Undefined());
158 JSMutableHandle<JSTaggedValue> value(thread, JSTaggedValue::Undefined());
167 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8);
172 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
174 TestHelper::TearDownFrame(thread, prev);
181 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6);
186 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
188 TestHelper::TearDownFrame(thread, prev);
198 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6);
202 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
204 TestHelper::TearDownFrame(thread, prev);
214 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8);
220 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
223 TestHelper::TearDownFrame(thread, prev);
229 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6);
234 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
236 TestHelper::TearDownFrame(thread, prev);
243 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6);
247 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
249 TestHelper::TearDownFrame(thread, prev);
259 prev = TestHelper::SetupFrame(thread, callInfo);
261 TestHelper::TearDownFrame(thread, prev);
275 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8);
281 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
283 TestHelper::TearDownFrame(thread, prev);
290 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 4);
294 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
296 TestHelper::TearDownFrame(thread, prev);
308 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8);
314 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
316 TestHelper::TearDownFrame(thread, prev);
323 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
324 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 4);
328 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
330 JSHandle<JSTaggedValue> resHandle(thread, res);
331 TestHelper::TearDownFrame(thread, prev);
333 JSHandle<JSTaggedValue> expectResHandle(thread, factory->NewFromStdString(myString).GetTaggedValue());
334 EXPECT_TRUE(JSTaggedValue::Equal(thread, resHandle, expectResHandle));
344 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8);
350 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
352 TestHelper::TearDownFrame(thread, prev);
360 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6);
365 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
367 TestHelper::TearDownFrame(thread, prev);
373 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6);
377 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
379 TestHelper::TearDownFrame(thread, prev);
382 prev = TestHelper::SetupFrame(thread, callInfo);
384 TestHelper::TearDownFrame(thread, prev);
394 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8);
400 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
402 TestHelper::TearDownFrame(thread, prev);
408 JSMutableHandle<JSTaggedValue> result(thread, JSTaggedValue::Undefined());
409 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 4);
413 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
414 JSHandle<JSTaggedValue> iterKeys(thread, ContainersLightWeightMap::Keys(callInfo));
415 TestHelper::TearDownFrame(thread, prev);
418 callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 4);
422 prev = TestHelper::SetupFrame(thread, callInfo);
424 TestHelper::TearDownFrame(thread, prev);
425 JSHandle<JSTaggedValue> keyHandle = JSIterator::IteratorValue(thread, result);
427 callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6);
432 prev = TestHelper::SetupFrame(thread, callInfo);
434 TestHelper::TearDownFrame(thread, prev);
439 callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 4);
442 prev = TestHelper::SetupFrame(thread, callInfo);
443 JSHandle<JSTaggedValue> iterValues(thread, ContainersLightWeightMap::Values(callInfo));
444 TestHelper::TearDownFrame(thread, prev);
448 callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 4);
452 prev = TestHelper::SetupFrame(thread, callInfo);
454 TestHelper::TearDownFrame(thread, prev);
455 JSHandle<JSTaggedValue> ValueHandle = JSIterator::IteratorValue(thread, result);
457 callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6);
462 prev = TestHelper::SetupFrame(thread, callInfo);
464 TestHelper::TearDownFrame(thread, prev);
468 callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 4);
471 prev = TestHelper::SetupFrame(thread, callInfo);
472 JSHandle<JSTaggedValue> iter(thread, ContainersLightWeightMap::Entries(callInfo));
473 TestHelper::TearDownFrame(thread, prev);
476 JSHandle<JSTaggedValue> first(thread, JSTaggedValue(0));
477 JSHandle<JSTaggedValue> second(thread, JSTaggedValue(1));
478 JSMutableHandle<JSTaggedValue> entries(thread, JSTaggedValue::Undefined());
480 callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 4);
484 prev = TestHelper::SetupFrame(thread, callInfo);
486 TestHelper::TearDownFrame(thread, prev);
487 entries.Update(JSIterator::IteratorValue(thread, result).GetTaggedValue());
489 int entriesKey = JSObject::GetProperty(thread, entries, first).GetValue()->GetInt();
490 callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6);
494 prev = TestHelper::SetupFrame(thread, callInfo);
496 TestHelper::TearDownFrame(thread, prev);
499 int entriesValue = JSObject::GetProperty(thread, entries, second).GetValue()->GetInt();
500 callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6);
504 prev = TestHelper::SetupFrame(thread, callInfo);
506 TestHelper::TearDownFrame(thread, prev);
517 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8);
523 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
525 TestHelper::TearDownFrame(thread, prev);
530 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
533 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv();
535 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8);
541 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
543 TestHelper::TearDownFrame(thread, prev);
550 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6);
555 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
557 TestHelper::TearDownFrame(thread, prev);
566 auto callInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8);
568 JSHandle<JSProxy> proxy = CreateJSProxyHandle(thread);
569 proxy->SetTarget(thread, lightWeightMap.GetTaggedValue());
575 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, callInfo);
577 TestHelper::TearDownFrame(thread, prev);
579 [[maybe_unused]] auto prev1 = TestHelper::SetupFrame(thread, callInfo);
581 TestHelper::TearDownFrame(thread, prev1);
600 auto callInfo = NewEmptyCallInfo(thread);
605 auto callInfo = NewEmptyCallInfo(thread);
628 auto callInfo = NewEmptyCallInfo(thread);
633 auto callInfo = NewEmptyCallInfo(thread);
638 auto callInfo = NewEmptyCallInfo(thread);
643 auto callInfo = NewEmptyCallInfo(thread);
648 auto callInfo = NewEmptyCallInfo(thread);