Package org.teavm.backend.wasm
Class WasmRuntime
java.lang.Object
org.teavm.backend.wasm.WasmRuntime
-
Method Summary
Modifier and TypeMethodDescriptionstatic intalign(int value, int alignment) static org.teavm.interop.Addressalign(org.teavm.interop.Address address, int alignment) static org.teavm.interop.AddressallocStack(int size) static voidcallFunctionFromTable(int index, RuntimeObject instance) static intcompare(double a, double b) static intcompare(float a, float b) static intcompare(int a, int b) static intcompare(long a, long b) static intcompareUnsigned(int a, int b) static intcompareUnsigned(long a, long b) static voidfill(org.teavm.interop.Address address, byte value, int count) static voidfillZero(org.teavm.interop.Address address, int count) static intgetCallSiteId(org.teavm.interop.Address stackFrame) static org.teavm.interop.AddressgetNextStackFrame(org.teavm.interop.Address stackFrame) static intgetStackRootCount(org.teavm.interop.Address stackFrame) static org.teavm.interop.AddressgetStackRootPointer(org.teavm.interop.Address stackFrame) static org.teavm.interop.Addressstatic org.teavm.interop.AddresslookupResource(org.teavm.interop.Address map, String string) static org.teavm.interop.AddresslookupResource(org.teavm.interop.Address map, org.teavm.interop.Address key) static doublemax(double a, double b) static floatmax(float a, float b) static doublemin(double a, double b) static floatmin(float a, float b) static voidprint(int a) static voidprintInt(int i) static voidstatic voidstatic doubleremainder(double a, double b) static floatremainder(float a, float b) static String[]resourceMapKeys(org.teavm.interop.Address map) static voidsetExceptionHandlerId(org.teavm.interop.Address stackFrame, int id) static voidsetExceptionHandlerRestore(org.teavm.interop.Address stackFrame) static voidsetExceptionHandlerSkip(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
-