- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for linksymOffset (0.21 sec)
-
src/cmd/compile/internal/ssagen/ssa.go
} t := types.NewPtr(n.Type()) linksymOffset := func(lsym *obj.LSym, offset int64) *ssa.Value { v := s.entryNewValue1A(ssa.OpAddr, t, lsym, s.sb) // TODO: Make OpAddr use AuxInt as well as Aux. if offset != 0 { v = s.entryNewValue1I(ssa.OpOffPtr, v.Type, offset, v) } return v } switch n.Op() { case ir.OLINKSYMOFFSET: no := n.(*ir.LinksymOffsetExpr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0) -
src/cmd/compile/internal/walk/expr.go
base.Fatalf("walkExpr: switch 1 unknown op %+v", n.Op()) panic("unreachable") case ir.OGETG, ir.OGETCALLERPC, ir.OGETCALLERSP: return n case ir.OTYPE, ir.ONAME, ir.OLITERAL, ir.ONIL, ir.OLINKSYMOFFSET: // TODO(mdempsky): Just return n; see discussion on CL 38655. // Perhaps refactor to use Node.mayBeShared for these instead. // If these return early, make sure to still call // StringSym for constant strings.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 27.6K bytes - Viewed (0) -
src/cmd/compile/internal/walk/walk.go
case ir.OMIN, ir.OMAX: // string or float requires runtime call, see (*ssagen.state).minmax method. return n.Type().IsString() || n.Type().IsFloat() case ir.OLITERAL, ir.ONIL, ir.ONAME, ir.OLINKSYMOFFSET, ir.OMETHEXPR, ir.OAND, ir.OANDNOT, ir.OLSH, ir.OOR, ir.ORSH, ir.OXOR, ir.OCOMPLEX, ir.OMAKEFACE, ir.OADDR, ir.OBITNOT, ir.ONOT, ir.OPLUS, ir.OCAP, ir.OIMAG, ir.OLEN, ir.OREAL, ir.OCONVNOP, ir.ODOT,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 20:56:00 UTC 2024 - 10.4K bytes - Viewed (0) -
src/cmd/compile/internal/ir/fmt.go
if !exportFormat && n.Sym() != nil && n.Sym().Name[0] == '~' && n.Sym().Name[1] == 'b' { fmt.Fprint(s, "_") return } fallthrough case ONONAME: fmt.Fprint(s, n.Sym()) case OLINKSYMOFFSET: n := n.(*LinksymOffsetExpr) fmt.Fprintf(s, "(%v)(%s@%d)", n.Type(), n.Linksym.Name, n.Offset_) case OTYPE: if n.Type() == nil && n.Sym() != nil { fmt.Fprint(s, n.Sym()) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 26K bytes - Viewed (0) -
src/cmd/compile/internal/walk/switch.go
if dt.RType != nil && dt.RType.Op() == ir.OADDR { addr := dt.RType.(*ir.AddrExpr) if addr.X.Op() == ir.OLINKSYMOFFSET { n1 = ir.TypeNode(n1.Type()) } } if dt.ITab != nil && dt.ITab.Op() == ir.OADDR { addr := dt.ITab.(*ir.AddrExpr) if addr.X.Op() == ir.OLINKSYMOFFSET { n1 = ir.TypeNode(n1.Type()) } } } cases = append(cases, oneCase{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 30.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/convert.go
// Must be converting I2I (more specific to less specific interface). // Use the same code as e, _ = c.(T). var rhs ir.Node if n.TypeWord == nil || n.TypeWord.Op() == ir.OADDR && n.TypeWord.(*ir.AddrExpr).X.Op() == ir.OLINKSYMOFFSET { // Fixed (not loaded from a dictionary) type. ta := ir.NewTypeAssertExpr(base.Pos, c, toType) ta.SetOp(ir.ODOTTYPE2) // Allocate a descriptor for this conversion to pass to the runtime.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 17:28:22 UTC 2023 - 18.2K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/stmt.go
return case ir.ONAME: arg := arg.(*ir.Name) if arg.Class == ir.PFUNC { return // reference to global function } case ir.OADDR: arg := arg.(*ir.AddrExpr) if arg.X.Op() == ir.OLINKSYMOFFSET { return // address of global symbol } case ir.OCONVNOP: arg := arg.(*ir.ConvExpr) // For unsafe.Pointer->uintptr conversion arguments, save the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:10:54 UTC 2023 - 17.8K bytes - Viewed (0)