Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@MichalStrehovsky
Copy link
Member

Only implementing the RyuJIT portion for CoreRT purposes (CoreRT side at dotnet/corert#2085).

I can file an issue to add support for this in CoreCLR if there's interest. On CoreCLR this is currently a disqualification from ReadyToRun and causes fallback to JITting.

* lvaGenericsContextUsed is set by getRuntimeContextTree, no need to set
it twice.
* Add comment
* Don't set hClass
@MichalStrehovsky
Copy link
Member Author

@dotnet/jit-contrib PTAL

Copy link

@pgavlin pgavlin left a comment

Choose a reason for hiding this comment

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

LGTM aside from one nit.

if (opts.IsReadyToRun() && eeGetEEInfo()->targetAbi == CORINFO_CORERT_ABI)
{
CORINFO_RESOLVED_TOKEN resolvedToken;
ZeroMemory(&resolvedToken, sizeof(resolvedToken));
Copy link

Choose a reason for hiding this comment

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

IIRC we prefer memset in the JIT to ZeroMemory.

Copy link

Choose a reason for hiding this comment

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

CORINFO_RESOLVED_TOKEN resolvedToken { }; 😁

Copy link
Member Author

@MichalStrehovsky MichalStrehovsky Oct 27, 2016

Choose a reason for hiding this comment

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

I copypasted this from the nongeneric ReadyToRun path. I will fix it in both in a separate pull request. I really want to merge this before the "#7837 Introduce new CORJIT_FLAGS type" pull request gets merged because I need this to unblock myself on CoreRT and I would rather not deal with updating JitInterface on CoreRT right now.

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.

6 participants