Lines Matching defs:thread
36 JSHandle<JSObject> BuiltinsTestProxyCreate(JSThread *thread)
38 EcmaVM *ecmaVM = thread->GetEcmaVM();
41 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
50 JSHandle<JSObject> target = BuiltinsTestProxyCreate(thread);
51 JSHandle<JSObject> handler = BuiltinsTestProxyCreate(thread);
53 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Null(), 8);
59 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo);
62 JSHandle<JSTaggedValue> resultHandle(thread, result);
64 TestHelper::TearDownFrame(thread, prev);
70 JSHandle<JSObject> target = BuiltinsTestProxyCreate(thread);
71 JSHandle<JSObject> handler = BuiltinsTestProxyCreate(thread);
73 JSHandle<GlobalEnv> globalEnv = thread->GetEcmaVM()->GetGlobalEnv();
75 JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromASCII("prop"));
76 PropertyDescriptor desc(thread);
78 JSObject::DefineOwnProperty(thread, handler, key, desc);
80 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), 8);
87 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo);
90 JSHandle<JSObject> resultHandle(thread, result);
92 auto globalConst = thread->GlobalConstants();
96 JSHandle<TaggedArray> keys = JSObject::GetOwnPropertyKeys(thread, resultHandle);
110 PropertyDescriptor descRes(thread);
111 JSObject::GetOwnProperty(thread, resultHandle, revokeKey, descRes);
113 TestHelper::TearDownFrame(thread, prev);