- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for methodValueCallCodePtr (0.25 sec)
-
src/reflect/export_test.go
oldFloats = floatArgRegs oldFloatSize = floatRegSize intArgRegs = ints floatArgRegs = floats floatRegSize = floatSize clearLayoutCache() return } var MethodValueCallCodePtr = methodValueCallCodePtr var InternalIsZero = isZero
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 3.8K bytes - Viewed (0) -
src/reflect/makefunc.go
fl |= flag(v.typ().Kind()) rcvr := Value{v.typ(), v.ptr, fl} // v.Type returns the actual type of the method value. ftyp := (*funcType)(unsafe.Pointer(v.Type().(*rtype))) code := methodValueCallCodePtr() // methodValue contains a stack map for use by the runtime _, _, abid := funcLayout(ftyp, nil) fv := &methodValue{ makeFuncCtxt: makeFuncCtxt{ fn: code, stack: abid.stackPtrs,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:20:05 UTC 2024 - 5.9K bytes - Viewed (0) -
src/reflect/value.go
// created via reflect have the same underlying code pointer, // so their Pointers are equal. The function used here must // match the one used in makeMethodValue. return methodValueCallCodePtr() } p := v.pointer() // Non-nil func value points at data block. // First word of data block is actual code. if p != nil { p = *(*unsafe.Pointer)(p) } return uintptr(p)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0) -
src/reflect/all_test.go
v.SetIterValue(iter) }) } } func TestMethodCallValueCodePtr(t *testing.T) { m := ValueOf(Point{}).Method(1) want := MethodValueCallCodePtr() if got := uintptr(m.UnsafePointer()); got != want { t.Errorf("methodValueCall code pointer mismatched, want: %v, got: %v", want, got) } if got := m.Pointer(); got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)