Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diagnostics: calculate the stack population depth after each emit to expose the problematic cases #403

Open
dadhi opened this issue Apr 16, 2024 · 0 comments

Comments

@dadhi
Copy link
Owner

dadhi commented Apr 16, 2024

Using the OpCode.StackBehaviourPop and OpCode.StackBehaviourPush we may calculate the stack balance in the DEBUG Demit calls. See https://source.dot.net/#System.Private.CoreLib/src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/Opcode.cs,f10f1c9bbefdd170,references
Also, we may calculate the balance in the PrintIL in tests.
Then the value for System Compile and Fast Compile can be compared to see the discrepancies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant