Lines Matching refs:context
56 auto context = new EcmaContext(thread); in Create() local
57 if (UNLIKELY(context == nullptr)) { in Create()
61 return context; in Create()
65 bool EcmaContext::Destroy(EcmaContext *context) in Destroy() argument
67 if (context != nullptr) { in Destroy()
68 delete context; in Destroy()
69 context = nullptr; in Destroy()
616 EcmaContext *context = EcmaContext::CreateAndInitialize(thread); in MountContext() local
617 thread->SwitchCurrentContext(context); in MountContext()
622 EcmaContext *context = thread->GetCurrentEcmaContext(); in UnmountContext() local
624 Destroy(context); in UnmountContext()
629 EcmaContext *context = EcmaContext::Create(thread); in CreateAndInitialize() local
630 thread->PushContext(context); in CreateAndInitialize()
631 context->Initialize(); in CreateAndInitialize()
632 return context; in CreateAndInitialize()
635 void EcmaContext::CheckAndDestroy(JSThread *thread, EcmaContext *context) in CheckAndDestroy() argument
637 if (thread->EraseContext(context)) { in CheckAndDestroy()
638 Destroy(context); in CheckAndDestroy()