Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Reader: implement jmp msil instruction #192

Closed
erozenfeld opened this issue Feb 24, 2015 · 1 comment
Closed

Reader: implement jmp msil instruction #192

erozenfeld opened this issue Feb 24, 2015 · 1 comment
Assignees
Milestone

Comments

@erozenfeld
Copy link
Member

No description provided.

@erozenfeld erozenfeld added this to the Sprint 87 milestone Jul 25, 2015
@erozenfeld erozenfeld assigned erozenfeld and unassigned libengu Jul 25, 2015
@erozenfeld
Copy link
Member Author

This is needed for ngen-ing mscorlib.dll.

erozenfeld added a commit to erozenfeld/llilc that referenced this issue Jul 31, 2015
jmp is implemented as a call marked with musttail followed by a ret.

If the caller has a secret parameter we need to pass it to the jmp call
because the signature and the calling convention of the caller and
the musttail call must match. To accommodate that a parallel
LLVM change modifies CLR_SecretParameter calling convention
to make the secret parameter the first pointer-sized parameter
(still passed in R10) rather than a parameter passed with a
"CLR_SecretParameter" attribute.

All indirect parameters are passed as they come to the caller, without
copying them to the current frame.

Indirect result parameter is typed as a managed pointer in a jmp call
because we type indirect result parameter for the caller as a
managed pointer.

Closes dotnet#192.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants