Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for openDeferSave (0.24 sec)

  1. src/cmd/compile/internal/ssagen/pgen.go

    	}
    
    	// If a and b are both open-coded defer slots, then order them by
    	// index in descending order, so they'll be laid out in the frame in
    	// ascending order.
    	//
    	// Their index was saved in FrameOffset in state.openDeferSave.
    	if a.OpenDeferSlot() {
    		return a.FrameOffset() > b.FrameOffset()
    	}
    
    	// Tie breaker for stable results.
    	return a.Sym().Name < b.Sym().Name
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssagen/ssa.go

    // value representing a pointer to the autotmp location.
    func (s *state) openDeferSave(t *types.Type, val *ssa.Value) *ssa.Value {
    	if !ssa.CanSSA(t) {
    		s.Fatalf("openDeferSave of non-SSA-able type %v val=%v", t, val)
    	}
    	if !t.HasPointers() {
    		s.Fatalf("openDeferSave of pointerless type %v val=%v", t, val)
    	}
    	pos := val.Pos
    	temp := typecheck.TempAt(pos.WithNotStmt(), s.curfn, t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top