Repository navigation
Change CORERT TODO ifdefs to USE_PORTABLE_HELPERS as appropriate - #1317
Conversation
|
@janvorli PTLA There are a few fixes in the Unix assembly |
|
|
||
| if (EQUALS_CODE_ADDRESS(m_ControlPC, RhpCallCatchFunclet2)) | ||
| { | ||
| SP = (PTR_UIntNative)(m_RegDisplay.SP + 0x38); |
There was a problem hiding this comment.
Would it make sense to declare the local block sizes as constants shared between the asm and C++ code and unify the Unix / Windows code (with two ifdefs around the regdisplay stuff that is platform specific)?
Later we could add target specific methods to the REGDISPLAY to copy the register pointers and to load the registers from the stack - it seems some of the code above could contain less ifdefs if we did that for those too.
There was a problem hiding this comment.
@smosier Do you have thoughts on the best factoring for these chains of platform-specific ifdefs? Maybe move them all into a platform-specific header file?
Either way, the refactoring this should rather be a separate PR.
There was a problem hiding this comment.
Yes, we could declare the abstract operations as inline functions on the StackFrameIterator class and then platform-specific header files could provide the inline function definitions. It would give us the opportunity to better document the expected semantic at the declaration point and have separated implementations of the methods per-ABI. It's possible that the current methods (such as UnwindFuncletInvokeThunk / UpdateFromExceptionDispatch / etc) are at the the right abstraction level, but I'm willing to consider that they aren't.
|
LGTM with just nit minor suggestion. |
No description provided.