Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for isTyped (0.21 sec)

  1. src/cmd/compile/internal/types2/gcsizes.go

    		} else {
    			offs = -1 // f.typ or offs is too large
    		}
    	}
    	return offsets
    }
    
    func (s *gcSizes) Sizeof(T Type) int64 {
    	switch t := under(T).(type) {
    	case *Basic:
    		assert(isTyped(T))
    		k := t.kind
    		if int(k) < len(basicSizes) {
    			if s := basicSizes[k]; s > 0 {
    				return int64(s)
    			}
    		}
    		if k == String {
    			return s.WordSize * 2
    		}
    	case *Array:
    		n := t.len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/go/types/gcsizes.go

    		} else {
    			offs = -1 // f.typ or offs is too large
    		}
    	}
    	return offsets
    }
    
    func (s *gcSizes) Sizeof(T Type) int64 {
    	switch t := under(T).(type) {
    	case *Basic:
    		assert(isTyped(T))
    		k := t.kind
    		if int(k) < len(basicSizes) {
    			if s := basicSizes[k]; s > 0 {
    				return int64(s)
    			}
    		}
    		if k == String {
    			return s.WordSize * 2
    		}
    	case *Array:
    		n := t.len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/const.go

    		return
    	}
    
    	// Typed constants must be representable in
    	// their type after each constant operation.
    	// x.typ cannot be a type parameter (type
    	// parameters cannot be constant types).
    	if isTyped(x.typ) {
    		check.representable(x, under(x.typ).(*Basic))
    		return
    	}
    
    	// Untyped integer values must not grow arbitrarily.
    	const prec = 512 // 512 is the constant precision
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. src/go/types/const.go

    		return
    	}
    
    	// Typed constants must be representable in
    	// their type after each constant operation.
    	// x.typ cannot be a type parameter (type
    	// parameters cannot be constant types).
    	if isTyped(x.typ) {
    		check.representable(x, under(x.typ).(*Basic))
    		return
    	}
    
    	// Untyped integer values must not grow arbitrarily.
    	const prec = 512 // 512 is the constant precision
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/sizes.go

    	Uint64:     8,
    	Float32:    4,
    	Float64:    8,
    	Complex64:  8,
    	Complex128: 16,
    }
    
    func (s *StdSizes) Sizeof(T Type) int64 {
    	switch t := under(T).(type) {
    	case *Basic:
    		assert(isTyped(T))
    		k := t.kind
    		if int(k) < len(basicSizes) {
    			if s := basicSizes[k]; s > 0 {
    				return int64(s)
    			}
    		}
    		if k == String {
    			return s.WordSize * 2
    		}
    	case *Array:
    		n := t.len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. src/go/types/sizes.go

    	Uint64:     8,
    	Float32:    4,
    	Float64:    8,
    	Complex64:  8,
    	Complex128: 16,
    }
    
    func (s *StdSizes) Sizeof(T Type) int64 {
    	switch t := under(T).(type) {
    	case *Basic:
    		assert(isTyped(T))
    		k := t.kind
    		if int(k) < len(basicSizes) {
    			if s := basicSizes[k]; s > 0 {
    				return int64(s)
    			}
    		}
    		if k == String {
    			return s.WordSize * 2
    		}
    	case *Array:
    		n := t.len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildOperationsFixture.groovy

            return getTree().first(type, predicate)
        }
    
        @Override
        @SuppressWarnings("GrUnnecessaryPublicModifier")
        public <T extends BuildOperationType<?, ?>> boolean isType(BuildOperationRecord record, Class<T> type) {
            return getTree().isType(record, type)
        }
    
        @Override
        @SuppressWarnings("GrUnnecessaryPublicModifier")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:21:24 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/container_manager_linux_test.go

    			},
    		},
    	}
    
    	for _, c := range cases {
    		c := c
    		t.Run(c.name, func(t *testing.T) {
    			t.Parallel()
    			pcm := c.cm.NewPodContainerManager()
    			if c.cm.NodeConfig.CgroupsPerQOS {
    				assert.IsType(t, &podContainerManagerImpl{}, pcm)
    				got := pcm.(*podContainerManagerImpl)
    				assert.Equal(t, c.cm.subsystems, got.subsystems)
    				assert.Equal(t, c.cm.cgroupManager, got.cgroupManager)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/type.go

    type TypeAndValue struct {
    	Type  Type
    	Value constant.Value
    	exprFlags
    }
    
    type exprFlags uint16
    
    func (f exprFlags) IsVoid() bool          { return f&1 != 0 }
    func (f exprFlags) IsType() bool          { return f&2 != 0 }
    func (f exprFlags) IsBuiltin() bool       { return f&4 != 0 } // a language builtin that resembles a function call, e.g., "make, append, new"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonLoggingIntegrationTest.groovy

            def logOperations = buildOperations.all(ExecuteWorkItemBuildOperationType)
            def taskOperations = logOperations.collect {
                buildOperations.parentsOf(it).reverse().find { parent -> buildOperations.isType(parent, ExecuteTaskBuildOperationType) }
            }.unique()
            taskOperations.size() == 2
            taskOperations.collect {it.displayName }.containsAll(['Task :runInWorker', 'Task :runInWorker2'])
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top