Repository navigation
Expose GetMethodILDefinition on MethodIL - #1523
Conversation
Also, simplify the constructor of `InstantiatedMethodIL`.
What is it useful for? LGTM otherwise. |
|
In shared generic mode, RyuJIT will be compiling canonical method bodies (e.g. when compiling But the dependency analysis engine will be operating on top of runtime determined types, not raw canonical types. In order to get the runtime determined type out of this, we need to be able to resolve the token corresponding to the !!0 (from my example) within the context of a runtime determined method. (In my example it means we will get a |
I understand why you want dependency analysis to operate on top of runtime determined types. But I do not understand why need |
Or fix the JIT to be happy with runtime determined types - it should be just a few very small tweaks. |
|
@davidwrighton hinted that getting the JitInterface to operate on top of runtime determined types might be tricky since runtime determined types have some odd behaviors (constrained calls on them is one that I don't fully get yet, for example). The current plan was to have JitInterface simply operate on top of __Canon types and when the need arises to talk to the dependency analysis, simply get the Edit: I'm willing to be talked out of this plan :) |
This is a useful operation after all.
Also, simplify the constructor of
InstantiatedMethodIL.