Lines Matching defs:thread
32 JSFunction *JSObjectCreate(JSThread *thread)
34 EcmaVM *ecmaVM = thread->GetEcmaVM();
39 EcmaRuntimeCallInfo *CreateEcmaRuntimeCallInfo(JSThread *thread, uint32_t numArgs)
41 auto factory = thread->GetEcmaVM()->GetFactory();
42 JSHandle<JSTaggedValue> hclass(thread, JSObjectCreate(thread));
44 JSHandle<JSTaggedValue> undefined = thread->GlobalConstants()->GetHandledUndefined();
46 EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, callee, undefined, numArgs);
50 JSTaggedValue InitializeTreeSetConstructor(JSThread *thread)
52 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
53 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv();
58 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(globalObject), key).GetValue();
60 auto objCallInfo = CreateEcmaRuntimeCallInfo(thread, 6);
68 JSHandle<JSAPITreeSet> CreateJSAPITreeSet(JSThread *thread)
70 JSHandle<JSFunction> newTarget(thread, InitializeTreeSetConstructor(thread));
71 auto objCallInfo = CreateEcmaRuntimeCallInfo(thread, 6);
77 JSHandle<JSAPITreeSet> set(thread, result);
88 JSThread *thread = vm->GetJSThread();
102 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread);
103 auto callInfo = CreateEcmaRuntimeCallInfo(thread, 6);
109 auto objCallInfo = CreateEcmaRuntimeCallInfo(thread, 6);