Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for growMemory (0.11 sec)

  1. src/runtime/mem_wasm.go

    package runtime
    
    import "unsafe"
    
    func sbrk(n uintptr) unsafe.Pointer {
    	grow := divRoundUp(n, physPageSize)
    	size := growMemory(int32(grow))
    	if size < 0 {
    		return nil
    	}
    	resetMemoryDataView()
    	return unsafe.Pointer(uintptr(size) * physPageSize)
    }
    
    // Implemented in src/runtime/sys_wasm.s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 488 bytes
    - Viewed (0)
  2. src/runtime/sys_wasm.s

    	I64TruncF64U
    	Return
    
    TEXT runtime·exitThread(SB), NOSPLIT, $0-0
    	UNDEF
    
    TEXT runtime·osyield(SB), NOSPLIT, $0-0
    	UNDEF
    
    TEXT runtime·growMemory(SB), NOSPLIT, $0
    	Get SP
    	I32Load pages+0(FP)
    	GrowMemory
    	I32Store ret+8(FP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/wasm/anames.go

    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 02 05:28:55 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. src/cmd/link/internal/wasm/asm.go

    }
    
    // writeMemorySec writes the section that declares linear memories. Currently one linear memory is being used.
    // Linear memory always starts at address zero. More memory can be requested with the GrowMemory instruction.
    func writeMemorySec(ctxt *ld.Link, ldr *loader.Loader) {
    	sizeOffset := writeSecHeader(ctxt, sectionMemory)
    
    	dataSection := ldr.SymSect(ldr.Lookup("runtime.data", 0))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/wasm/a.out.go

    	AI64Load16S
    	AI64Load16U
    	AI64Load32S
    	AI64Load32U
    	AI32Store
    	AI64Store
    	AF32Store
    	AF64Store
    	AI32Store8
    	AI32Store16
    	AI64Store8
    	AI64Store16
    	AI64Store32
    	ACurrentMemory
    	AGrowMemory
    
    	AI32Const
    	AI64Const
    	AF32Const
    	AF64Const
    
    	AI32Eqz
    	AI32Eq
    	AI32Ne
    	AI32LtS
    	AI32LtU
    	AI32GtS
    	AI32GtU
    	AI32LeS
    	AI32LeU
    	AI32GeS
    	AI32GeU
    
    	AI64Eqz
    	AI64Eq
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 02 05:28:55 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/wasm/wasmobj.go

    			}
    			if p.From.Offset > math.MaxUint32 {
    				ctxt.Diag("bad offset in %v", p)
    			}
    			writeUleb128(w, align(p.As))
    			writeUleb128(w, uint64(p.To.Offset))
    
    		case ACurrentMemory, AGrowMemory, AMemoryFill:
    			w.WriteByte(0x00)
    
    		case AMemoryCopy:
    			w.WriteByte(0x00)
    			w.WriteByte(0x00)
    
    		}
    	}
    
    	w.WriteByte(0x0b) // end
    
    	s.P = w.Bytes()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 34.6K bytes
    - Viewed (0)
Back to top