Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 306 for mpos (0.04 sec)

  1. src/go/types/typeset.go

    		// Types don't generally have position information.
    		// If we don't have a valid pos provided, try to use
    		// one close enough.
    		if !pos.IsValid() && len(ityp.methods) > 0 {
    			pos = ityp.methods[0].pos
    		}
    
    		check.trace(pos, "-- type set for %s", ityp)
    		check.indent++
    		defer func() {
    			check.indent--
    			check.trace(pos, "=> %s ", ityp.typeSet())
    		}()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typeset.go

    		// Types don't generally have position information.
    		// If we don't have a valid pos provided, try to use
    		// one close enough.
    		if !pos.IsKnown() && len(ityp.methods) > 0 {
    			pos = ityp.methods[0].pos
    		}
    
    		check.trace(pos, "-- type set for %s", ityp)
    		check.indent++
    		defer func() {
    			check.indent--
    			check.trace(pos, "=> %s ", ityp.typeSet())
    		}()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. src/runtime/arena_test.go

    		sss := make([]smallScalar, 25)
    		for i := range sss {
    			sss[i] = smallScalar{12}
    		}
    		runSubTestUserArenaSlice(t, sss, true)
    
    		mpos := make([]mediumPointerOdd, 5)
    		for i := range mpos {
    			mpos[i] = *mpo
    		}
    		runSubTestUserArenaSlice(t, mpos, true)
    
    		sps := make([]smallPointer, UserArenaChunkBytes/unsafe.Sizeof(smallPointer{})+1)
    		for i := range sps {
    			sps[i] = *sp
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. src/go/internal/gcimporter/iimport.go

    	prevLine   int64
    	prevColumn int64
    }
    
    func (r *importReader) obj(name string) {
    	tag := r.byte()
    	pos := r.pos()
    
    	switch tag {
    	case 'A':
    		typ := r.typ()
    
    		r.declare(types.NewTypeName(pos, r.currPkg, name, typ))
    
    	case 'C':
    		typ, val := r.value()
    
    		r.declare(types.NewConst(pos, r.currPkg, name, typ, val))
    
    	case 'F', 'G':
    		var tparams []*types.TypeParam
    		if tag == 'G' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ir/func.go

    }
    
    // NewFunc returns a new Func with the given name and type.
    //
    // fpos is the position of the "func" token, and npos is the position
    // of the name identifier.
    //
    // TODO(mdempsky): I suspect there's no need for separate fpos and
    // npos.
    func NewFunc(fpos, npos src.XPos, sym *types.Sym, typ *types.Type) *Func {
    	name := NewNameAt(npos, sym, typ)
    	name.Class = PFUNC
    	sym.SetFunc(true)
    
    	fn := &Func{Nname: name}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  6. src/cmd/internal/src/xpos.go

    }
    
    // XPos returns the corresponding XPos for the given pos,
    // adding pos to t if necessary.
    func (t *PosTable) XPos(pos Pos) XPos {
    	return XPos{t.baseIndex(pos.base), pos.lico}
    }
    
    func (t *PosTable) baseIndex(base *PosBase) int32 {
    	if base == nil {
    		return 0
    	}
    
    	if i, ok := t.indexMap[base]; ok {
    		return int32(i)
    	}
    
    	if base.fileIndex >= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/pos.go

    func MakePos(base *PosBase, line, col uint) Pos { return Pos{base, sat32(line), sat32(col)} }
    
    // TODO(gri) IsKnown makes an assumption about linebase < 1.
    // Maybe we should check for Base() != nil instead.
    
    func (pos Pos) Pos() Pos       { return pos }
    func (pos Pos) IsKnown() bool  { return pos.line > 0 }
    func (pos Pos) Base() *PosBase { return pos.base }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:57 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/cmd/internal/src/pos.go

    	}
    	base := *orig
    	base.inl = inlTreeIndex
    	base.fileIndex = -1
    	if orig == orig.pos.base {
    		base.pos.base = &base
    	}
    	return &base
    }
    
    var noPos Pos
    
    // Pos returns the position at which base is located.
    // If b == nil, the result is the zero position.
    func (b *PosBase) Pos() *Pos {
    	if b != nil {
    		return &b.pos
    	}
    	return &noPos
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  9. src/cmd/internal/src/xpos_test.go

    	}
    }
    
    func TestSetBase(t *testing.T) {
    	var tab PosTable
    	b1 := NewFileBase("b1", "b1")
    	orig := MakePos(b1, 42, 7)
    	xpos := tab.XPos(orig)
    
    	pos := tab.Pos(xpos)
    	new := NewInliningBase(b1, 2)
    	pos.SetBase(new)
    	xpos = tab.XPos(pos)
    
    	pos = tab.Pos(xpos)
    	if inl := pos.Base().InliningIndex(); inl != 2 {
    		t.Fatalf("wrong inlining index: %d", inl)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/reflectdata/helpers.go

    func kindRType(pos src.XPos, typ *types.Type, k types.Kind) ir.Node {
    	base.AssertfAt(typ.Kind() == k, pos, "want %v type, have %v", k, typ)
    	return TypePtrAt(pos, typ)
    }
    
    // mapRType asserts that typ is a map type, and returns an expression
    // that yields the *runtime._type value representing typ.
    func mapRType(pos src.XPos, typ *types.Type) ir.Node {
    	return kindRType(pos, typ, types.TMAP)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
Back to top