| Modifier and Type | Field and Description |
|---|---|
static HotSpotForeignCallDescriptor |
VM_MESSAGE_C |
| Constructor and Description |
|---|
StubUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
cAssertionsEnabled(GraalHotSpotVMConfig config)
Determines if this is a HotSpot build where the ASSERT mechanism is enabled.
|
static void |
decipher(long value)
Analyzes a given value and prints information about it to the log stream.
|
static void |
fatal(String message)
Exits the VM with a given error message.
|
static void |
fatal(String format,
long value)
Exits the VM with a given error message.
|
static void |
fatal(String format,
long v1,
long v2)
Exits the VM with a given error message.
|
static void |
fatal(String format,
long v1,
long v2,
long v3)
Exits the VM with a given error message.
|
static HotSpotForeignCallDescriptor |
newDescriptor(HotSpotForeignCallDescriptor.Transition safepoint,
HotSpotForeignCallDescriptor.Reexecutability reexecutable,
org.graalvm.word.LocationIdentity killLocation,
Class<?> stubClass,
String name,
Class<?> resultType,
Class<?>... argumentTypes) |
static void |
printf(String message)
Prints a message to the log stream.
|
static void |
printf(String format,
long value)
Prints a message to the log stream.
|
static void |
printf(String format,
long v1,
long v2)
Prints a message to the log stream.
|
static void |
printf(String format,
long v1,
long v2,
long v3)
Prints a message to the log stream.
|
static Word |
printNumber(Word buffer,
long number)
Print
number as decimal string to buffer. |
static Word |
printString(Word buffer,
String javaString)
Copy
javaString bytes to the memory location ptr. |
public static final HotSpotForeignCallDescriptor VM_MESSAGE_C
public static HotSpotForeignCallDescriptor newDescriptor(HotSpotForeignCallDescriptor.Transition safepoint, HotSpotForeignCallDescriptor.Reexecutability reexecutable, org.graalvm.word.LocationIdentity killLocation, Class<?> stubClass, String name, Class<?> resultType, Class<?>... argumentTypes)
public static boolean cAssertionsEnabled(GraalHotSpotVMConfig config)
public static void printf(String message)
Stubs must use this instead of Log.printf(String, long) to avoid an object
constant in a RuntimeStub.
message - a message stringpublic static void printf(String format, long value)
Stubs must use this instead of Log.printf(String, long) to avoid an object
constant in a RuntimeStub.
format - a C style printf format valuevalue - the value associated with the first conversion specifier in formatpublic static void printf(String format, long v1, long v2)
Stubs must use this instead of Log.printf(String, long, long) to avoid an object
constant in a RuntimeStub.
format - a C style printf format valuev1 - the value associated with the first conversion specifier in formatv2 - the value associated with the second conversion specifier in formatpublic static void printf(String format, long v1, long v2, long v3)
Stubs must use this instead of Log.printf(String, long, long, long) to avoid an
object constant in a RuntimeStub.
format - a C style printf format valuev1 - the value associated with the first conversion specifier in formatv2 - the value associated with the second conversion specifier in formatv3 - the value associated with the third conversion specifier in formatpublic static void decipher(long value)
public static void fatal(String message)
Stubs must use this instead of VMErrorNode.vmError(org.graalvm.compiler.replacements.nodes.CStringConstant, long) to avoid an object constant in
a RuntimeStub.
message - an error messagepublic static void fatal(String format, long value)
Stubs must use this instead of Log.printf(String, long, long, long) to avoid an
object constant in a RuntimeStub.
format - a C style printf format valuevalue - the value associated with the first conversion specifier in formatpublic static void fatal(String format, long v1, long v2)
Stubs must use this instead of Log.printf(String, long, long, long) to avoid an
object constant in a RuntimeStub.
format - a C style printf format valuev1 - the value associated with the first conversion specifier in formatv2 - the value associated with the second conversion specifier in formatpublic static void fatal(String format, long v1, long v2, long v3)
Stubs must use this instead of Log.printf(String, long, long, long) to avoid an
object constant in a RuntimeStub.
format - a C style printf format valuev1 - the value associated with the first conversion specifier in formatv2 - the value associated with the second conversion specifier in formatv3 - the value associated with the third conversion specifier in formatpublic static Word printNumber(Word buffer, long number)
number as decimal string to buffer.buffer - number - buffer.