Lines Matching defs:thread
65 EcmaRuntimeCallInfo *CreateEcmaRuntimeCallInfo(JSThread *thread, JSTaggedValue newTgt, uint32_t argvLength)
69 JSTaggedType *sp = const_cast<JSTaggedType *>(thread->GetCurrentSPFrame());
72 if (thread->IsAsmInterpreter()) {
83 *(--newSp) = panda::ecmascript::ToUintPtr(thread);
88 static JSTaggedType *SetupFrame(JSThread *thread, EcmaRuntimeCallInfo *info)
90 JSTaggedType *sp = const_cast<JSTaggedType *>(thread->GetCurrentSPFrame());
93 // 2 means thread and numArgs
94 if (thread->IsAsmInterpreter()) {
105 thread->SetCurrentSPFrame(newSp);
109 void TearDownFrame(JSThread *thread, JSTaggedType *prev)
111 thread->SetCurrentSPFrame(prev);
114 JSHandle<JSAPIHashSet> ConstructobjectHashSet(JSThread *thread)
116 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
117 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv();
121 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(globalObject), key).GetValue();
122 auto objCallInfo1 = CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 6);
126 [[maybe_unused]] auto prev1 = SetupFrame(thread, objCallInfo1);
128 JSHandle<JSFunction> newTarget(thread, result1);
129 auto objCallInfo = CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 4);
133 [[maybe_unused]] auto prev = SetupFrame(thread, objCallInfo);
135 TearDownFrame(thread, prev);
136 JSHandle<JSAPIHashSet> setHandle(thread, result);
151 auto thread = vm->GetAssociatedJSThread();
152 JSHandle<JSAPIHashSet> setHandle = ConstructobjectHashSet(thread);