Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsReflectHeaderDataField (0.18 sec)

  1. src/cmd/compile/internal/walk/convert.go

    	switch n.X.Op() {
    	case ir.OCALLMETH:
    		base.FatalfAt(n.X.Pos(), "OCALLMETH missed by typecheck")
    	case ir.OCALLFUNC, ir.OCALLINTER:
    		return n
    	}
    
    	if n.X.Op() == ir.ODOTPTR && ir.IsReflectHeaderDataField(n.X) {
    		return n
    	}
    
    	// Find original unsafe.Pointer operands involved in this
    	// arithmetic expression.
    	//
    	// "It is valid both to add and to subtract offsets from a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssagen/ssa.go

    		s.vars[memVar] = s.newValue1Apos(ssa.OpVarDef, types.TypeMem, base, s.mem(), !ir.IsAutoTmp(base))
    	}
    
    	// Left is not ssa-able. Compute its address.
    	addr := s.addr(left)
    	if ir.IsReflectHeaderDataField(left) {
    		// Package unsafe's documentation says storing pointers into
    		// reflect.SliceHeader and reflect.StringHeader's Data fields
    		// is valid, even though they have type uintptr (#19168).
    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