| 732 | } |
| 733 | |
| 734 | void 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 | |
| 769 | void BfMethodInstance::CopyFrom(BfMethodInstance* methodInstance) |
| 770 | { |
nothing calls this directly
no test coverage detected