1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Reduce BeefPerf calls

This commit is contained in:
Brian Fiete 2022-05-06 12:03:39 -07:00
parent d623c21495
commit c750ed076c
3 changed files with 8 additions and 8 deletions

View file

@ -9637,7 +9637,7 @@ BfTypeDef* BfModule::FindTypeDefRaw(const BfAtomComposite& findName, int numGene
BfTypeDef* BfModule::FindTypeDef(const BfAtomComposite& findName, int numGenericArgs, BfTypeInstance* typeInstanceOverride, BfTypeLookupError* error, BfResolveTypeRefFlags resolveFlags) BfTypeDef* BfModule::FindTypeDef(const BfAtomComposite& findName, int numGenericArgs, BfTypeInstance* typeInstanceOverride, BfTypeLookupError* error, BfResolveTypeRefFlags resolveFlags)
{ {
BP_ZONE("BfModule::FindTypeDef_1"); //BP_ZONE("BfModule::FindTypeDef_1");
BfTypeInstance* typeInstance = (typeInstanceOverride != NULL) ? typeInstanceOverride : mCurTypeInstance; BfTypeInstance* typeInstance = (typeInstanceOverride != NULL) ? typeInstanceOverride : mCurTypeInstance;
auto useTypeDef = GetActiveTypeDef(typeInstanceOverride, true); auto useTypeDef = GetActiveTypeDef(typeInstanceOverride, true);
@ -9650,7 +9650,7 @@ BfTypeDef* BfModule::FindTypeDef(const BfAtomComposite& findName, int numGeneric
else if ((mCompiler->mResolvePassData != NULL) && (!mCompiler->mResolvePassData->mParsers.IsEmpty())) else if ((mCompiler->mResolvePassData != NULL) && (!mCompiler->mResolvePassData->mParsers.IsEmpty()))
project = mCompiler->mResolvePassData->mParsers[0]->mProject; project = mCompiler->mResolvePassData->mParsers[0]->mProject;
BP_ZONE("System.FindTypeDef_2"); //BP_ZONE("System.FindTypeDef_2");
Array<BfAtomComposite> namespaceSearch; Array<BfAtomComposite> namespaceSearch;
if (mContext->mCurNamespaceNodes != NULL) if (mContext->mCurNamespaceNodes != NULL)
{ {
@ -9737,7 +9737,7 @@ BfTypeDef* BfModule::FindTypeDef(const BfAtomComposite& findName, int numGeneric
BfTypeDef* BfModule::FindTypeDef(const StringImpl& typeName, int numGenericArgs, BfTypeInstance* typeInstanceOverride, BfTypeLookupError* error, BfResolveTypeRefFlags resolveFlags) BfTypeDef* BfModule::FindTypeDef(const StringImpl& typeName, int numGenericArgs, BfTypeInstance* typeInstanceOverride, BfTypeLookupError* error, BfResolveTypeRefFlags resolveFlags)
{ {
BP_ZONE("BfModule::FindTypeDef_4"); //BP_ZONE("BfModule::FindTypeDef_4");
BfSizedAtomComposite findName; BfSizedAtomComposite findName;
if (!mSystem->ParseAtomComposite(typeName, findName)) if (!mSystem->ParseAtomComposite(typeName, findName))
@ -9751,7 +9751,7 @@ BfTypeDef* BfModule::FindTypeDef(const StringImpl& typeName, int numGenericArgs,
BfTypeDef* BfModule::FindTypeDef(BfTypeReference* typeRef, BfTypeInstance* typeInstanceOverride, BfTypeLookupError* error, int numGenericParams, BfResolveTypeRefFlags resolveFlags) BfTypeDef* BfModule::FindTypeDef(BfTypeReference* typeRef, BfTypeInstance* typeInstanceOverride, BfTypeLookupError* error, int numGenericParams, BfResolveTypeRefFlags resolveFlags)
{ {
BP_ZONE("BfModule::FindTypeDef_5"); //BP_ZONE("BfModule::FindTypeDef_5");
if (auto typeDefTypeRef = BfNodeDynCast<BfDirectTypeDefReference>(typeRef)) if (auto typeDefTypeRef = BfNodeDynCast<BfDirectTypeDefReference>(typeRef))
{ {
@ -10183,7 +10183,7 @@ void BfModule::GetDelegateTypeRefAttributes(BfDelegateTypeRef* delegateTypeRef,
BfType* BfModule::ResolveTypeRef(BfTypeReference* typeRef, BfPopulateType populateType, BfResolveTypeRefFlags resolveFlags, int numGenericArgs) BfType* BfModule::ResolveTypeRef(BfTypeReference* typeRef, BfPopulateType populateType, BfResolveTypeRefFlags resolveFlags, int numGenericArgs)
{ {
BP_ZONE("BfModule::ResolveTypeRef"); //BP_ZONE("BfModule::ResolveTypeRef");
if (typeRef == NULL) if (typeRef == NULL)
{ {

View file

@ -3289,7 +3289,7 @@ void BfModule::VisitCodeBlock(BfBlock* block, BfIRBlock continueBlock, BfIRBlock
void BfModule::VisitCodeBlock(BfBlock* block) void BfModule::VisitCodeBlock(BfBlock* block)
{ {
BP_ZONE("BfModule::VisitCodeBlock"); //BP_ZONE("BfModule::VisitCodeBlock");
BfAutoParentNodeEntry autoParentNodeEntry(this, block); BfAutoParentNodeEntry autoParentNodeEntry(this, block);
@ -3852,7 +3852,7 @@ void BfModule::Visit(BfIfStatement* ifStmt)
void BfModule::Visit(BfVariableDeclaration* varDecl) void BfModule::Visit(BfVariableDeclaration* varDecl)
{ {
BP_ZONE("BfModule::Visit(BfVariableDeclaration)"); //BP_ZONE("BfModule::Visit(BfVariableDeclaration)");
UpdateSrcPos(varDecl); UpdateSrcPos(varDecl);

View file

@ -218,7 +218,7 @@
<Optimization>MaxSpeed</Optimization> <Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking> <FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions> <IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>BP_DISABLED;WIN32;NDEBUG;_WINDOWS;_USRDLL;IDEHELPER_EXPORTS;BFSYSLIB_DYNAMIC;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>zBP_DISABLED;WIN32;NDEBUG;_WINDOWS;_USRDLL;IDEHELPER_EXPORTS;BFSYSLIB_DYNAMIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>../;../BeefySysLib/platform/win;../BeefySysLib/third_party;..\extern\llvm-project_13_0_1\llvm\include;..\extern\llvm_win64_13_0_1\include;..\extern\llvm-project_13_0_1\llvm\lib\Target;..\extern\llvm_win64_13_0_1\lib\Target\X86;..\extern\llvm-project_13_0_1\llvm\tools\clang\include;..\extern\curl\builds\libcurl-vc15-x64-release-static-zlib-static-ipv6-sspi-winssl\include</AdditionalIncludeDirectories> <AdditionalIncludeDirectories>../;../BeefySysLib/platform/win;../BeefySysLib/third_party;..\extern\llvm-project_13_0_1\llvm\include;..\extern\llvm_win64_13_0_1\include;..\extern\llvm-project_13_0_1\llvm\lib\Target;..\extern\llvm_win64_13_0_1\lib\Target\X86;..\extern\llvm-project_13_0_1\llvm\tools\clang\include;..\extern\curl\builds\libcurl-vc15-x64-release-static-zlib-static-ipv6-sspi-winssl\include</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary> <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<BufferSecurityCheck>false</BufferSecurityCheck> <BufferSecurityCheck>false</BufferSecurityCheck>