Class WasmHeap


  • public final class WasmHeap
    extends java.lang.Object
    • Field Detail

      • 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)