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 InitializeLightWeightMapConstructor(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<JSAPILightWeightMap> CreateJSAPILightWeightMap(JSThread *thread)
71 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightMapConstructor(thread));
72 auto objCallInfo = CreateEcmaRuntimeCallInfo(thread, 4);
78 JSHandle<JSAPILightWeightMap> map(thread, result);
89 auto thread = vm->GetAssociatedJSThread();
103 JSHandle<JSAPILightWeightMap> lightWeightMap = CreateJSAPILightWeightMap(thread);
105 EcmaRuntimeCallInfo *callInfo1 = CreateEcmaRuntimeCallInfo(thread, 8);