- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for NumParams (0.43 sec)
-
src/cmd/compile/internal/types/identity.go
return true case TFUNC: // Check parameters and result parameters for type equality. // We intentionally ignore receiver parameters for type // equality, because they're never relevant. if t1.NumParams() != t2.NumParams() || t1.NumResults() != t2.NumResults() || t1.IsVariadic() != t2.IsVariadic() { return false } fs1 := t1.ParamsResults() fs2 := t2.ParamsResults() for i, f1 := range fs1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 20:57:01 UTC 2023 - 4.6K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/dcl.go
if recv != nil { nrecvs++ } // TODO(mdempsky): Move this function to types. // TODO(mdempsky): Preserve positions, names, and package from sig+recv. params := make([]*types.Field, nrecvs+sig.NumParams()) if recv != nil { params[0] = types.NewField(base.Pos, nil, recv) } for i, param := range sig.Params() { d := types.NewField(base.Pos, nil, param.Type) d.SetIsDDD(param.IsDDD())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:15:50 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/stmt.go
// call without arguments or results. func validGoDeferCall(call ir.Node) bool { if call, ok := call.(*ir.CallExpr); ok && call.Op() == ir.OCALLFUNC && len(call.KeepAlive) == 0 { sig := call.Fun.Type() return sig.NumParams()+sig.NumResults() == 0 } return false } // walkGoDefer walks an OGO or ODEFER node. func walkGoDefer(n *ir.GoDeferStmt) ir.Node { if !validGoDeferCall(n.Call) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 06 15:42:30 UTC 2023 - 4.7K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
src/cmd/compile/internal/test/abiutils_test.go
`) abitest(t, ft, exp) // Test that NumParamRegs doesn't assign registers to trailing padding. typ := mkstruct(i64, i64, mkstruct()) have := configAMD64.NumParamRegs(typ) if have != 2 { t.Errorf("NumParams(%v): have %v, want %v", typ, have, 2) } } func TestABIUtilsSliceString(t *testing.T) { // func(p1 []int32, p2 int8, p3 []int32, p4 int8, p5 string,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 15:11:40 UTC 2023 - 14.2K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/stmt.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:10:54 UTC 2023 - 17.8K bytes - Viewed (0) -
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)