Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for makeslicecopy (0.82 sec)

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

    		orderMakeSliceCopy(s[i:])
    		o.stmt(s[i])
    	}
    }
    
    // orderMakeSliceCopy matches the pattern:
    //
    //	m = OMAKESLICE([]T, x); OCOPY(m, s)
    //
    // and rewrites it to:
    //
    //	m = OMAKESLICECOPY([]T, x, s); nil
    func orderMakeSliceCopy(s []ir.Node) {
    	if base.Flag.N != 0 || base.Flag.Cfg.Instrumenting {
    		return
    	}
    	if len(s) < 2 || s[0] == nil || s[0].Op() != ir.OAS || s[1] == nil || s[1].Op() != ir.OCOPY {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/staticinit/sched.go

    			return true
    		}
    
    	// Only possible side effect is panic on invalid size.
    	// TODO(rsc): Merge with previous case (probably breaks toolstash -cmp).
    	case ir.OMAKESLICE, ir.OMAKESLICECOPY:
    		return true
    	}
    	return false
    }
    
    // AnySideEffects reports whether n contains any operations that could have observable side effects.
    func AnySideEffects(n ir.Node) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/expr.go

    		return walkMakeChan(n, init)
    
    	case ir.OMAKEMAP:
    		n := n.(*ir.MakeExpr)
    		return walkMakeMap(n, init)
    
    	case ir.OMAKESLICE:
    		n := n.(*ir.MakeExpr)
    		return walkMakeSlice(n, init)
    
    	case ir.OMAKESLICECOPY:
    		n := n.(*ir.MakeExpr)
    		return walkMakeSliceCopy(n, init)
    
    	case ir.ORUNESTR:
    		n := n.(*ir.ConvExpr)
    		return walkRuneToString(n, init)
    
    	case ir.OBYTES2STR, ir.ORUNES2STR:
    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