mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Use cached CE emission on fastFinish
This commit is contained in:
parent
8406e00a60
commit
afd5b29127
8 changed files with 178 additions and 24 deletions
|
@ -829,7 +829,8 @@ void BfContext::ValidateDependencies()
|
|||
void BfContext::RebuildType(BfType* type, bool deleteOnDemandTypes, bool rebuildModule, bool placeSpecializiedInPurgatory)
|
||||
{
|
||||
BfTypeInstance* typeInst = type->ToTypeInstance();
|
||||
|
||||
|
||||
|
||||
if (type->IsDeleting())
|
||||
{
|
||||
return;
|
||||
|
@ -865,7 +866,7 @@ void BfContext::RebuildType(BfType* type, bool deleteOnDemandTypes, bool rebuild
|
|||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// We need to verify lookups before we rebuild the type, because a type lookup change needs to count as a TypeDataChanged
|
||||
VerifyTypeLookups(typeInst);
|
||||
|
||||
|
@ -1136,7 +1137,12 @@ void BfContext::TypeDataChanged(BfDependedType* dType, bool isNonStaticDataChang
|
|||
{
|
||||
auto dependentType = depItr.mKey;
|
||||
auto dependencyFlags = depItr.mValue.mFlags;
|
||||
|
||||
|
||||
if (dependentType->mRevision == mCompiler->mRevision)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
auto dependentDType = dependentType->ToDependedType();
|
||||
if (dependentDType != NULL)
|
||||
{
|
||||
|
@ -1218,6 +1224,11 @@ void BfContext::TypeMethodSignaturesChanged(BfTypeInstance* typeInst)
|
|||
auto dependentType = depItr.mKey;
|
||||
auto dependencyFlags = depItr.mValue.mFlags;
|
||||
|
||||
if (dependentType->mRevision == mCompiler->mRevision)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// We don't need to cascade rebuilding for method-based usage - just rebuild the type directly (unlike TypeDataChanged, which cascades)
|
||||
if ((dependencyFlags & BfDependencyMap::DependencyFlag_Calls) ||
|
||||
(dependencyFlags & BfDependencyMap::DependencyFlag_VirtualCall) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue