Lines Matching refs:thread_
51 : thread_(thread), in EcmaContext()
92 [[maybe_unused]] EcmaHandleScope scope(thread_); in Initialize()
103 thread_->SetGlobalConst(&globalConst_); in Initialize()
104 globalConst_.Init(thread_, *hClassHandle); in Initialize()
106 thread_->SetArrayHClassIndexMap(arrayHClassIndexMaps); in Initialize()
109 globalEnv->Init(thread_); in Initialize()
113 thread_->SetEnableLazyBuiltins(builtinsLazyEnabled); in Initialize()
114 builtins.Initialize(globalEnv, thread_, builtinsLazyEnabled); in Initialize()
257 return JSFunction::InvokeOptimizedEntrypoint(thread_, mainFunc, thisArg, entryPoint, cjsInfo); in InvokeEcmaAotEntrypoint()
263 INTERPRETER_TRACE(thread_, ExecuteAot); in ExecuteAot()
264 auto entry = thread_->GetRTInterface(kungfu::RuntimeStubCSigns::ID_JSFunctionEntry); in ExecuteAot()
267 auto res = reinterpret_cast<JSFunctionEntryType>(entry)(thread_->GetGlueAddr(), in ExecuteAot()
278 JSHandle<Method> method(thread_, func->GetMethod()); in CommonInvokeEcmaEntrypoint()
280 JSHandle<JSTaggedValue> undefined = thread_->GlobalConstants()->GetHandledUndefined(); in CommonInvokeEcmaEntrypoint()
287 THROW_REFERENCE_ERROR_AND_RETURN(thread_, msg.c_str(), Unexpected(false)); in CommonInvokeEcmaEntrypoint()
296 method->SetModule(thread_, module); in CommonInvokeEcmaEntrypoint()
301 method->SetModule(thread_, recordName); in CommonInvokeEcmaEntrypoint()
315 … result = JSFunction::InvokeOptimizedEntrypoint(thread_, func, global, entryPoint, nullptr); in CommonInvokeEcmaEntrypoint()
318 … EcmaInterpreter::NewRuntimeCallInfo(thread_, JSHandle<JSTaggedValue>(func), global, undefined, 0); in CommonInvokeEcmaEntrypoint()
323 if (!thread_->HasPendingException()) { in CommonInvokeEcmaEntrypoint()
324 job::MicroJobQueue::ExecutePendingJob(thread_, GetMicroJobQueue()); in CommonInvokeEcmaEntrypoint()
333 [[maybe_unused]] EcmaHandleScope scope(thread_); in InvokeEcmaEntrypoint()
343 JSHandle<JSFunction> func(thread_, program->GetMainFunction()); in InvokeEcmaEntrypoint()
347 if (!excuteFromJob && thread_->HasPendingException()) { in InvokeEcmaEntrypoint()
348 HandleUncaughtException(thread_->GetException()); in InvokeEcmaEntrypoint()
356 [[maybe_unused]] EcmaHandleScope scope(thread_); in InvokeEcmaEntrypointForHotReload()
359 JSHandle<JSFunction> func(thread_, program->GetMainFunction()); in InvokeEcmaEntrypointForHotReload()
362 JSHandle<JSTaggedValue> finalModuleRecord(thread_, func->GetModule()); in InvokeEcmaEntrypointForHotReload()
364 GlobalHandleCollection gloalHandleCollection(thread_); in InvokeEcmaEntrypointForHotReload()
371 if (!excuteFromJob && thread_->HasPendingException() && in InvokeEcmaEntrypointForHotReload()
373 HandleUncaughtException(thread_->GetException()); in InvokeEcmaEntrypointForHotReload()
385 JSMutableHandle<JSTaggedValue> filename(thread_, JSTaggedValue::Undefined()); in CJSExecution()
386 JSMutableHandle<JSTaggedValue> dirname(thread_, JSTaggedValue::Undefined()); in CJSExecution()
388 ModulePathHelper::ResolveCurrentPath(thread_, dirname, filename, jsPandaFile); in CJSExecution()
393 dirname.Update(PathHelper::ResolveDirPath(thread_, fullName)); in CJSExecution()
396 RequireManager::InitializeCommonJS(thread_, cjsInfo); in CJSExecution()
403 JSHandle<JSTaggedValue> undefined = thread_->GlobalConstants()->GetHandledUndefined(); in CJSExecution()
405 EcmaInterpreter::NewRuntimeCallInfo(thread_, in CJSExecution()
408 RETURN_IF_ABRUPT_COMPLETION(thread_); in CJSExecution()
421 if (!thread_->HasPendingException()) { in CJSExecution()
422 …job::MicroJobQueue::ExecutePendingJob(thread_, thread_->GetCurrentEcmaContext()->GetMicroJobQueue(… in CJSExecution()
425 if (!thread_->HasPendingException()) { in CJSExecution()
427 RequireManager::CollectExecutedExp(thread_, cjsInfo); in CJSExecution()
492 return JSHandle<ConstantPool>(thread_, constpool); in FindOrCreateConstPool()
522 thread_->ClearException(); // clear for ohos app in GetAndClearEcmaUncaughtException()
596 if (!thread_->HasPendingException()) { in GetEcmaUncaughtException()
599 JSHandle<JSTaggedValue> exceptionHandle(thread_, thread_->GetException()); in GetEcmaUncaughtException()
613 [[maybe_unused]] EcmaHandleScope handleScope(thread_); in HandleUncaughtException()
614 JSHandle<JSTaggedValue> exceptionHandle(thread_, exception); in HandleUncaughtException()
616 thread_->ClearException(); in HandleUncaughtException()
618 PrintJSErrorInfo(thread_, exceptionHandle); in HandleUncaughtException()
621 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread_, exceptionHandle); in HandleUncaughtException()
666 if (UNLIKELY(thread_->HasTerminated())) { in HasPendingJob()
669 return job::MicroJobQueue::HasPendingJob(thread_, GetMicroJobQueue()); in HasPendingJob()
678 if (!thread_->HasPendingException()) { in ExecutePromisePendingJob()
680 job::MicroJobQueue::ExecutePendingJob(thread_, GetMicroJobQueue()); in ExecutePromisePendingJob()
752 regexpCache_ = builtins::RegExpExecResultCache::CreateCacheTable(thread_); in SetupRegExpResultCache()
757 regexpGlobal_ = builtins::RegExpGlobalResult::CreateGlobalResultTable(thread_); in SetupRegExpGlobalResult()
762 numberToStringResultCache_ = builtins::NumberToStringResultCache::CreateCacheTable(thread_); in SetupNumberToStringResultCache()
767 stringSplitResultCache_ = builtins::StringSplitResultCache::CreateCacheTable(thread_); in SetupStringSplitResultCache()
772 stringToListResultCache_ = builtins::StringToListResultCache::CreateCacheTable(thread_); in SetupStringToListResultCache()
987 callSiteInfo = thread_->GetEcmaVM()->GetHeap()->CalCallSiteInfo(retAddr); in CalCallSiteInfo()