src/jdk.internal.vm.compiler/share/classes/org.graalvm.word/src/org/graalvm/word/WordFactory.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/WordFactory.java
src/jdk.internal.vm.compiler/share/classes/org.graalvm.word/src/org/graalvm/word/WordFactory.java
Print this page
*** 85,94 ****
--- 85,105 ----
public static <T extends WordBase> T zero() {
return boxFactory.box(0L);
}
/**
+ * The null pointer, i.e., the pointer with no bits set. There is no difference to a signed or
+ * unsigned {@link #zero}.
+ *
+ * @return the null pointer.
+ */
+ @FactoryOperation(opcode = FactoryOpcode.ZERO)
+ public static <T extends PointerBase> T nullPointer() {
+ return boxFactory.box(0L);
+ }
+
+ /**
* Unsafe conversion from a Java long value to a Word. The parameter is treated as an unsigned
* 64-bit value (in contrast to the semantics of a Java long).
*
* @param val a 64 bit unsigned value
* @return the value cast to Word
src/jdk.internal.vm.compiler/share/classes/org.graalvm.word/src/org/graalvm/word/WordFactory.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File