Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for builtinMap (0.19 sec)

  1. src/cmd/internal/goobj/builtin.go

    func BuiltinIdx(name string, abi int) int {
    	i, ok := builtinMap[name]
    	if !ok {
    		return -1
    	}
    	if buildcfg.Experiment.RegabiWrappers && builtins[i].abi != abi {
    		return -1
    	}
    	return i
    }
    
    //go:generate go run mkbuiltin.go
    
    var builtinMap map[string]int
    
    func init() {
    	builtinMap = make(map[string]int, len(builtins))
    	for i, b := range builtins {
    		builtinMap[b.name] = i
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 22 13:50:24 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/func.go

    	n.Fun = typecheck(n.Fun, ctxExpr|ctxType|ctxCallee)
    
    	l := n.Fun
    
    	if l.Op() == ir.ONAME && l.(*ir.Name).BuiltinOp != 0 {
    		l := l.(*ir.Name)
    		if n.IsDDD && l.BuiltinOp != ir.OAPPEND {
    			base.Errorf("invalid use of ... with builtin %v", l)
    		}
    
    		// builtin: OLEN, OCAP, etc.
    		switch l.BuiltinOp {
    		default:
    			base.Fatalf("unknown builtin %v", l)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/typecheck.go

    		n = n.(*ir.ParenExpr).X
    	}
    
    	switch n.Op() {
    	default:
    		ir.Dump("typecheck", n)
    		base.Fatalf("typecheck %v", n.Op())
    		panic("unreachable")
    
    	case ir.ONAME:
    		n := n.(*ir.Name)
    		if n.BuiltinOp != 0 {
    			if top&ctxCallee == 0 {
    				base.Errorf("use of builtin %v not in function call", n.Sym())
    				n.SetType(nil)
    				return n
    			}
    			return n
    		}
    		if top&ctxAssign == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top