Lines Matching defs:thread
33 JSFunction *JSObjectCreate(JSThread *thread)
35 EcmaVM *ecmaVM = thread->GetEcmaVM();
40 EcmaRuntimeCallInfo *CreateEcmaRuntimeCallInfo(JSThread *thread, uint32_t numArgs)
42 auto factory = thread->GetEcmaVM()->GetFactory();
43 JSHandle<JSTaggedValue> hclass(thread, JSObjectCreate(thread));
45 JSHandle<JSTaggedValue> undefined = thread->GlobalConstants()->GetHandledUndefined();
47 EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, callee, undefined, numArgs);
51 JSTaggedValue InitializeLightWeightSetConstructor(JSThread *thread)
53 auto factory = thread->GetEcmaVM()->GetFactory();
54 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv();
58 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(globalObject), key).GetValue();
60 auto objCallInfo = CreateEcmaRuntimeCallInfo(thread, 6); // 6 : means the argv length
69 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread)
71 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightSetConstructor(thread));
72 auto objCallInfo = CreateEcmaRuntimeCallInfo(thread, 4);
77 JSHandle<JSAPILightWeightSet> map(thread, result);
88 auto thread = vm->GetAssociatedJSThread();
102 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread);
103 EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 6); // 6 : means the argv length