Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ErrorfAt (0.11 sec)

  1. src/cmd/compile/internal/ssagen/abi.go

    		default:
    			base.ErrorfAt(f.Pos(), 0, "go:wasmimport %s %s: unsupported parameter type %s", f.WasmImport.Module, f.WasmImport.Name, t.String())
    		}
    		wfs[i].Offset = p.FrameOffset(result)
    	}
    	return wfs
    }
    
    func resultsToWasmFields(f *ir.Func, result *abi.ABIParamResultInfo, abiParams []abi.ABIParamAssignment) []obj.WasmField {
    	if len(abiParams) > 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssagen/nowb.go

    			funcs[fn] = nowritebarrierrecCall{}
    			q.PushRight(fn.Nname)
    		}
    		// Check go:nowritebarrier functions.
    		if fn.Pragma&ir.Nowritebarrier != 0 && fn.WBPos.IsKnown() {
    			base.ErrorfAt(fn.WBPos, 0, "write barrier prohibited")
    		}
    	}
    
    	// Perform a BFS of the call graph from all
    	// go:nowritebarrierrec functions.
    	enqueue := func(src, target *ir.Func, pos src.XPos) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 17:29:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ir/func.go

    // assertion?
    func FuncPC(pos src.XPos, n Node, wantABI obj.ABI) Node {
    	if !n.Type().IsInterface() {
    		base.ErrorfAt(pos, 0, "internal/abi.FuncPC%s expects an interface value, got %v", wantABI, n.Type())
    	}
    
    	if fn := IsIfaceOfFunc(n); fn != nil {
    		name := fn.Nname
    		abi := fn.ABI
    		if abi != wantABI {
    			base.ErrorfAt(pos, 0, "internal/abi.FuncPC%s expects an %v function, %s is defined as %v", wantABI, wantABI, name.Sym().Name, abi)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types/size.go

    	addMethod := func(m *Field, explicit bool) {
    		switch prev := seen[m.Sym]; {
    		case prev == nil:
    			seen[m.Sym] = m
    		case !explicit && Identical(m.Type, prev.Type):
    			return
    		default:
    			base.ErrorfAt(m.Pos, errors.DuplicateDecl, "duplicate method %s", m.Sym.Name)
    		}
    		methods = append(methods, m)
    	}
    
    	{
    		methods := t.Methods()
    		sort.SliceStable(methods, func(i, j int) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssagen/pgen.go

    	})
    	for _, large := range largeStackFrames {
    		if large.callee != 0 {
    			base.ErrorfAt(large.pos, 0, "stack frame too large (>1GB): %d MB locals + %d MB args + %d MB callee", large.locals>>20, large.args>>20, large.callee>>20)
    		} else {
    			base.ErrorfAt(large.pos, 0, "stack frame too large (>1GB): %d MB locals + %d MB args", large.locals>>20, large.args>>20)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/expr.go

    		n.SetType(nil)
    		return n
    	}
    	op, why := convertOp(n.X.Op() == ir.OLITERAL, t, n.Type())
    	if op == ir.OXXX {
    		// Due to //go:nointerface, we may be stricter than types2 here (#63333).
    		base.ErrorfAt(n.Pos(), errors.InvalidConversion, "cannot convert %L to type %v%s", n.X, n.Type(), why)
    		n.SetType(nil)
    		return n
    	}
    
    	n.SetOp(op)
    	switch n.Op() {
    	case ir.OCONVNOP:
    		if t.Kind() == n.Type().Kind() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types/type.go

    	for _, w := range ft.Copyto {
    		w.SetUnderlying(t)
    	}
    
    	// Double-check use of type as embedded type.
    	if ft.Embedlineno.IsKnown() {
    		if t.IsPtr() || t.IsUnsafePtr() {
    			base.ErrorfAt(ft.Embedlineno, errors.InvalidPtrEmbed, "embedded type cannot be a pointer")
    		}
    	}
    }
    
    func fieldsHasShape(fields []*Field) bool {
    	for _, f := range fields {
    		if f.Type != nil && f.Type.HasShape() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
Back to top