Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@ private void Get_CORINFO_SIG_INFO(MethodSignature signature, CORINFO_SIG_INFO* s

if (!signature.IsStatic) sig->callConv |= CorInfoCallConv.CORINFO_CALLCONV_HASTHIS;
if (signature.IsExplicitThis) sig->callConv |= CorInfoCallConv.CORINFO_CALLCONV_EXPLICITTHIS;
if (signature.IsGeneric) sig->callConv |= CorInfoCallConv.CORINFO_CALLCONV_GENERIC;
Comment thread
MichalStrehovsky marked this conversation as resolved.
Outdated

TypeDesc returnType = signature.ReturnType;

Expand Down
9 changes: 9 additions & 0 deletions src/coreclr/tools/Common/TypeSystem/Common/MethodDesc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public enum MethodSignatureFlags

Static = 0x0010,
ExplicitThis = 0x0020,
Generic = 0x0040,
Comment thread
MichalStrehovsky marked this conversation as resolved.
Outdated
}

public enum EmbeddedSignatureDataKind
Expand Down Expand Up @@ -138,6 +139,14 @@ public bool IsExplicitThis
}
}

public bool IsGeneric
{
get
{
return (_flags & MethodSignatureFlags.Generic) != 0;
}
}

Comment thread
MichalStrehovsky marked this conversation as resolved.
Outdated
public int GenericParameterCount
{
get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ private MethodSignature ParseMethodSignatureImpl(bool skipEmbeddedSignatureData)
if (header.HasExplicitThis)
flags |= MethodSignatureFlags.ExplicitThis;

if (header.IsGeneric)
flags |= MethodSignatureFlags.Generic;

Comment thread
MichalStrehovsky marked this conversation as resolved.
Outdated
int arity = header.IsGeneric ? _reader.ReadCompressedInteger() : 0;

int count = _reader.ReadCompressedInteger();
Expand Down
Loading