Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for funcLayout (0.14 sec)

  1. src/reflect/export_test.go

    	return v.flag&flagStickyRO != 0
    }
    
    var CallGC = &callGC
    
    // FuncLayout calls funcLayout and returns a subset of the results for testing.
    //
    // Bitmaps like stack, gc, inReg, and outReg are expanded such that each bit
    // takes up one byte, so that writing out test cases is a little clearer.
    // If ptrs is false, gc will be nil.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. src/reflect/makefunc.go

    	}
    
    	t := typ.common()
    	ftyp := (*funcType)(unsafe.Pointer(t))
    
    	code := abi.FuncPCABI0(makeFuncStub)
    
    	// makeFuncImpl contains a stack map for use by the runtime
    	_, _, abid := funcLayout(ftyp, nil)
    
    	impl := &makeFuncImpl{
    		makeFuncCtxt: makeFuncCtxt{
    			fn:      code,
    			stack:   abid.stackPtrs,
    			argLen:  abid.stackCallArgsSize,
    			regPtrs: abid.inRegPtrs,
    		},
    		ftyp: ftyp,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:20:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. src/reflect/type.go

    // the name for possible debugging use.
    func funcLayout(t *funcType, rcvr *abi.Type) (frametype *abi.Type, framePool *sync.Pool, abid abiDesc) {
    	if t.Kind() != abi.Func {
    		panic("reflect: funcLayout of non-func type " + stringFor(&t.Type))
    	}
    	if rcvr != nil && rcvr.Kind() == abi.Interface {
    		panic("reflect: funcLayout with interface receiver " + stringFor(rcvr))
    	}
    	k := layoutKey{t, rcvr}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  4. src/reflect/all_test.go

    			if typ.Size() != lt.size {
    				t.Errorf("funcLayout(%v, %v).size=%d, want %d", lt.typ, lt.rcvr, typ.Size(), lt.size)
    			}
    			if argsize != lt.argsize {
    				t.Errorf("funcLayout(%v, %v).argsize=%d, want %d", lt.typ, lt.rcvr, argsize, lt.argsize)
    			}
    			if retOffset != lt.retOffset {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  5. src/reflect/value.go

    	// has its own ABI ("method ABI"). Everything that follows is a translation
    	// between the two.
    	_, _, valueABI := funcLayout(valueFuncType, nil)
    	valueFrame, valueRegs := frame, regs
    	methodFrameType, methodFramePool, methodABI := funcLayout(valueFuncType, rcvrType)
    
    	// Make a new frame that is one word bigger so we can store the receiver.
    	// This space is used for both arguments and return values.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top