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 InitializeStackConstructor(JSThread *thread)
53 auto factory = thread->GetEcmaVM()->GetFactory();
54 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv();
58 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(globalObject), key).GetValue();
59 auto objCallInfo = CreateEcmaRuntimeCallInfo(thread, 6); // 6 : means the argv length
67 JSHandle<JSAPIStack> CreateJSAPIStack(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Undefined())
69 JSHandle<JSTaggedValue> compareHandle(thread, compare);
70 JSHandle<JSFunction> newTarget(thread, InitializeStackConstructor(thread));
71 auto objCallInfo = CreateEcmaRuntimeCallInfo(thread, 6); // 6 : means the argv length
77 JSHandle<JSAPIStack> stack(thread, result);
88 auto thread = vm->GetAssociatedJSThread();
102 JSHandle<JSAPIStack> stack = CreateJSAPIStack(thread);
103 EcmaRuntimeCallInfo *callInfo = CreateEcmaRuntimeCallInfo(thread, 8); // 8 : means the argv length