Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for LocalSlot (0.18 sec)

  1. src/cmd/compile/internal/ssa/func.go

    	f.Cache.scrPoset = append(f.Cache.scrPoset, po)
    }
    
    func (f *Func) localSlotAddr(slot LocalSlot) *LocalSlot {
    	a, ok := f.CanonicalLocalSlots[slot]
    	if !ok {
    		a = new(LocalSlot)
    		*a = slot // don't escape slot
    		f.CanonicalLocalSlots[slot] = a
    	}
    	return a
    }
    
    func (f *Func) SplitString(name *LocalSlot) (*LocalSlot, *LocalSlot) {
    	ptrType := types.NewPtr(types.Types[types.TUINT8])
    	lenType := types.Types[types.TINT]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/export_test.go

    	t    testing.TB
    	ctxt *obj.Link
    	f    *ir.Func
    }
    
    func (TestFrontend) StringData(s string) *obj.LSym {
    	return nil
    }
    func (d TestFrontend) SplitSlot(parent *LocalSlot, suffix string, offset int64, t *types.Type) LocalSlot {
    	return LocalSlot{N: parent.N, Type: t, Off: offset}
    }
    func (d TestFrontend) Syslook(s string) *obj.LSym {
    	return d.ctxt.Lookup(s)
    }
    func (TestFrontend) UseWriteBarrier() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/debug.go

    	slmap  map[slotKey]SlKeyIdx
    	slkeys []LocalSlot
    }
    
    func newSlotCanonicalizer() *slotCanonicalizer {
    	return &slotCanonicalizer{
    		slmap:  make(map[slotKey]SlKeyIdx),
    		slkeys: []LocalSlot{LocalSlot{N: nil}},
    	}
    }
    
    type SlKeyIdx uint32
    
    const noSlot = SlKeyIdx(0)
    
    // slotKey is a type-insensitive encapsulation of a LocalSlot; it
    // is used to key a map within slotCanonicalizer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/pgen.go

    		fn.LSym.R[i].Type |= objabi.R_WEAK
    	}
    }
    
    // StackOffset returns the stack location of a LocalSlot relative to the
    // stack pointer, suitable for use in a DWARF location entry. This has nothing
    // to do with its offset in the user variable.
    func StackOffset(slot ssa.LocalSlot) int32 {
    	n := slot.N
    	var off int64
    	switch n.Class {
    	case ir.PPARAM, ir.PPARAMOUT:
    		if !n.IsOutputParamInRegisters() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssagen/ssa.go

    func (e *ssafn) SplitSlot(parent *ssa.LocalSlot, suffix string, offset int64, t *types.Type) ssa.LocalSlot {
    	node := parent.N
    
    	if node.Class != ir.PAUTO || node.Addrtaken() {
    		// addressed things and non-autos retain their parents (i.e., cannot truly be split)
    		return ssa.LocalSlot{N: node, Type: t, Off: parent.Off + offset}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top