Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 101 for ifaceeq (0.15 sec)

  1. src/cmd/compile/internal/inline/inlheur/testdata/props/returns2.go

    // <endcallsites>
    // <endfuncpreamble>
    func T_chained_conc_iface_call(x, y int) {
    	// Similar to the case above, return from call returning concrete type
    	// feeds directly into interface call. Note that only the first
    	// iface call is interesting here.
    	newBar(10).Plark().Plark()
    }
    
    func returnsFunc(x int) func(int) int {
    	if x < 0 {
    		G++
    	}
    	return adder
    }
    
    func returnsFunc2() func(int) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:01 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. test/maplinear.go

    	checkLinear("eface", 10000, func(n int) {
    		m := map[interface{}]int{}
    		for i := 0; i < n; i++ {
    			m[i] = 1
    		}
    	})
    
    	// ~7ms on a 1.6GHz Zeon.
    	// Regression test for CL 119360043.
    	checkLinear("iface", 10000, func(n int) {
    		m := map[I]int{}
    		for i := 0; i < n; i++ {
    			m[C(i)] = 1
    		}
    	})
    
    	// ~6ms on a 1.6GHz Zeon.
    	checkLinear("int", 10000, func(n int) {
    		m := map[int]int{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/instantiate.go

    	smap := makeSubstMap(tparams, targs)
    	for i, tpar := range tparams {
    		// Ensure that we have a (possibly implicit) interface as type bound (go.dev/issue/51048).
    		tpar.iface()
    		// The type parameter bound is parameterized with the same type parameters
    		// as the instantiated type; before we can use it for bounds checking we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/reflect/value.go

    		if !tt.nameOff(m.Name).IsExported() {
    			panic("reflect: " + op + " of unexported method")
    		}
    		iface := (*nonEmptyInterface)(v.ptr)
    		if iface.itab == nil {
    			panic("reflect: " + op + " of method on nil interface value")
    		}
    		rcvrtype = iface.itab.Type
    		fn = unsafe.Pointer(&unsafe.Slice(&iface.itab.Fun[0], i+1)[i])
    		t = (*funcType)(unsafe.Pointer(tt.typeOff(m.Typ)))
    	} else {
    		rcvrtype = v.typ()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/issues_test.go

    			}
    		}
    		if obj == nil {
    			t.Fatal("object X not found")
    		}
    		iface := obj.Type().Underlying().(*Interface) // object X must be an interface
    
    		// Each iface method m is embedded; and m's receiver base type name
    		// must match the method's name per the choice in the source file.
    		for i := 0; i < iface.NumMethods(); i++ {
    			m := iface.Method(i)
    			recvName := m.Type().(*Signature).Recv().Type().(*Named).Obj().Name()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  6. src/go/types/issues_test.go

    			}
    		}
    		if obj == nil {
    			t.Fatal("object X not found")
    		}
    		iface := obj.Type().Underlying().(*Interface) // object X must be an interface
    
    		// Each iface method m is embedded; and m's receiver base type name
    		// must match the method's name per the choice in the source file.
    		for i := 0; i < iface.NumMethods(); i++ {
    			m := iface.Method(i)
    			recvName := m.Signature().Recv().Type().(*Named).Obj().Name()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  7. src/go/types/instantiate.go

    	smap := makeSubstMap(tparams, targs)
    	for i, tpar := range tparams {
    		// Ensure that we have a (possibly implicit) interface as type bound (go.dev/issue/51048).
    		tpar.iface()
    		// The type parameter bound is parameterized with the same type parameters
    		// as the instantiated type; before we can use it for bounds checking we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. src/runtime/print.go

    	sp := (*slice)(unsafe.Pointer(&s))
    	print("[", len(s), "/", cap(s), "]")
    	printpointer(sp.array)
    }
    
    func printeface(e eface) {
    	print("(", e._type, ",", e.data, ")")
    }
    
    func printiface(i iface) {
    	print("(", i.tab, ",", i.data, ")")
    }
    
    // hexdumpWords prints a word-oriented hex dump of [p, end).
    //
    // If mark != nil, it will be called with each printed word's address
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. src/text/template/exec_test.go

    	{"eq .V1 .V2", "true", true},
    	{"eq .Ptr .Ptr", "true", true},
    	{"eq .Ptr .NilPtr", "false", true},
    	{"eq .NilPtr .NilPtr", "true", true},
    	{"eq .Iface1 .Iface1", "true", true},
    	{"eq .Iface1 .NilIface", "false", true},
    	{"eq .NilIface .NilIface", "true", true},
    	{"eq .NilIface .Iface1", "false", true},
    	{"eq .NilIface 0", "false", true},
    	{"eq 0 .NilIface", "false", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/ProtocolToModelAdapter.java

                if (superclass != null) {
                    queue.add(superclass);
                }
                for (Class<?> iface : type.getInterfaces()) {
                    if (seenInterfaces.add(iface)) {
                        queue.add(Cast.<Class<? super T>>uncheckedCast(iface));
                    }
                }
            }
            return seenInterfaces;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 04:42:54 UTC 2024
    - 45.4K bytes
    - Viewed (0)
Back to top