Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 60 for SetPos (0.12 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/FreeListBlockStore.java

            protected void write(DataOutputStream outputStream) throws Exception {
                outputStream.writeLong(nextBlock.getPos());
                outputStream.writeInt(largestInNextBlock);
                outputStream.writeInt(entries.size());
                for (FreeListEntry entry : entries) {
                    outputStream.writeLong(entry.pos.getPos());
                    outputStream.writeInt(entry.size);
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:32 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/expr.go

    func tcCompLit(n *ir.CompLitExpr) (res ir.Node) {
    	if base.EnableTrace && base.Flag.LowerT {
    		defer tracePrint("tcCompLit", n)(&res)
    	}
    
    	lno := base.Pos
    	defer func() {
    		base.Pos = lno
    	}()
    
    	ir.SetPos(n)
    
    	t := n.Type()
    	base.AssertfAt(t != nil, n.Pos(), "missing type in composite literal")
    
    	switch t.Kind() {
    	default:
    		base.Errorf("invalid composite literal type %v", t)
    		n.SetType(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/stmt.go

    	"cmd/compile/internal/ir"
    )
    
    // The result of walkStmt MUST be assigned back to n, e.g.
    //
    //	n.Left = walkStmt(n.Left)
    func walkStmt(n ir.Node) ir.Node {
    	if n == nil {
    		return n
    	}
    
    	ir.SetPos(n)
    
    	walkStmtList(n.Init())
    
    	switch n.Op() {
    	default:
    		if n.Op() == ir.ONAME {
    			n := n.(*ir.Name)
    			base.Errorf("%v is not a top level statement", n.Sym())
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/staticinit/sched.go

    		return true // discard
    	}
    
    	// Only worry about simple "l = r" assignments. The OAS2*
    	// assignments mostly necessitate dynamic execution anyway.
    	if len(lhs) > 1 {
    		return false
    	}
    
    	lno := ir.SetPos(n)
    	defer func() { base.Pos = lno }()
    
    	nam := lhs[0].(*ir.Name)
    	return s.StaticAssign(nam, 0, rhs, nam.Type())
    }
    
    // like staticassign but we are copying an already
    // initialized value r.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/switch.go

    		body.Append(ncase.Body...)
    		if fall, pos := endsInFallthrough(ncase.Body); !fall {
    			br := ir.NewBranchStmt(base.Pos, ir.OBREAK, nil)
    			br.SetPos(pos)
    			body.Append(br)
    		}
    	}
    	sw.Cases = nil
    
    	if defaultGoto == nil {
    		br := ir.NewBranchStmt(base.Pos, ir.OBREAK, nil)
    		br.SetPos(br.Pos().WithNotStmt())
    		defaultGoto = br
    	}
    
    	s.Emit(&sw.Compiled)
    	sw.Compiled.Append(defaultGoto)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  6. src/text/template/parse/node.go

    func NewIdentifier(ident string) *IdentifierNode {
    	return &IdentifierNode{NodeType: NodeIdentifier, Ident: ident}
    }
    
    // SetPos sets the position. [NewIdentifier] is a public method so we can't modify its signature.
    // Chained for convenience.
    // TODO: fix one day?
    func (i *IdentifierNode) SetPos(pos Pos) *IdentifierNode {
    	i.Pos = pos
    	return i
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/S390X.rules

      && setPos(v, x.Pos)
      && clobber(x)
      => (STMG2 [i-8] {s} p w0 w1 mem)
    (MOVDstore [i] {s} p w2 x:(STMG2 [i-16] {s} p w0 w1 mem))
      && x.Uses == 1
      && is20Bit(int64(i)-16)
      && setPos(v, x.Pos)
      && clobber(x)
      => (STMG3 [i-16] {s} p w0 w1 w2 mem)
    (MOVDstore [i] {s} p w3 x:(STMG3 [i-24] {s} p w0 w1 w2 mem))
      && x.Uses == 1
      && is20Bit(int64(i)-24)
      && setPos(v, x.Pos)
      && clobber(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/order.go

    // described in the comment at the top of the file.
    func order(fn *ir.Func) {
    	if base.Flag.W > 1 {
    		s := fmt.Sprintf("\nbefore order %v", fn.Sym())
    		ir.DumpList(s, fn.Body)
    	}
    	ir.SetPos(fn) // Set reasonable position for instrumenting code. See issue 53688.
    	orderBlock(&fn.Body, map[string][]*ir.Name{})
    }
    
    // append typechecks stmt and appends it to out.
    func (o *orderState) append(stmt ir.Node) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/stmt.go

    	}
    	return n
    }
    
    // select
    func tcSelect(sel *ir.SelectStmt) {
    	var def *ir.CommClause
    	lno := ir.SetPos(sel)
    	Stmts(sel.Init())
    	for _, ncase := range sel.Cases {
    		if ncase.Comm == nil {
    			// default
    			if def != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/range.go

    	//	ha, hit: hidden aggregate, iterator
    	//	hn, hp: hidden len, pointer
    	//	hb: hidden bool
    	//	a, v1, v2: not hidden aggregate, val 1, 2
    
    	a := nrange.X
    	t := a.Type()
    	lno := ir.SetPos(a)
    
    	v1, v2 := nrange.Key, nrange.Value
    
    	if ir.IsBlank(v2) {
    		v2 = nil
    	}
    
    	if ir.IsBlank(v1) && v2 == nil {
    		v1 = nil
    	}
    
    	if v1 == nil && v2 != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
Back to top