Package org.teavm.backend.wasm
Class WasmRuntime
java.lang.Object
org.teavm.backend.wasm.WasmRuntime
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
align
(int value, int alignment) static org.teavm.interop.Address
align
(org.teavm.interop.Address address, int alignment) static org.teavm.interop.Address
allocStack
(int size) static void
callFunctionFromTable
(int index, RuntimeObject instance) static int
compare
(double a, double b) static int
compare
(float a, float b) static int
compare
(int a, int b) static int
compare
(long a, long b) static int
compareUnsigned
(int a, int b) static int
compareUnsigned
(long a, long b) static void
fill
(org.teavm.interop.Address address, byte value, int count) static void
fillZero
(org.teavm.interop.Address address, int count) static int
getCallSiteId
(org.teavm.interop.Address stackFrame) static org.teavm.interop.Address
getNextStackFrame
(org.teavm.interop.Address stackFrame) static int
getStackRootCount
(org.teavm.interop.Address stackFrame) static org.teavm.interop.Address
getStackRootPointer
(org.teavm.interop.Address stackFrame) static org.teavm.interop.Address
static org.teavm.interop.Address
lookupResource
(org.teavm.interop.Address map, String string) static org.teavm.interop.Address
lookupResource
(org.teavm.interop.Address map, org.teavm.interop.Address key) static double
max
(double a, double b) static float
max
(float a, float b) static double
min
(double a, double b) static float
min
(float a, float b) static void
print
(int a) static void
printInt
(int i) static void
static void
static double
remainder
(double a, double b) static float
remainder
(float a, float b) static String[]
resourceMapKeys
(org.teavm.interop.Address map) static void
setExceptionHandlerId
(org.teavm.interop.Address stackFrame, int id) static void
setExceptionHandlerRestore
(org.teavm.interop.Address stackFrame) static void
setExceptionHandlerSkip
(org.teavm.interop.Address stackFrame)
-
Method Details
-
compare
public static int compare(int a, int b) -
compareUnsigned
public static int compareUnsigned(int a, int b) -
compareUnsigned
public static int compareUnsigned(long a, long b) -
compare
public static int compare(long a, long b) -
compare
public static int compare(float a, float b) -
compare
public static int compare(double a, double b) -
min
public static float min(float a, float b) -
min
public static double min(double a, double b) -
max
public static float max(float a, float b) -
max
public static double max(double a, double b) -
remainder
public static float remainder(float a, float b) -
remainder
public static double remainder(double a, double b) -
align
public static org.teavm.interop.Address align(org.teavm.interop.Address address, int alignment) -
align
public static int align(int value, int alignment) -
print
public static void print(int a) -
printString
-
printInt
public static void printInt(int i) -
printOutOfMemory
public static void printOutOfMemory() -
fillZero
public static void fillZero(org.teavm.interop.Address address, int count) -
fill
public static void fill(org.teavm.interop.Address address, byte value, int count) -
allocStack
public static org.teavm.interop.Address allocStack(int size) -
getStackTop
public static org.teavm.interop.Address getStackTop() -
getNextStackFrame
public static org.teavm.interop.Address getNextStackFrame(org.teavm.interop.Address stackFrame) -
getStackRootCount
public static int getStackRootCount(org.teavm.interop.Address stackFrame) -
getStackRootPointer
public static org.teavm.interop.Address getStackRootPointer(org.teavm.interop.Address stackFrame) -
getCallSiteId
public static int getCallSiteId(org.teavm.interop.Address stackFrame) -
setExceptionHandlerId
public static void setExceptionHandlerId(org.teavm.interop.Address stackFrame, int id) -
setExceptionHandlerSkip
public static void setExceptionHandlerSkip(org.teavm.interop.Address stackFrame) -
setExceptionHandlerRestore
public static void setExceptionHandlerRestore(org.teavm.interop.Address stackFrame) -
resourceMapKeys
-
lookupResource
public static org.teavm.interop.Address lookupResource(org.teavm.interop.Address map, String string) -
lookupResource
public static org.teavm.interop.Address lookupResource(org.teavm.interop.Address map, org.teavm.interop.Address key) -
callFunctionFromTable
-