Lines Matching defs:thread
47 EcmaRuntimeCallInfo *CreateEcmaRuntimeCallInfo(JSThread *thread, JSTaggedValue newTgt, uint32_t argvLength)
51 JSTaggedType *sp = const_cast<JSTaggedType *>(thread->GetCurrentSPFrame());
54 if (thread->IsAsmInterpreter()) {
65 *(--newSp) = panda::ecmascript::ToUintPtr(thread);
70 static JSTaggedType *SetupFrame(JSThread *thread, EcmaRuntimeCallInfo *info)
72 JSTaggedType *sp = const_cast<JSTaggedType *>(thread->GetCurrentSPFrame());
75 // 2 means thread and numArgs
76 if (thread->IsAsmInterpreter()) {
87 thread->SetCurrentSPFrame(newSp);
91 void TearDownFrame(JSThread *thread, JSTaggedType *prev)
93 thread->SetCurrentSPFrame(prev);
96 JSHandle<JSAPIHashMap> ConstructobjectHashMap(JSThread *thread)
98 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
99 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv();
104 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(globalObject), key).GetValue();
105 auto objCallInfo = CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6);
109 [[maybe_unused]] auto prev = SetupFrame(thread, objCallInfo);
111 TearDownFrame(thread, prev);
112 JSHandle<JSTaggedValue> constructor(thread, result);
129 auto thread = vm->GetAssociatedJSThread();
130 JSHandle<JSAPIHashMap> map = ConstructobjectHashMap(thread);