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

Method EnsureHotMangledVirtualMethodNames

IDEHelper/Compiler/BfContext.cpp:249–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void BfContext::EnsureHotMangledVirtualMethodNames()
250{
251 BP_ZONE("BfContext::EnsureHotMangledVirtualMethodNames");
252
253 for (auto type : mResolvedTypes)
254 {
255 auto typeInst = type->ToTypeInstance();
256 if (typeInst == NULL)
257 continue;
258
259 for (auto& methodEntry : typeInst->mVirtualMethodTable)
260 {
261 BfMethodInstance* methodInstance = methodEntry.mImplementingMethod;
262 if ((methodInstance != NULL) && (methodInstance->GetMethodInfoEx()->mMangledName.IsEmpty()))
263 BfMangler::Mangle(methodInstance->GetMethodInfoEx()->mMangledName, mCompiler->GetMangleKind(), methodInstance);
264 }
265 }
266}
267
268void BfContext::CheckLockYield()
269{

Callers 1

DoCompileMethod · 0.80

Calls 4

GetMethodInfoExMethod · 0.80
GetMangleKindMethod · 0.80
ToTypeInstanceMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected