Package org.teavm.backend.wasm
Class WasmHeap
- java.lang.Object
-
- org.teavm.backend.wasm.WasmHeap
-
public final class WasmHeap extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static org.teavm.interop.Addressbufferstatic intbufferSizestatic org.teavm.interop.AddresscardTablestatic intDEFAULT_BUFFER_SIZEstatic intDEFAULT_REGION_SIZEstatic intDEFAULT_STACK_SIZEstatic org.teavm.interop.AddressheapAddressstatic intheapSizestatic intmaxHeapSizestatic org.teavm.interop.AddressmemoryLimitstatic intminHeapSizestatic intPAGE_SIZEstatic org.teavm.interop.AddressregionsAddressstatic intregionsCountstatic intregionSizestatic intregionsSizestatic org.teavm.interop.Addressstackstatic org.teavm.interop.AddressstackAddressstatic intstackSizestatic org.teavm.interop.AddressstorageAddressstatic intstorageSize
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcalculateRegionsCount(int heapSize, int regionSize)static intcalculateRegionsSize(int regionsCount)static intcalculateStorageSize(int heapSize)static voidgrowMemory(int amount)static voidinitHeap(org.teavm.interop.Address start, int minHeap, int maxHeap, int stackSize, int bufferSize)static voidresizeHeap(int newHeapSize)
-
-
-
Field Detail
-
PAGE_SIZE
public static final int PAGE_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_STACK_SIZE
public static final int DEFAULT_STACK_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_REGION_SIZE
public static final int DEFAULT_REGION_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
-
minHeapSize
public static int minHeapSize
-
maxHeapSize
public static int maxHeapSize
-
storageAddress
public static org.teavm.interop.Address storageAddress
-
storageSize
public static int storageSize
-
regionsAddress
public static org.teavm.interop.Address regionsAddress
-
regionsCount
public static int regionsCount
-
regionsSize
public static int regionsSize
-
cardTable
public static org.teavm.interop.Address cardTable
-
heapAddress
public static org.teavm.interop.Address heapAddress
-
heapSize
public static int heapSize
-
regionSize
public static int regionSize
-
memoryLimit
public static org.teavm.interop.Address memoryLimit
-
stackAddress
public static org.teavm.interop.Address stackAddress
-
stack
public static org.teavm.interop.Address stack
-
stackSize
public static int stackSize
-
buffer
public static org.teavm.interop.Address buffer
-
bufferSize
public static int bufferSize
-
-
Method Detail
-
calculateStorageSize
public static int calculateStorageSize(int heapSize)
-
calculateRegionsCount
public static int calculateRegionsCount(int heapSize, int regionSize)
-
calculateRegionsSize
public static int calculateRegionsSize(int regionsCount)
-
growMemory
public static void growMemory(int amount)
-
initHeap
public static void initHeap(org.teavm.interop.Address start, int minHeap, int maxHeap, int stackSize, int bufferSize)
-
resizeHeap
public static void resizeHeap(int newHeapSize)
-
-