Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Finish TODO in getClassAttribsInternal - #1473

Merged
MichalStrehovsky merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:getClassAttribs
Jul 6, 2016
Merged

MichalStrehovsky merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:getClassAttribs

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member
  • CORINFO_FLG_SHAREDINST will come later this week/next week.
  • CORINFO_FLG_HAS_FINALIZER is nowhere to be seen so I assume it was
    removed at some point
  • Implement the rest.

* `CORINFO_FLG_SHAREDINST` will come later this week/next week.
* `CORINFO_FLG_HAS_FINALIZER` is nowhere to be seen so I assume it was
removed at some point
* Implement the rest.
@MichalStrehovsky

Copy link
Copy Markdown
Member Author

Hmm, we're still not setting CORINFO_FLG_OVERLAPPING_FIELDS, CORINFO_FLG_CUSTOMLAYOUT, CORINFO_FLG_MARSHAL_BYREF, CORINFO_FLG_CONTAINS_STACK_PTR.

The TODO list probably comes from one of the two other (non-CoreCLR) JitInterface implementations we have.

@jkotas

jkotas commented Jul 6, 2016

Copy link
Copy Markdown
Member

LGTM

Comment thread src/JitInterface/src/CorInfoImpl.cs Outdated

CorInfoFlag result = (CorInfoFlag)0;

if (type.IsSignatureVariable)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may actually rather be IsGenericParameter. This flag is only used for verification that we don't have in this implementation of jitinterface at all ... it may be better to leave it under TODO.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... and it does not seem to be even used in RyuJIT.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may actually rather be IsGenericParameter

The methods on TypeHandle in CoreCLR could use better comments :). // VAR, MVAR maps to a signature variable.

... and it does not seem to be even used in RyuJIT

I saw a reference to it in importer.cpp, but didn't investigate further.

I'll remove this part, including the TODO. If we want to support verification, it will be separate feature work.

@MichalStrehovsky
MichalStrehovsky merged commit 9cc058e into dotnet:master Jul 6, 2016
@MichalStrehovsky
MichalStrehovsky deleted the getClassAttribs branch July 6, 2016 15:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants