Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for inherit (0.58 sec)

  1. src/cmd/go/internal/cache/default.go

    func DefaultDir() (string, bool) {
    	// Save the result of the first call to DefaultDir for later use in
    	// initDefaultCache. cmd/go/main.go explicitly sets GOCACHE so that
    	// subprocesses will inherit it, but that means initDefaultCache can't
    	// otherwise distinguish between an explicit "off" and a UserCacheDir error.
    
    	defaultDirOnce.Do(func() {
    		defaultDir = cfg.Getenv("GOCACHE")
    		if defaultDir != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/build_test.go

    	})
    
    	setgiddir, err := os.MkdirTemp("", "SetGroupID")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(setgiddir)
    
    	// BSD mkdir(2) inherits the parent directory group, and other platforms
    	// can inherit the parent directory group via setgid. The test setup (chmod
    	// setgid) will fail if the process does not have the group permission to
    	// the new temporary directory.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/decl.go

    			iota := constant.MakeInt64(int64(index - first))
    
    			// determine which initialization expressions to use
    			inherited := true
    			switch {
    			case s.Type != nil || s.Values != nil:
    				last = s
    				inherited = false
    			case last == nil:
    				last = new(syntax.ConstDecl) // make sure last exists
    				inherited = false
    			}
    
    			// declare all constants
    			lhs := make([]*Const, len(s.NameList))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/resolver.go

    // If inherited is set, the initialization values are from
    // another (constant) declaration.
    func (check *Checker) arity(pos syntax.Pos, names []*syntax.Name, inits []syntax.Expr, constDecl, inherited bool) {
    	l := len(names)
    	r := len(inits)
    
    	const code = WrongAssignCount
    	switch {
    	case l < r:
    		n := inits[l]
    		if inherited {
    			check.errorf(pos, code, "extra init expr at %s", n.Pos())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/labels.go

    	labels map[string]*syntax.LabeledStmt // allocated lazily
    }
    
    // insert records a new label declaration for the current block.
    // The label must not have been declared before in any block.
    func (b *block) insert(s *syntax.LabeledStmt) {
    	name := s.Label.Value
    	if debug {
    		assert(b.gotoTarget(name) == nil)
    	}
    	labels := b.labels
    	if labels == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/compile.go

    type constraint struct {
    	a, b string // a must come before b
    }
    
    var passOrder = [...]constraint{
    	// "insert resched checks" uses mem, better to clean out stores first.
    	{"dse", "insert resched checks"},
    	// insert resched checks adds new blocks containing generic instructions
    	{"insert resched checks", "lower"},
    	{"insert resched checks", "tighten"},
    
    	// prove relies on common-subexpression elimination for maximum benefits.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssagen/ssa.go

    		s.exit()
    		s.popLine()
    	}
    
    	for _, b := range s.f.Blocks {
    		if b.Pos != src.NoXPos {
    			s.updateUnsetPredPos(b)
    		}
    	}
    
    	s.f.HTMLWriter.WritePhase("before insert phis", "before insert phis")
    
    	s.insertPhis()
    
    	// Main call to ssa package to compile function
    	ssa.Compile(s.f)
    
    	fe.AllocFrame(s.f)
    
    	if len(s.openDefers) != 0 {
    		s.emitOpenDeferInfo()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/compiler_internal.go

    		panic("Cannot change an existing name")
    	}
    
    	pos := a.Pos()
    	typ := a.Type.GetTypeInfo().Type
    
    	name := fmt.Sprintf("#rv%d", i+1)
    	obj.name = name
    	s.scope.Insert(obj)
    	obj.setScopePos(pos)
    
    	tv := syntax.TypeAndValue{Type: typ}
    	tv.SetIsValue()
    
    	n := syntax.NewName(pos, obj.Name())
    	n.SetTypeInfo(tv)
    
    	a.Name = n
    
    	return obj, n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/closure.go

    func directClosureCall(n *ir.CallExpr) {
    	clo := n.Fun.(*ir.ClosureExpr)
    	clofn := clo.Func
    
    	if ir.IsTrivialClosure(clo) {
    		return // leave for walkClosure to handle
    	}
    
    	// We are going to insert captured variables before input args.
    	var params []*types.Field
    	var decls []*ir.Name
    	for _, v := range clofn.ClosureVars {
    		if !v.Byval() {
    			// If v of type T is captured by reference,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  10. src/archive/tar/strconv.go

    	if len(b) > 0 && b[0]&0x80 != 0 {
    		// Handling negative numbers relies on the following identity:
    		//	-a-1 == ^a
    		//
    		// If the number is negative, we use an inversion mask to invert the
    		// data bytes and treat the value as an unsigned number.
    		var inv byte // 0x00 if positive or zero, 0xff if negative
    		if b[0]&0x40 != 0 {
    			inv = 0xff
    		}
    
    		var x uint64
    		for i, c := range b {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top