- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for directClosureCall (0.54 sec)
-
src/cmd/compile/internal/walk/closure.go
package walk import ( "cmd/compile/internal/base" "cmd/compile/internal/ir" "cmd/compile/internal/typecheck" "cmd/compile/internal/types" "cmd/internal/src" ) // directClosureCall rewrites a direct call of a function literal into // a normal function call with closure variables passed as arguments. // This avoids allocation of a closure object. // // For illustration, the following call: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:56:08 UTC 2023 - 6.5K bytes - Viewed (0) -
src/cmd/compile/internal/walk/expr.go
// call reflect.(*rtype).Method. usemethod(n) } if n.Op() == ir.OCALLINTER { reflectdata.MarkUsedIfaceMethod(n) } if n.Op() == ir.OCALLFUNC && n.Fun.Op() == ir.OCLOSURE { directClosureCall(n) } if ir.IsFuncPCIntrinsic(n) { // For internal/abi.FuncPCABIxxx(fn), if fn is a defined function, rewrite // it to the address of the function of the ABI fn is defined.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 27.6K bytes - Viewed (0)