MCPcopy Create free account
hub / github.com/beefytech/Beef / Dispose

Method Dispose

IDEHelper/Compiler/BfResolvedTypeUtils.cpp:734–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

732}
733
734void BfMethodInstance::Dispose(bool isDeleting)
735{
736 if (mIsDisposed)
737 return;
738 mIsDisposed = true;
739
740 if (mMethodInstanceGroup != NULL)
741 {
742 BfLogSys(GetOwner()->mModule->mSystem, "BfMethodInstance::~BfMethodInstance %p Local:%d InCEMachine:%d Deleting:%d\n", this, mMethodDef->mIsLocalMethod, mInCEMachine, isDeleting);
743 }
744 else
745 {
746 BF_ASSERT(!mMethodDef->mIsLocalMethod);
747 }
748
749 if (mInCEMachine)
750 {
751 auto module = GetOwner()->mModule;
752 if (module->mCompiler->mCeMachine != NULL)
753 module->mCompiler->mCeMachine->RemoveMethod(this);
754 }
755
756 if (mMethodProcessRequest != NULL)
757 {
758 BF_ASSERT(mMethodProcessRequest->mMethodInstance == this);
759 mMethodProcessRequest->mMethodInstance = NULL;
760 }
761
762 if (mHotMethod != NULL)
763 {
764 mHotMethod->mFlags = (BfHotDepDataFlags)(mHotMethod->mFlags & ~BfHotDepDataFlag_IsBound);
765 mHotMethod->Deref();
766 }
767}
768
769void BfMethodInstance::CopyFrom(BfMethodInstance* methodInstance)
770{

Callers

nothing calls this directly

Calls 2

RemoveMethodMethod · 0.80
DerefMethod · 0.45

Tested by

no test coverage detected