-
Notifications
You must be signed in to change notification settings - Fork 5.9k
8352690: [JVMCI] Add the set of caller saved registers to j.i.v.c.CallingConvention #24185
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?
Conversation
Hi @kittyoracle, welcome to this OpenJDK project and thanks for contributing! We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user kittyoracle" as summary for the issue. If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing |
❗ This change is not yet ready to be integrated. |
@kittyoracle The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
@kittyoracle Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
/covered |
Thank you! Please allow for a few business days to verify that your employer has signed the OCA. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated! |
@@ -60,10 +71,11 @@ public interface Type { | |||
* call | |||
* @param argumentLocations the ordered locations in which the arguments are placed | |||
*/ | |||
public CallingConvention(int stackSize, AllocatableValue returnLocation, AllocatableValue... argumentLocations) { | |||
public CallingConvention(int stackSize, AllocatableValue returnLocation, List<? extends AllocatableValue> argumentLocations, Collection<? extends AllocatableValue> callerSavedLocations) { |
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.
This is a nice API improvement (array -> list for the type of argumentLocations
) but will need Graal adaption.
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.
The Graal adaption will likely fail the JDK21 compilation. Make sure to run a JDK21 gate
@@ -94,18 +106,21 @@ public int getStackSize() { | |||
* Gets the number of locations required for the arguments. | |||
*/ | |||
public int getArgumentCount() { | |||
return argumentLocations.length; | |||
return argumentLocations.size(); | |||
} | |||
|
|||
/** | |||
* Gets the locations required for the arguments. |
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.
update javadoc to state that the returned list is unmodifiable
} | ||
|
||
/** | ||
* Get the list of call-clobbered (caller-saved) registers. |
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.
update javadoc to state that the returned set is unmodifiable
@kittyoracle This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
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.
Re-approved after test fixes. I also uppercased "JVMCI" in JDK-8352690 (for consistency) so you'll need to do the same for this PR's title.
Hi,
This patch adds the set of caller-saved registers to
j.i.v.c.CallingConvention
as well as refactor the array of argument locations into aList
.Please take a look and share your thoughts, thanks a lot.
Progress
Error
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24185/head:pull/24185
$ git checkout pull/24185
Update a local copy of the PR:
$ git checkout pull/24185
$ git pull https://git.openjdk.org/jdk.git pull/24185/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 24185
View PR using the GUI difftool:
$ git pr show -t 24185
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24185.diff