-
Notifications
You must be signed in to change notification settings - Fork 409
Add support for dispatchJ9Method for MethodHandles on Z #7930
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
base: master
Are you sure you want to change the base?
Add support for dispatchJ9Method for MethodHandles on Z #7930
Conversation
399e043
to
6b5bf4d
Compare
0b1a391
to
37cacf5
Compare
Adds method to OMRNode to determine if node is jitDispatchJ9Method flushArgs skips first argument for S390HelperCallSnippet Signed-off-by: Matthew Hall <[email protected]>
37cacf5
to
8eab7dd
Compare
@r30shah can I get a review please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general. I feel the changes are fine, so just couple recommendation.
I have general question about the change though - dispatch through J9method is J9 specific changes, Do we need these in OMR ? Can we make changes in J9 for this ?
bool rightToLeft = linkage->getRightToLeft() && | ||
// we want the arguments for induceOSR to be passed from left to right as in any other non-helper call | ||
!callNode->getSymbolReference()->isOSRInductionHelper(); | ||
!callNode->getSymbolReference()->isOSRInductionHelper() && !isJitDispatchJ9Method; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a recommendation to increase readability,
!callNode->getSymbolReference()->isOSRInductionHelper() && !isJitDispatchJ9Method; | |
!(callNode->getSymbolReference()->isOSRInductionHelper() || isJitDispatchJ9Method); |
bool rightToLeft = self()->isParmsInReverseOrder() && | ||
// we want the arguments for induceOSR to be passed from left to right as in any other non-helper call | ||
!callNode->getSymbolReference()->isOSRInductionHelper(); | ||
!callNode->getSymbolReference()->isOSRInductionHelper() && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar recommendation as previous.
Adds method to OMRNode to determine if node is jitDispatchJ9Method
flushArgs skips first argument for S390HelperCallSnippet call call is jitDipatchJ9Method
needed for eclipse-openj9/openj9#22588