File tree 1 file changed +8
-1
lines changed
src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/code
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2009, 2016 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2009, 2025 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -94,6 +94,13 @@ default int getMaximumFrameSize() {
94
94
*/
95
95
RegisterArray getCalleeSaveRegisters ();
96
96
97
+ /**
98
+ * Gets the storage kind for a callee save register.
99
+ */
100
+ default PlatformKind getCalleeSaveRegisterStorageKind (Architecture arch , Register calleeSaveRegister ) {
101
+ return arch .getLargestStorableKind (calleeSaveRegister .getRegisterCategory ());
102
+ }
103
+
97
104
/**
98
105
* Gets a map from register {@linkplain Register#number numbers} to register
99
106
* {@linkplain RegisterAttributes attributes} for this register configuration.
You can’t perform that action at this time.
0 commit comments