- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for EnableTrace (0.34 sec)
-
src/cmd/compile/internal/typecheck/stmt.go
func typecheckrangeExpr(n *ir.RangeStmt) { } // type check assignment. // if this assignment is the definition of a var on the left side, // fill in the var's type. func tcAssign(n *ir.AssignStmt) { if base.EnableTrace && base.Flag.LowerT { defer tracePrint("tcAssign", n)(nil) } if n.Y == nil { n.X = AssignExpr(n.X) return } lhs, rhs := []ir.Node{n.X}, []ir.Node{n.Y} assign(n, lhs, rhs)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:10:54 UTC 2023 - 17.8K bytes - Viewed (0) -
src/cmd/compile/internal/types/size.go
// This is used to prevent data races in the back end. func CalcSize(t *Type) { // Calling CalcSize when typecheck tracing enabled is not safe. // See issue #33658. if base.EnableTrace && SkipSizeForTracing { return } if PtrSize == 0 { // Assume this is a test. return } if t == nil { return } if t.width == -2 { t.width = 0 t.align = 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 15K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/func.go
}) t.SetNoalg(true) return t } // type check function definition // To be called by typecheck, not directly. // (Call typecheck.Func instead.) func tcFunc(n *ir.Func) { if base.EnableTrace && base.Flag.LowerT { defer tracePrint("tcFunc", n)(nil) } if name := n.Nname; name.Typecheck() == 0 { base.AssertfAt(name.Type() != nil, n.Pos(), "missing type: %v", name) name.SetTypecheck(1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 15:23:18 UTC 2024 - 21.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/expr.go
} } return l, r, t } // The result of tcCompLit MUST be assigned back to n, e.g. // // n.Left = tcCompLit(n.Left) func tcCompLit(n *ir.CompLitExpr) (res ir.Node) { if base.EnableTrace && base.Flag.LowerT { defer tracePrint("tcCompLit", n)(&res) } lno := base.Pos defer func() { base.Pos = lno }() ir.SetPos(n) t := n.Type()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
// // n.Left = typecheck(n.Left, top) func typecheck(n ir.Node, top int) (res ir.Node) { if n == nil { return nil } // only trace if there's work to do if base.EnableTrace && base.Flag.LowerT { defer tracePrint("typecheck", n)(&res) } lno := ir.SetPos(n) defer func() { base.Pos = lno }() // Skip typecheck if already done.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0)