Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 100 for makemap (0.28 sec)

  1. src/cmd/compile/internal/reflectdata/helpers.go

    // and returns an expression that yields the *runtime._type value
    // representing that map type.
    func MakeMapRType(pos src.XPos, n *ir.MakeExpr) ir.Node {
    	assertOp(n, ir.OMAKEMAP)
    	if hasRType(n, n.RType, "RType") {
    		return n.RType
    	}
    	return mapRType(pos, n.Type())
    }
    
    // MakeSliceElemRType asserts that n is a "make" operation for a slice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. test/escape2n.go

    }
    
    func makemap0() {
    	m := make(map[int]int) // ERROR "make\(map\[int\]int\) does not escape$"
    	m[0] = 0
    	m[1]++
    	delete(m, 1)
    	sink = m[0] // ERROR "m\[0\] escapes to heap$"
    }
    
    func makemap1() map[int]int {
    	return make(map[int]int) // ERROR "make\(map\[int\]int\) escapes to heap$"
    }
    
    func makemap2() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  3. test/escape2.go

    }
    
    func makemap0() {
    	m := make(map[int]int) // ERROR "make\(map\[int\]int\) does not escape$"
    	m[0] = 0
    	m[1]++
    	delete(m, 1)
    	sink = m[0] // ERROR "m\[0\] escapes to heap$"
    }
    
    func makemap1() map[int]int {
    	return make(map[int]int) // ERROR "make\(map\[int\]int\) escapes to heap$"
    }
    
    func makemap2() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  4. src/go/constant/value_test.go

    		MakeString(""),
    		MakeInt64(1),
    		MakeFromLiteral("''", token.CHAR, 0),
    		MakeFromLiteral("-1234567890123456789012345678901234567890", token.INT, 0),
    		MakeFloat64(1.2),
    		MakeImag(MakeFloat64(1.2)),
    	}
    	for _, val := range values {
    		x, y := val, u
    		for i := range [2]int{} {
    			if i == 1 {
    				x, y = y, x
    			}
    			if got := BinaryOp(x, token.ADD, y); got.Kind() != Unknown {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 15.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/const.go

    	}
    	return constant.MakeFloat64(f)
    }
    
    func makeComplex(real, imag constant.Value) constant.Value {
    	return constant.BinaryOp(constant.ToFloat(real), token.ADD, constant.MakeImag(constant.ToFloat(imag)))
    }
    
    // DefaultLit on both nodes simultaneously;
    // if they're both ideal going in they better
    // get the same type going out.
    // force means must assign concrete (non-ideal) type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd.go

    	mremapFixed     = MAP_FIXED
    	mremapDontunmap = 0
    	mremapMaymove   = 0
    )
    
    //sys	mremapNetBSD(oldp uintptr, oldsize uintptr, newp uintptr, newsize uintptr, flags int) (xaddr uintptr, err error) = SYS_MREMAP
    
    func mremap(oldaddr uintptr, oldlength uintptr, newlength uintptr, flags int, newaddr uintptr) (uintptr, error) {
    	return mremapNetBSD(oldaddr, oldlength, newaddr, newlength, flags)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  7. pkg/workloadapi/workload.proto

      // TODO: support this field
      string hostname = 21;
    
      // Network represents the network this workload is on. This may be elided for the default network.
      // A (network,address) pair makeup a unique key for a workload *at a point in time*.
      string network = 4;
    
      // Protocol that should be used to connect to this workload.
      TunnelProtocol tunnel_protocol = 5;
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:02:35 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/aggregate/controller_test.go

    			t.Fatal("Returned Instance is incorrect")
    		}
    	}
    
    	// Get Instances from mockAdapter2
    	instances = aggregateCtl.GetProxyServiceTargets(&model.Proxy{IPAddresses: []string{mock.MakeIP(mock.WorldService, 1)}})
    	if len(instances) != 6 {
    		t.Fatalf("Returned GetProxyServiceTargets' amount %d is not correct", len(instances))
    	}
    	for _, inst := range instances {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  9. pilot/pkg/model/telemetry.go

    						mp[mode][metricName] = override
    					}
    				}
    			}
    		}
    	}
    
    	processed := map[string]metricsConfig{}
    	for provider, modeMap := range providers {
    		tmm := processed[provider]
    		tmm.ReportingInterval = reportingIntervals[provider]
    
    		for mode, metricMap := range modeMap {
    			key := metricProviderModeKey(provider, mode)
    			if disabledAllMetricsProviders.Contains(key) {
    				switch mode {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 18:14:09 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Int32", Const, 0},
    		{"Int64", Const, 0},
    		{"Int8", Const, 0},
    		{"Interface", Const, 0},
    		{"Invalid", Const, 0},
    		{"Kind", Type, 0},
    		{"MakeChan", Func, 0},
    		{"MakeFunc", Func, 1},
    		{"MakeMap", Func, 0},
    		{"MakeMapWithSize", Func, 9},
    		{"MakeSlice", Func, 0},
    		{"Map", Const, 0},
    		{"MapIter", Type, 12},
    		{"MapOf", Func, 1},
    		{"Method", Type, 0},
    		{"Method.Func", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top