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

Method AddCallDependency

IDEHelper/Compiler/BfModule.cpp:3967–3979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3965}
3966
3967void BfModule::AddCallDependency(BfMethodInstance* methodInstance, bool devirtualized)
3968{
3969 if ((mCurMethodState != NULL) && (mCurMethodState->mHotDataReferenceBuilder != NULL))
3970 {
3971 if (methodInstance->mHotMethod == NULL)
3972 CheckHotMethod(methodInstance, "");
3973 BF_ASSERT(methodInstance->mHotMethod != NULL);
3974 if (devirtualized)
3975 mCurMethodState->mHotDataReferenceBuilder->mDevirtualizedCalledMethods.Add(methodInstance->mHotMethod);
3976 else
3977 mCurMethodState->mHotDataReferenceBuilder->mCalledMethods.Add(methodInstance->mHotMethod);
3978 }
3979}
3980
3981bool BfModule::IsAttribute(BfTypeInstance* typeInst)
3982{

Callers 4

ResolveArgTypedValueMethod · 0.80
CreateCallMethod · 0.80
VisitMethod · 0.80
GetLambdaInstanceMethod · 0.80

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected