Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for SetOp (0.07 sec)

  1. src/cmd/compile/internal/walk/convert.go

    	if n.TypeWord == nil || n.TypeWord.Op() == ir.OADDR && n.TypeWord.(*ir.AddrExpr).X.Op() == ir.OLINKSYMOFFSET {
    		// Fixed (not loaded from a dictionary) type.
    		ta := ir.NewTypeAssertExpr(base.Pos, c, toType)
    		ta.SetOp(ir.ODOTTYPE2)
    		// Allocate a descriptor for this conversion to pass to the runtime.
    		ta.Descriptor = makeTypeAssertDescriptor(toType, true)
    		rhs = ta
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/switch.go

    	// because walkExpr will lower the string
    	// conversion into a runtime call.
    	// See issue 24937 for more discussion.
    	if cond.Op() == ir.OBYTES2STR && allCaseExprsAreSideEffectFree(sw) {
    		cond := cond.(*ir.ConvExpr)
    		cond.SetOp(ir.OBYTES2STRTMP)
    	}
    
    	cond = walkExpr(cond, sw.PtrInit())
    	if cond.Op() != ir.OLITERAL && cond.Op() != ir.ONIL {
    		cond = copyExpr(cond, cond.Type(), &sw.Compiled)
    	}
    
    	base.Pos = lno
    
    	s := exprSwitch{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/expr.go

    	if n.RType != nil && n.RType.Op() == ir.OADDR {
    		addr := n.RType.(*ir.AddrExpr)
    		if addr.X.Op() == ir.OLINKSYMOFFSET {
    			r := ir.NewTypeAssertExpr(n.Pos(), n.X, n.Type())
    			if n.Op() == ir.ODYNAMICDOTTYPE2 {
    				r.SetOp(ir.ODOTTYPE2)
    			}
    			r.SetType(n.Type())
    			r.SetTypecheck(1)
    			return walkExpr(r, init)
    		}
    	}
    	return n
    }
    
    // walkIndex walks an OINDEX node.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
Back to top