Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 235 for hiter (0.57 sec)

  1. test/fixedbugs/issue20029.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 20029: make sure we zero at VARKILLs of
    // ambiguously live variables.
    // The ambiguously live variable here is the hiter
    // for the inner range loop.
    
    package main
    
    import "runtime"
    
    func f(m map[int]int) {
    outer:
    	for i := 0; i < 10; i++ {
    		for k := range m {
    			if k == 5 {
    				continue outer
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 20 23:47:43 UTC 2017
    - 583 bytes
    - Viewed (0)
  2. src/reflect/value.go

    // entry. It returns false when iter is exhausted; subsequent
    // calls to [MapIter.Key], [MapIter.Value], or [MapIter.Next] will panic.
    func (iter *MapIter) Next() bool {
    	if !iter.m.IsValid() {
    		panic("MapIter.Next called on an iterator that does not have an associated map Value")
    	}
    	if !iter.hiter.initialized() {
    		mapiterinit(iter.m.typ(), iter.m.pointer(), &iter.hiter)
    	} else {
    		if mapiterkey(&iter.hiter) == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  3. src/runtime/map.go

    		fatal("concurrent map writes")
    	}
    	h.flags &^= hashWriting
    }
    
    // mapiterinit initializes the hiter struct used for ranging over maps.
    // The hiter struct pointed to by 'it' is allocated on the stack
    // by the compilers order pass or on the heap by reflect_mapiterinit.
    // Both need to have zeroed hiter since the struct contains pointers.
    //
    // mapiterinit should be an internal detail,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func mapiterinit(mapType *byte, hmap map[any]any, hiter *any)
    func mapdelete(mapType *byte, hmap map[any]any, key *any)
    func mapdelete_fast32(mapType *byte, hmap map[any]any, key uint32)
    func mapdelete_fast64(mapType *byte, hmap map[any]any, key uint64)
    func mapdelete_faststr(mapType *byte, hmap map[any]any, key string)
    func mapiternext(hiter *any)
    func mapclear(mapType *byte, hmap map[any]any)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. test/live.go

    func f29(b bool) {
    	if b {
    		for k := range m { // ERROR "live at call to mapiterinit: .autotmp_[0-9]+$" "live at call to mapiternext: .autotmp_[0-9]+$" "stack object .autotmp_[0-9]+ runtime.hiter$"
    			printstring(k) // ERROR "live at call to printstring: .autotmp_[0-9]+$"
    		}
    	}
    	for k := range m { // ERROR "live at call to mapiterinit: .autotmp_[0-9]+$" "live at call to mapiternext: .autotmp_[0-9]+$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18K bytes
    - Viewed (0)
  6. test/live_regabi.go

    func f29(b bool) {
    	if b {
    		for k := range m { // ERROR "live at call to mapiterinit: .autotmp_[0-9]+$" "live at call to mapiternext: .autotmp_[0-9]+$" "stack object .autotmp_[0-9]+ runtime.hiter$"
    			printstring(k) // ERROR "live at call to printstring: .autotmp_[0-9]+$"
    		}
    	}
    	for k := range m { // ERROR "live at call to mapiterinit: .autotmp_[0-9]+$" "live at call to mapiternext: .autotmp_[0-9]+$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/text/unicode/norm/iter.go

    // and return that.
    func (i *Iter) returnSlice(a, b int) []byte {
    	if i.rb.src.bytes == nil {
    		return i.buf[:copy(i.buf[:], i.rb.src.str[a:b])]
    	}
    	return i.rb.src.bytes[a:b]
    }
    
    // Pos returns the byte position at which the next call to Next will commence processing.
    func (i *Iter) Pos() int {
    	return i.p
    }
    
    func (i *Iter) setDone() {
    	i.next = nextDone
    	i.p = i.rb.nsrc
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. src/slices/iter.go

    // license that can be found in the LICENSE file.
    
    package slices
    
    import (
    	"cmp"
    	"iter"
    )
    
    // All returns an iterator over index-value pairs in the slice.
    // The indexes range in the usual order, from 0 through len(s)-1.
    func All[Slice ~[]E, E any](s Slice) iter.Seq2[int, E] {
    	return func(yield func(int, E) bool) {
    		for i, v := range s {
    			if !yield(i, v) {
    				return
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:40:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. src/maps/iter.go

    // license that can be found in the LICENSE file.
    
    package maps
    
    import "iter"
    
    // All returns an iterator over key-value pairs from m.
    // The iteration order is not specified and is not guaranteed
    // to be the same from one call to the next.
    func All[Map ~map[K]V, K comparable, V any](m Map) iter.Seq2[K, V] {
    	return func(yield func(K, V) bool) {
    		for k, v := range m {
    			if !yield(k, v) {
    				return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:41:45 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/text/unicode/norm/iter.go

    // and return that.
    func (i *Iter) returnSlice(a, b int) []byte {
    	if i.rb.src.bytes == nil {
    		return i.buf[:copy(i.buf[:], i.rb.src.str[a:b])]
    	}
    	return i.rb.src.bytes[a:b]
    }
    
    // Pos returns the byte position at which the next call to Next will commence processing.
    func (i *Iter) Pos() int {
    	return i.p
    }
    
    func (i *Iter) setDone() {
    	i.next = nextDone
    	i.p = i.rb.nsrc
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 11K bytes
    - Viewed (0)
Back to top