mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
CTFE updates, including heap support
This commit is contained in:
parent
792d92d014
commit
6bb363fb4b
29 changed files with 3050 additions and 595 deletions
|
@ -535,6 +535,13 @@ BfMethodInfoEx::~BfMethodInfoEx()
|
|||
|
||||
BfMethodInstance::~BfMethodInstance()
|
||||
{
|
||||
if (mInCEMachine)
|
||||
{
|
||||
auto module = GetOwner()->mModule;
|
||||
if (module->mCompiler->mCEMachine != NULL)
|
||||
module->mCompiler->mCEMachine->RemoveMethod(this);
|
||||
}
|
||||
|
||||
if (mHasMethodRefType)
|
||||
{
|
||||
auto module = GetOwner()->mModule;
|
||||
|
@ -557,13 +564,7 @@ BfMethodInstance::~BfMethodInstance()
|
|||
mHotMethod->Deref();
|
||||
}
|
||||
|
||||
delete mMethodInfoEx;
|
||||
|
||||
if (mInCEMachine)
|
||||
{
|
||||
auto module = GetOwner()->mModule;
|
||||
module->mCompiler->mCEMachine->RemoveMethod(this);
|
||||
}
|
||||
delete mMethodInfoEx;
|
||||
}
|
||||
|
||||
BfImportKind BfMethodInstance::GetImportKind()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue