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

CorInfoImpl refactoring part #1#6120

Merged
trylek merged 2 commits intodotnet:r2rfrom
trylek:CorInfoImplBuildingChange
Jul 20, 2018
Merged

CorInfoImpl refactoring part #1#6120
trylek merged 2 commits intodotnet:r2rfrom
trylek:CorInfoImplBuildingChange

Conversation

@trylek
Copy link
Member

@trylek trylek commented Jul 19, 2018

  1. Refactor ComputeLookup to pass around references to the
    CORINFO_RESOLVED_TOKEN instead of its tokenContext. This will be
    needed in the next change to implement R2R variants of the methods.

  2. Add new CanInline method to the Compilation class to be used
    by CorInfoImpl to query inline-ability.

Thanks

Tomas

1) Refactor ComputeLookup to pass around references to the
CORINFO_RESOLVED_TOKEN instead of its tokenContext. This will be
needed in the next change to implement R2R variants of the methods.

2) Add new CanInline method to the Compilation class to be used
by CorInfoImpl to query inline-ability.

Thanks

Tomas
Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Looks good otherwise, thanks!

using Internal.TypeSystem;

using Internal.IL;
using Internal.JitInterface;
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, probably just some copy & paste bug, will remove.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in 2nd commit.

@trylek trylek merged commit 6e5e8fc into dotnet:r2r Jul 20, 2018
@trylek
Copy link
Member Author

trylek commented Jul 20, 2018

Thanks Michal for the quick review!

Tomas

@trylek trylek deleted the CorInfoImplBuildingChange branch July 30, 2018 13:13
trylek added a commit to trylek/corert that referenced this pull request Oct 1, 2018
* CorInfoImpl refactoring part #1

1) Refactor ComputeLookup to pass around references to the
CORINFO_RESOLVED_TOKEN instead of its tokenContext. This will be
needed in the next change to implement R2R variants of the methods.

2) Add new CanInline method to the Compilation class to be used
by CorInfoImpl to query inline-ability.

Thanks

Tomas

* Remove superfluous "using Internal.JitInterface" from CorInfoImpl
trylek added a commit to trylek/corert that referenced this pull request Oct 15, 2018
* CorInfoImpl refactoring part #1

1) Refactor ComputeLookup to pass around references to the
CORINFO_RESOLVED_TOKEN instead of its tokenContext. This will be
needed in the next change to implement R2R variants of the methods.

2) Add new CanInline method to the Compilation class to be used
by CorInfoImpl to query inline-ability.

Thanks

Tomas

* Remove superfluous "using Internal.JitInterface" from CorInfoImpl
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants