Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for withDefaultStmt (0.17 sec)

  1. src/cmd/internal/src/xpos.go

    func (p XPos) WithNotStmt() XPos {
    	p.lico = p.lico.withNotStmt()
    	return p
    }
    
    // WithDefaultStmt returns the same location with undetermined is_stmt
    func (p XPos) WithDefaultStmt() XPos {
    	p.lico = p.lico.withDefaultStmt()
    	return p
    }
    
    // WithIsStmt returns the same location to be marked with DWARF is_stmt=1
    func (p XPos) WithIsStmt() XPos {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. src/cmd/internal/src/xpos_test.go

    			t.Errorf("got %v; want %v", got, want)
    		}
    
    		for _, x := range []struct {
    			f func(XPos) XPos
    			e uint
    		}{
    			{XPos.WithDefaultStmt, PosDefaultStmt},
    			{XPos.WithIsStmt, PosIsStmt},
    			{XPos.WithNotStmt, PosNotStmt},
    			{XPos.WithIsStmt, PosIsStmt},
    			{XPos.WithDefaultStmt, PosDefaultStmt},
    			{XPos.WithNotStmt, PosNotStmt}} {
    			xposWith := x.f(xpos)
    			expected := x.e
    			if xpos.Line() == 0 && xpos.Col() == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/numberlines.go

    				note(v.Pos)
    				// skip ahead to better instruction for this line if possible
    				i = nextGoodStatementIndex(v, i, b)
    				v = b.Values[i]
    				firstPosIndex = i
    				firstPos = v.Pos
    				v.Pos = firstPos.WithDefaultStmt() // default to default
    				break
    			}
    		}
    
    		if firstPosIndex == -1 { // Effectively empty block, check block's own Pos, consider preds.
    			line := src.NoXPos
    			for _, p := range b.Preds {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 21:26:13 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  4. src/cmd/internal/src/pos.go

    }
    
    // withNotStmt returns a lico for the same location, but not a statement
    func (x lico) withNotStmt() lico {
    	return x.withStmt(PosNotStmt)
    }
    
    // withDefaultStmt returns a lico for the same location, with default isStmt
    func (x lico) withDefaultStmt() lico {
    	return x.withStmt(PosDefaultStmt)
    }
    
    // withIsStmt returns a lico for the same location, tagged as definitely a statement
    func (x lico) withIsStmt() lico {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssagen/ssa.go

    		if v.Pos.IsStmt() == src.PosIsStmt && v.Op != ssa.OpArg && v.Op != ssa.OpArgIntReg && v.Op != ssa.OpArgFloatReg && v.Op != ssa.OpLoadReg && v.Op != ssa.OpStoreReg {
    			firstPos = v.Pos
    			v.Pos = firstPos.WithDefaultStmt()
    			break
    		}
    	}
    
    	// inlMarks has an entry for each Prog that implements an inline mark.
    	// It maps from that Prog to the global inlining id of the inlined body
    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