Lines Matching defs:thread

50     EXPECT_TRUE(thread->HasPendingException());      \
51 EXPECT_TRUE(thread->GetException().IsJSError()); \
52 thread->ClearException()
56 static EcmaRuntimeCallInfo* CreateEcmaRuntimeCallInfo(JSThread *thread, JSTaggedValue newTgt, uint32_t argvLength)
62 JSTaggedType *sp = const_cast<JSTaggedType *>(thread->GetCurrentSPFrame());
65 if (thread->IsAsmInterpreter()) {
76 *(--newSp) = panda::ecmascript::ToUintPtr(thread);
81 static JSTaggedType *SetupFrame(JSThread *thread, EcmaRuntimeCallInfo *info)
83 JSTaggedType *sp = const_cast<JSTaggedType *>(thread->GetCurrentSPFrame());
85 if (thread->IsAsmInterpreter()) {
86 // 2 means thread and numArgs
89 // 2 means thread and numArgs
98 thread->SetCurrentSPFrame(newSp);
102 static void TearDownFrame(JSThread *thread, JSTaggedType *prev)
104 thread->SetCurrentSPFrame(prev);
108 static void CreateEcmaVMWithScope(EcmaVM *&instance, JSThread *&thread, EcmaHandleScope *&scope,
122 thread = instance->GetJSThread();
124 thread->ManagedCodeBegin();
126 scope = new EcmaHandleScope(thread);
140 static EcmaRuntimeCallInfo* CreateEcmaRuntimeCallInfo(JSThread *thread, std::vector<JSTaggedValue>& args,
143 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue::Undefined(), maxArgLen);
152 static EcmaRuntimeCallInfo* CreateEcmaRuntimeCallInfo(JSThread *thread, JSHandle<JSFunction>& newTarget,
155 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget), maxArgLen);
188 TestHelper::CreateEcmaVMWithScope(instance, thread, scope);
199 thread = instance->GetJSThread();
200 thread->ManagedCodeBegin();
201 scope = new EcmaHandleScope(thread);
212 JSThread *thread {nullptr};