Lines Matching defs:maxMemory
481 uint64_t maxMemory = 0;
482 if (ctx.arg.maxMemory != 0) {
483 if (ctx.arg.maxMemory != alignTo(ctx.arg.maxMemory, WasmPageSize))
485 if (memoryPtr > ctx.arg.maxMemory)
487 if (ctx.arg.maxMemory > maxMemorySetting)
491 maxMemory = ctx.arg.maxMemory;
493 maxMemory = memoryPtr;
496 // If no maxMemory config was supplied but we are building with
498 if (ctx.arg.sharedMemory && maxMemory == 0) {
500 maxMemory = maxMemorySetting;
502 maxMemory = memoryPtr;
505 if (maxMemory != 0) {
506 out.memorySec->maxMemoryPages = maxMemory / WasmPageSize;