Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for writeUleb128 (0.36 sec)

  1. src/cmd/compile/internal/inline/inlheur/serialize.go

    	if funcProps == nil {
    		return ""
    	}
    	var sb strings.Builder
    	writeUleb128(&sb, uint64(funcProps.Flags))
    	writeUleb128(&sb, uint64(len(funcProps.ParamFlags)))
    	for _, pf := range funcProps.ParamFlags {
    		writeUleb128(&sb, uint64(pf))
    	}
    	writeUleb128(&sb, uint64(len(funcProps.ResultFlags)))
    	for _, rf := range funcProps.ResultFlags {
    		writeUleb128(&sb, uint64(rf))
    	}
    	return sb.String()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 15:02:55 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/link/internal/wasm/asm.go

    	sizeOffset := writeSecHeader(ctxt, sectionElement)
    
    	writeUleb128(ctxt.Out, 1) // number of element segments
    
    	writeUleb128(ctxt.Out, 0) // tableidx
    	writeI32Const(ctxt.Out, funcValueOffset)
    	ctxt.Out.WriteByte(0x0b) // end
    
    	writeUleb128(ctxt.Out, numFns) // number of entries
    	for i := uint64(0); i < numFns; i++ {
    		writeUleb128(ctxt.Out, numImports+i)
    	}
    
    	writeSecSize(ctxt, sizeOffset)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/wasm/wasmobj.go

    				panic("bad Br/BrIf")
    			}
    			writeUleb128(w, uint64(p.To.Offset))
    
    		case ABrTable:
    			idxs := p.To.Val.([]uint64)
    			writeUleb128(w, uint64(len(idxs)-1))
    			for _, idx := range idxs {
    				writeUleb128(w, idx)
    			}
    
    		case ACall:
    			switch p.To.Type {
    			case obj.TYPE_CONST:
    				writeUleb128(w, uint64(p.To.Offset))
    
    			case obj.TYPE_MEM:
    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