mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8138732: Rename @HotSpotIntrinsicCandidate to @IntrinsicCandidate and move it to the jdk.internal.vm.annotation package
Reviewed-by: dholmes, alanb, psandoz, kvn, egahlin
This commit is contained in:
parent
4b16f8ab94
commit
2a406f3ce5
64 changed files with 488 additions and 488 deletions
|
@ -32,9 +32,9 @@ import java.lang.constant.ConstantDesc;
|
|||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
import jdk.internal.HotSpotIntrinsicCandidate;
|
||||
import jdk.internal.misc.CDS;
|
||||
import jdk.internal.misc.VM;
|
||||
import jdk.internal.vm.annotation.IntrinsicCandidate;
|
||||
|
||||
import static java.lang.String.COMPACT_STRINGS;
|
||||
import static java.lang.String.LATIN1;
|
||||
|
@ -434,7 +434,7 @@ public final class Integer extends Number
|
|||
* @param i an integer to be converted.
|
||||
* @return a string representation of the argument in base 10.
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public static String toString(int i) {
|
||||
int size = stringSize(i);
|
||||
if (COMPACT_STRINGS) {
|
||||
|
@ -1059,7 +1059,7 @@ public final class Integer extends Number
|
|||
* @return an {@code Integer} instance representing {@code i}.
|
||||
* @since 1.5
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public static Integer valueOf(int i) {
|
||||
if (i >= IntegerCache.low && i <= IntegerCache.high)
|
||||
return IntegerCache.cache[i + (-IntegerCache.low)];
|
||||
|
@ -1134,7 +1134,7 @@ public final class Integer extends Number
|
|||
* Returns the value of this {@code Integer} as an
|
||||
* {@code int}.
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public int intValue() {
|
||||
return value;
|
||||
}
|
||||
|
@ -1632,7 +1632,7 @@ public final class Integer extends Number
|
|||
* is equal to zero.
|
||||
* @since 1.5
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public static int numberOfLeadingZeros(int i) {
|
||||
// HD, Count leading 0's
|
||||
if (i <= 0)
|
||||
|
@ -1659,7 +1659,7 @@ public final class Integer extends Number
|
|||
* to zero.
|
||||
* @since 1.5
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public static int numberOfTrailingZeros(int i) {
|
||||
// HD, Count trailing 0's
|
||||
i = ~i & (i - 1);
|
||||
|
@ -1682,7 +1682,7 @@ public final class Integer extends Number
|
|||
* representation of the specified {@code int} value.
|
||||
* @since 1.5
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public static int bitCount(int i) {
|
||||
// HD, Figure 5-2
|
||||
i = i - ((i >>> 1) & 0x55555555);
|
||||
|
@ -1783,7 +1783,7 @@ public final class Integer extends Number
|
|||
* {@code int} value.
|
||||
* @since 1.5
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public static int reverseBytes(int i) {
|
||||
return (i << 24) |
|
||||
((i & 0xff00) << 8) |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue