Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for growMemory (0.17 sec)

  1. 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)
  2. 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