dadhi / dadhi/FastExpressionCompiler
Diagnostics: calculate the stack population depth after each emit to expose the problematic cases
Open
- Dominant language
- C#
- Stars
- 1.4k
- Forks
- 94
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.