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 Address
static Address
allocStack(int size)
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 void
static void
static int
getCallSiteId(Address stackFrame)
static Address
getNextStackFrame(Address stackFrame)
static int
getStackRootCount(Address stackFrame)
static Address
getStackRootPointer(Address stackFrame)
static Address
static Address
lookupResource(Address map, String string)
static void
moveMemoryBlock(Address source, Address target, int count)
static void
print(int a)
static void
printInt(int i)
static void
static void
printString(String s)
static double
remainder(double a, double b)
static float
remainder(float a, float b)
static String[]
resourceMapKeys(Address map)
static void
setExceptionHandlerId(Address stackFrame, int id)
-
Method Details
-
compare
public static int compare(int a, int 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) -
remainder
public static float remainder(float a, float b) -
remainder
public static double remainder(double a, double b) -
align
-
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
-
fill
-
moveMemoryBlock
-
allocStack
-
getStackTop
-
getNextStackFrame
-
getStackRootCount
-
getStackRootPointer
-
getCallSiteId
-
setExceptionHandlerId
-
resourceMapKeys
-
lookupResource
-