[Decompiler] More progress on method stuff #264
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There's an issue where we can pop things more than once, and this allows stuff to escape ordering.
The best solution is to have the popping functions return a register with a flag that says this was popped and cannot be popped again.
It's possible we have some other code that relies on this double popping, and possibly in a way that's okay. For example, stuff in a temporary stack as part of a condition may be lifted out of the condition, and then can be popped. But this needs to be done more carefully than we are doing now. Either way, this needs to be rethought a little bit.
For example see
ExprMethod14DeadPoolHeap
, it nests method calls that shouldn't be nested.I should also see why the side effect check doesn't catch this.