Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 200 for clobber (0.2 sec)

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

    	length.SetType(types.Types[types.TINT])
    	length.SetTypecheck(1)
    	return ptr, length
    }
    
    // mayCall reports whether evaluating expression n may require
    // function calls, which could clobber function call arguments/results
    // currently on the stack.
    func mayCall(n ir.Node) bool {
    	// When instrumenting, any expression might require function calls.
    	if base.Flag.Cfg.Instrumenting {
    		return true
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/operand.go

    	}
    
    	// x's type V is a type parameter and T is not a named type,
    	// and values x' of each specific type in V's type set are
    	// assignable to T.
    	if Vp != nil && !hasName(T) {
    		x := *x // don't clobber outer x
    		ok := false
    		code := IncompatibleAssign
    		Vp.is(func(V *term) bool {
    			if V == nil {
    				return false // no specific types
    			}
    			x.typ = V.typ
    			ok, code = x.assignableTo(check, T, cause)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. pkg/registry/policy/poddisruptionbudget/strategy_test.go

    		t.Errorf("PodDisruptionBudget status updates should allow change of CurrentHealthy: %v", newPdb.Status.CurrentHealthy)
    	}
    	if newPdb.Spec.MinAvailable.IntValue() != 3 {
    		t.Errorf("PodDisruptionBudget status updates should not clobber spec: %v", newPdb.Spec)
    	}
    	errs := StatusStrategy.ValidateUpdate(ctx, newPdb, oldPdb)
    	if len(errs) != 0 {
    		t.Errorf("Unexpected error %v", errs)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. pkg/registry/apps/statefulset/strategy_test.go

    	if newPS.Status.Replicas != 2 {
    		t.Errorf("StatefulSet status updates should allow change of pods: %v", newPS.Status.Replicas)
    	}
    	if newPS.Spec.Replicas != 3 {
    		t.Errorf("StatefulSet status updates should not clobber spec: %v", newPS.Spec)
    	}
    	errs := StatusStrategy.ValidateUpdate(ctx, newPS, oldPS)
    	if len(errs) != 0 {
    		t.Errorf("unexpected error %v", errs)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  5. src/slices/slices.go

    		//            i  i+m      n  n+m
    		// That's the result we want.
    		return s
    	}
    
    	// The hard case - v overlaps c or d. We can't just shift up
    	// the data because we'd move or clobber the values we're trying
    	// to insert.
    	// So instead, write v on top of d, then rotate.
    	copy(s[n:], v)
    
    	// Now we have
    	// s: aaaaaaaabbbbccccccccvvvv
    	//            ^   ^       ^   ^
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 29 14:01:59 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewrite.go

    	return nil // too far away
    }
    
    // clobber invalidates values. Returns true.
    // clobber is used by rewrite rules to:
    //
    //	A) make sure the values are really dead and never used again.
    //	B) decrement use counts of the values' args.
    func clobber(vv ...*Value) bool {
    	for _, v := range vv {
    		v.reset(OpInvalid)
    		// Note: leave v.Block intact.  The Block field is used after clobber.
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewritegeneric.go

    			break
    		}
    		v.reset(OpMove)
    		v.AuxInt = int64ToAuxInt(n)
    		v.Aux = typeToAux(t1)
    		v.AddArg3(dst1, src1, mem)
    		return true
    	}
    	// match: (Move {t} [n] dst1 src1 move:(Move {t} [n] dst2 _ mem))
    	// cond: move.Uses == 1 && isSamePtr(dst1, dst2) && disjoint(src1, n, dst2, n) && clobber(move)
    	// result: (Move {t} [n] dst1 src1 mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewriteRISCV64.go

    	// cond: x.Uses == 1 && clobber(x)
    	// result: @x.Block (MOVBUload <t> [off] {sym} ptr mem)
    	for {
    		t := v.Type
    		x := v_0
    		if x.Op != OpRISCV64MOVBload {
    			break
    		}
    		off := auxIntToInt32(x.AuxInt)
    		sym := auxToSym(x.Aux)
    		mem := x.Args[1]
    		ptr := x.Args[0]
    		if !(x.Uses == 1 && clobber(x)) {
    			break
    		}
    		b = x.Block
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 205.1K bytes
    - Viewed (0)
  9. src/runtime/stack.go

    	if n&(n-1) != 0 {
    		throw("stack not a power of 2")
    	}
    	if stk.lo+n < stk.hi {
    		throw("bad stack size")
    	}
    	if stackDebug >= 1 {
    		println("stackfree", v, n)
    		memclrNoHeapPointers(v, n) // for testing, clobber stack data
    	}
    	if debug.efence != 0 || stackFromSystem != 0 {
    		if debug.efence != 0 || stackFaultOnFree != 0 {
    			sysFault(v, n)
    		} else {
    			sysFree(v, n, &memstats.stacks_sys)
    		}
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/RISCV64Ops.go

    		fp2gp   = regInfo{inputs: []regMask{fpMask, fpMask}, outputs: []regMask{gpMask}}
    
    		call        = regInfo{clobbers: callerSave}
    		callClosure = regInfo{inputs: []regMask{gpspMask, regCtxt, 0}, clobbers: callerSave}
    		callInter   = regInfo{inputs: []regMask{gpMask}, clobbers: callerSave}
    	)
    
    	RISCV64ops := []opData{
    		{name: "ADD", argLength: 2, reg: gp21, asm: "ADD", commutative: true}, // arg0 + arg1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top