Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for NumParams (0.3 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AsmBackedClassGenerator.java

                int numParams = originalParameterTypes.length;
                Type[] closurisedParameterTypes = new Type[numParams];
                System.arraycopy(originalParameterTypes, 0, closurisedParameterTypes, 0, numParams);
                closurisedParameterTypes[numParams - 1] = CLOSURE_TYPE;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:40:00 UTC 2024
    - 100.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/walk.go

    	if init == nil {
    		base.Fatalf("mkcall with nil init: %v", fn)
    	}
    	if fn.Type() == nil || fn.Type().Kind() != types.TFUNC {
    		base.Fatalf("mkcall %v %v", fn, fn.Type())
    	}
    
    	n := fn.Type().NumParams()
    	if n != len(va) {
    		base.Fatalf("vmkcall %v needs %v args got %v", fn, n, len(va))
    	}
    
    	call := typecheck.Call(base.Pos, fn, va, false).(*ir.CallExpr)
    	call.SetType(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/type.go

    func (t *Type) NumRecvs() int   { return len(t.Recvs()) }
    func (t *Type) NumParams() int  { return len(t.Params()) }
    func (t *Type) NumResults() int { return len(t.Results()) }
    
    // IsVariadic reports whether function type t is variadic.
    func (t *Type) IsVariadic() bool {
    	n := t.NumParams()
    	return n > 0 && t.Param(n-1).IsDDD()
    }
    
    // Recv returns the receiver of function type t, if any.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/abi.go

    	// to allocate any stack space). Doing this will require some
    	// extra work in typecheck/walk/ssa, might want to add a new node
    	// OTAILCALL or something to this effect.
    	tailcall := fn.Type().NumResults() == 0 && fn.Type().NumParams() == 0 && fn.Type().NumRecvs() == 0
    	if base.Ctxt.Arch.Name == "ppc64le" && base.Ctxt.Flag_dynlink {
    		// cannot tailcall on PPC64 with dynamic linking, as we need
    		// to restore R2 after call.
    		tailcall = false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/func.go

    // explicit ... argument if one is not already present.
    func FixVariadicCall(call *ir.CallExpr) {
    	fntype := call.Fun.Type()
    	if !fntype.IsVariadic() || call.IsDDD {
    		return
    	}
    
    	vi := fntype.NumParams() - 1
    	vt := fntype.Param(vi).Type
    
    	args := call.Args
    	extra := args[vi:]
    	slice := MakeDotArgs(call.Pos(), vt, extra)
    	for i := range extra {
    		extra[i] = nil // allow GC
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/expr.go

    	//	reflect.Value.MethodByName - func(string) reflect.Value
    	methodName := dot.Sel.Name
    	t := dot.Selection.Type
    
    	// Check the number of arguments and return values.
    	if t.NumParams() != 1 || (t.NumResults() != 1 && t.NumResults() != 2) {
    		return
    	}
    
    	// Check the type of the argument.
    	switch pKind := t.Param(0).Type.Kind(); {
    	case methodName == "Method" && pKind == types.TINT,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssagen/ssa.go

    		}
    	}
    }
    
    // emit argument info (locations on stack) for traceback.
    func emitArgInfo(e *ssafn, f *ssa.Func, pp *objw.Progs) {
    	ft := e.curfn.Type()
    	if ft.NumRecvs() == 0 && ft.NumParams() == 0 {
    		return
    	}
    
    	x := EmitArgInfo(e.curfn, f.OwnAux.ABIInfo())
    	x.Set(obj.AttrContentAddressable, true)
    	e.curfn.LSym.Func().ArgInfo = x
    
    	// Emit a funcdata pointing at the arg info data.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top