Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Debug_checknil (0.18 sec)

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

    func (d TestFrontend) Fatalf(_ src.XPos, msg string, args ...interface{}) { d.t.Fatalf(msg, args...) }
    func (d TestFrontend) Warnl(_ src.XPos, msg string, args ...interface{})  { d.t.Logf(msg, args...) }
    func (d TestFrontend) Debug_checknil() bool                               { return false }
    
    func (d TestFrontend) Func() *ir.Func {
    	return d.f
    }
    
    var testTypes Types
    
    func init() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/nilcheck.go

    						// This is a redundant implicit nil check.
    						// Logging in the style of the former compiler -- and omit line 1,
    						// which is usually in generated code.
    						if f.fe.Debug_checknil() && v.Pos.Line() > 1 {
    							f.Warnl(v.Pos, "removed nil check")
    						}
    						if v.Pos.IsStmt() == src.PosIsStmt { // About to lose a statement boundary
    							pendingLines.add(v.Pos)
    						}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/config.go

    	// Warnl writes compiler messages in the form expected by "errorcheck" tests
    	Warnl(pos src.XPos, fmt_ string, args ...interface{})
    
    	// Forwards the Debug flags from gc
    	Debug_checknil() bool
    }
    
    type Frontend interface {
    	Logger
    
    	// StringData returns a symbol pointing to the given string's contents.
    	StringData(string) *obj.LSym
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/generic.rules

    (NilCheck ptr:(SelectN [0] call:(StaticLECall _ _)) _)
    	&& isSameCall(call.Aux, "runtime.newobject")
    	&& warnRule(fe.Debug_checknil(), v, "removed nil check")
    	=> ptr
    
    (NilCheck ptr:(OffPtr (SelectN [0] call:(StaticLECall _ _))) _)
    	&& isSameCall(call.Aux, "runtime.newobject")
    	&& warnRule(fe.Debug_checknil(), v, "removed nil check")
    	=> ptr
    
    // Addresses of globals are always non-nil.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssagen/ssa.go

    	s.f.Frontend().Fatalf(s.peekPos(), msg, args...)
    }
    func (s *state) Warnl(pos src.XPos, msg string, args ...interface{}) { s.f.Warnl(pos, msg, args...) }
    func (s *state) Debug_checknil() bool                                { return s.f.Frontend().Debug_checknil() }
    
    func ssaMarker(name string) *ir.Name {
    	return ir.NewNameAt(base.Pos, &types.Sym{Name: name}, nil)
    }
    
    var (
    	// marker node for the memory variable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewritegeneric.go

    	// cond: isSameCall(call.Aux, "runtime.newobject") && warnRule(fe.Debug_checknil(), v, "removed nil check")
    	// result: ptr
    	for {
    		ptr := v_0
    		if ptr.Op != OpSelectN || auxIntToInt64(ptr.AuxInt) != 0 {
    			break
    		}
    		call := ptr.Args[0]
    		if call.Op != OpStaticLECall || len(call.Args) != 2 || !(isSameCall(call.Aux, "runtime.newobject") && warnRule(fe.Debug_checknil(), v, "removed nil check")) {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
Back to top