- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for NumParams (0.38 sec)
-
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/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) -
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)