Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AppendElemRType (0.22 sec)

  1. src/cmd/compile/internal/reflectdata/helpers.go

    	base.AssertfAt(!typ.IsInterface(), pos, "want non-interface type, have %v", typ)
    	return TypePtrAt(pos, typ)
    }
    
    // AppendElemRType asserts that n is an "append" operation, and
    // returns an expression that yields the *runtime._type value
    // representing the result slice type's element type.
    func AppendElemRType(pos src.XPos, n *ir.CallExpr) ir.Node {
    	assertOp(n, ir.OAPPEND)
    	if hasRType(n, n.RType, "RType") {
    		return n.RType
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/assign.go

    		}
    		as.Y = r
    		if r.Op() == ir.OAPPEND {
    			r := r.(*ir.CallExpr)
    			// Left in place for back end.
    			// Do not add a new write barrier.
    			// Set up address of type for back end.
    			r.Fun = reflectdata.AppendElemRType(base.Pos, r)
    			return as
    		}
    		// Otherwise, lowered for race detector.
    		// Treat as ordinary assignment.
    	}
    
    	if as.X != nil && as.Y != nil {
    		return convas(as, init)
    	}
    	return as
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top