Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for Dempsky (0.18 sec)

  1. src/runtime/checkptr.go

    	// no pointers themselves. See issue 37298.
    	// TODO(mdempsky): What about fieldAlign?
    	if elem.Pointers() && uintptr(p)&(uintptr(elem.Align_)-1) != 0 {
    		throw("checkptr: misaligned pointer conversion")
    	}
    
    	// Check that (*[n]elem)(p) doesn't straddle multiple heap objects.
    	// TODO(mdempsky): Fix #46938 so we don't need to worry about overflow here.
    	if checkptrStraddles(p, n*elem.Size_) {
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-23 00:18
    - 3.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/base/link.go

    	"type": true,
    }
    
    var Ctxt *obj.Link
    
    // TODO(mdempsky): These should probably be obj.Link methods.
    
    // PkgLinksym returns the linker symbol for name within the given
    // package prefix. For user packages, prefix should be the package
    // path encoded with objabi.PathToPrefix.
    func PkgLinksym(prefix, name string, abi obj.ABI) *obj.LSym {
    	if name == "_" {
    		// TODO(mdempsky): Cleanup callers and Fatalf instead.
    Registered: 2024-06-12 16:32
    - Last Modified: 2022-08-09 11:28
    - 1.6K bytes
    - Viewed (0)
  3. src/internal/pkgbits/decoder.go

    // IR export data from input. pkgPath is the package path for the
    // compilation unit that produced the export data.
    //
    // TODO(mdempsky): Remove pkgPath parameter; unneeded since CL 391014.
    func NewPkgDecoder(pkgPath, input string) PkgDecoder {
    	pr := PkgDecoder{
    		pkgPath: pkgPath,
    	}
    
    	// TODO(mdempsky): Implement direct indexing of input string to
    	// avoid copying the position information.
    
    	r := strings.NewReader(input)
    
    Registered: 2024-06-12 16:32
    - Last Modified: 2022-09-27 20:58
    - 13.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/noder/stmt.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package noder
    
    import (
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/syntax"
    )
    
    // TODO(mdempsky): Investigate replacing with switch statements or dense arrays.
    
    var branchOps = [...]ir.Op{
    	syntax.Break:       ir.OBREAK,
    	syntax.Continue:    ir.OCONTINUE,
    	syntax.Fallthrough: ir.OFALL,
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-07-21 02:39
    - 564 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/dcl.go

    // return function type, receiver as first argument (or not).
    func NewMethodType(sig *types.Type, recv *types.Type) *types.Type {
    	nrecvs := 0
    	if recv != nil {
    		nrecvs++
    	}
    
    	// TODO(mdempsky): Move this function to types.
    	// TODO(mdempsky): Preserve positions, names, and package from sig+recv.
    
    	params := make([]*types.Field, nrecvs+sig.NumParams())
    	if recv != nil {
    		params[0] = types.NewField(base.Pos, nil, recv)
    	}
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-09-14 13:15
    - 3.1K bytes
    - Viewed (0)
  6. src/internal/pkgbits/reloc.go

    // An Index represents a bitstream element index within a particular
    // section.
    type Index int32
    
    // A relocEnt (relocation entry) is an entry in an element's local
    // reference table.
    //
    // TODO(mdempsky): Rename this too.
    type RelocEnt struct {
    	Kind RelocKind
    	Idx  Index
    }
    
    // Reserved indices within the meta relocation section.
    const (
    	PublicRootIdx  Index = 0
    	PrivateRootIdx Index = 1
    )
    
    Registered: 2024-06-12 16:32
    - Last Modified: 2022-08-10 22:22
    - 835 bytes
    - Viewed (0)
  7. src/go/internal/gcimporter/ureader.go

    		typs[i] = r.p.typIdx(bound, r.dict)
    	}
    
    	// TODO(mdempsky): This is subtle, elaborate further.
    	//
    	// We have to save tparams outside of the closure, because
    	// typeParamNames() can be called multiple times with the same
    	// dictionary instance.
    	//
    	// Also, this needs to happen later to make sure SetUnderlying has
    	// been called.
    	//
    	// TODO(mdempsky): Is it safe to have a single "later" slice or do
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-23 01:00
    - 16.6K bytes
    - Viewed (0)
  8. test/fixedbugs/issue18392.go

    // errorcheck
    
    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    type A interface {
    	// TODO(mdempsky): This should be an error, but this error is
    	// nonsense. The error should actually mention that there's a
    	// type loop.
    	Fn(A.Fn) // ERROR "type A has no method Fn|A.Fn undefined|A.Fn is not a type"
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-01-11 22:29
    - 427 bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/iimport.go

    	}
    	if i != -1 && pi != -1 {
    		typeSymIdx[t] = [2]int64{i, pi}
    	}
    }
    
    // Map imported type T to the index of type descriptor symbols of T and *T,
    // so we can use index to reference the symbol.
    // TODO(mdempsky): Store this information directly in the Type's Name.
    var typeSymIdx = make(map[*types.Type][2]int64)
    
    func BaseTypeIndex(t *types.Type) int64 {
    	tbase := t
    	if t.IsPtr() && t.Sym() == nil && t.Elem().Sym() != nil {
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-01-26 21:52
    - 1.3K bytes
    - Viewed (0)
  10. test/fixedbugs/issue32187.go

    		{"type assertion", "", func() { _ = x == x.(*int) }},
    		{"out of bounds", "", func() { _ = x == s[1] }},
    		{"nil pointer dereference #1", "", func() { _ = x == *p }},
    		// TODO(mdempsky): Restore "nil pointer dereference" check. The Go
    		// spec doesn't mandate an order for panics (or even panic
    		// messages), but left-to-right is less confusing to users.
    Registered: 2024-06-12 16:32
    - Last Modified: 2022-07-19 23:02
    - 1.5K bytes
    - Viewed (0)
Back to top