Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for OLEN (0.06 sec)

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

    	s.startBlock(bElse)
    	switch n.Op() {
    	case ir.OLEN:
    		// length is stored in the first word for map/chan
    		s.vars[n] = s.load(lenType, x)
    	case ir.OCAP:
    		// capacity is stored in the second word for chan
    		sw := s.newValue1I(ssa.OpOffPtr, lenType.PtrTo(), lenType.Size(), x)
    		s.vars[n] = s.load(lenType, sw)
    	default:
    		s.Fatalf("op must be OLEN or OCAP")
    	}
    	s.endBlock()
    	bElse.AddEdgeTo(bAfter)
    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