Lines Matching defs:thread
34 JSFunction *JSObjectCreate(JSThread *thread)
36 EcmaVM *ecmaVM = thread->GetEcmaVM();
41 EcmaRuntimeCallInfo *CreateEcmaRuntimeCallInfo(JSThread *thread, uint32_t numArgs)
43 auto factory = thread->GetEcmaVM()->GetFactory();
44 JSHandle<JSTaggedValue> hclass(thread, JSObjectCreate(thread));
46 JSHandle<JSTaggedValue> undefined = thread->GlobalConstants()->GetHandledUndefined();
48 EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, callee, undefined, numArgs);
51 JSTaggedValue InitializeHashSetConstructor(JSThread *thread)
53 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
54 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv();
59 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(globalObject), key).GetValue();
61 auto objCallInfo = CreateEcmaRuntimeCallInfo(thread, 6);
69 JSHandle<JSAPIHashSet> CreateJSAPIHashSet(JSThread *thread)
71 JSHandle<JSFunction> newTarget(thread, InitializeHashSetConstructor(thread));
72 auto objCallInfo = CreateEcmaRuntimeCallInfo(thread, 4);
78 JSHandle<JSAPIHashSet> map(thread, result);
89 auto thread = vm->GetAssociatedJSThread();
103 JSHandle<JSAPIHashSet> hashSet = CreateJSAPIHashSet(thread);
104 EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 6);
110 EcmaRuntimeCallInfo *callInfoIsEmpty = CreateEcmaRuntimeCallInfo(thread, 6);