src/jdk.internal.vm.compiler/share/classes/org.graalvm.word/src/org/graalvm/word/PointerUtils.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/jdk.internal.vm.compiler/share/classes/org.graalvm.word/src/org/graalvm/word/PointerUtils.java
src/jdk.internal.vm.compiler/share/classes/org.graalvm.word/src/org/graalvm/word/PointerUtils.java
Print this page
*** 36,66 ****
/**
* The value of a null Pointer.
*
* @return A null Pointer value.
*/
- @SuppressWarnings("unchecked")
public static <T extends PointerBase> T nullPointer() {
! return (T) WordFactory.zero();
}
/**
* Predicate to check for the null Pointer value.
*
* @return Whether that Pointer is the null Pointer.
*/
public static boolean isNull(ComparableWord that) {
! return that.equal(nullPointer());
}
/**
* Predicate to check for a non-null Pointer value.
*
* @return Whether that Pointer is not the null Pointer.
*/
public static boolean isNonNull(ComparableWord that) {
! return that.notEqual(nullPointer());
}
/**
* Round a Pointer down to the nearest smaller multiple.
*
--- 36,68 ----
/**
* The value of a null Pointer.
*
* @return A null Pointer value.
*/
public static <T extends PointerBase> T nullPointer() {
! /* This method will be deleted soon. */
! return WordFactory.nullPointer();
}
/**
* Predicate to check for the null Pointer value.
*
* @return Whether that Pointer is the null Pointer.
*/
public static boolean isNull(ComparableWord that) {
! /* This method will be deleted soon. */
! return ((PointerBase) that).isNull();
}
/**
* Predicate to check for a non-null Pointer value.
*
* @return Whether that Pointer is not the null Pointer.
*/
public static boolean isNonNull(ComparableWord that) {
! /* This method will be deleted soon. */
! return ((PointerBase) that).isNonNull();
}
/**
* Round a Pointer down to the nearest smaller multiple.
*
src/jdk.internal.vm.compiler/share/classes/org.graalvm.word/src/org/graalvm/word/PointerUtils.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File