Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ private bool RequiresInstArgMethodTable(MethodDesc methodDesc)
if (methodDesc.IsStatic)
return true;

MethodTable mt = _methodTables[methodDesc.MethodTable];
MethodTable mt = GetOrCreateMethodTable(methodDesc);
if (mt.Flags.IsValueType)
return true;

Expand Down Expand Up @@ -1385,7 +1385,7 @@ private bool IsSharedByGenericInstantiations(MethodDesc methodDesc)
}

// Check class-level sharing: canonical MethodTable with generic instantiation
MethodTable mt = _methodTables[methodDesc.MethodTable];
MethodTable mt = GetOrCreateMethodTable(methodDesc);
return mt.IsCanonMT && mt.Flags.HasInstantiation;
}

Expand All @@ -1397,7 +1397,7 @@ private bool IsAbstract(MethodDesc methodDesc)
if (EcmaMetadataUtils.GetRowId(token) == 0)
return false;

TargetPointer modulePtr = _methodTables[methodDesc.MethodTable].Module;
TargetPointer modulePtr = GetOrCreateMethodTable(methodDesc).Module;
ModuleHandle moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr);
MetadataReader? mdReader = _target.Contracts.EcmaMetadata.GetMetadata(moduleHandle);
if (mdReader is null)
Expand Down
Loading