Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for setOrig (0.16 sec)

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

    		r := pickReg(m)
    		m &^= 1 << r
    		x := s.curBlock.NewValue0(src.NoXPos, OpClobberReg, types.TypeVoid)
    		s.f.setHome(x, &s.registers[r])
    	}
    }
    
    // setOrig records that c's original value is the same as
    // v's original value.
    func (s *regAllocState) setOrig(c *Value, v *Value) {
    	if int(c.ID) >= cap(s.orig) {
    		x := s.f.Cache.allocValueSlice(int(c.ID) + 1)
    		copy(x, s.orig)
    		s.f.Cache.freeValueSlice(s.orig)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:49:56 UTC 2023
    - 87.2K bytes
    - Viewed (0)
  2. src/runtime/signal_amd64.go

    	} else {
    		// Not safe to push the call. Just clobber the frame.
    		c.set_rip(uint64(abi.FuncPCABI0(sigpanic0)))
    	}
    }
    
    func (c *sigctxt) pushCall(targetPC, resumePC uintptr) {
    	// Make it look like we called target at resumePC.
    	sp := uintptr(c.rsp())
    	sp -= goarch.PtrSize
    	*(*uintptr)(unsafe.Pointer(sp)) = resumePC
    	c.set_rsp(uint64(sp))
    	c.set_rip(uint64(targetPC))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 23 05:38:56 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  3. src/crypto/internal/bigmod/nat_test.go

    	N, _ := NewModulusFromBig(n)
    	A := NewNat().setBig(a).ExpandFor(N)
    	B := NewNat().setBig(b).ExpandFor(N)
    
    	if A.Mul(B, N).IsZero() != 1 {
    		t.Error("a * b mod (a * b) != 0")
    	}
    
    	i := new(big.Int).ModInverse(a, b)
    	N, _ = NewModulusFromBig(b)
    	A = NewNat().setBig(a).ExpandFor(N)
    	I := NewNat().setBig(i).ExpandFor(N)
    	one := NewNat().setBig(big.NewInt(1)).ExpandFor(N)
    
    	if A.Mul(I, N).Equal(one) != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:56:20 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. src/runtime/export_debug_amd64_test.go

    	// Push return PC.
    	rsp -= goarch.PtrSize
    	ctxt.set_rsp(rsp)
    	// The signal PC is the next PC of the trap instruction.
    	*(*uint64)(unsafe.Pointer(uintptr(rsp))) = ctxt.rip()
    	// Set PC to call and context register.
    	ctxt.set_rip(uint64(h.fv.fn))
    	sigctxtSetContextRegister(ctxt, uint64(uintptr(unsafe.Pointer(h.fv))))
    }
    
    // case 1
    func (h *debugCallHandler) debugCallReturn(ctxt *sigctxt) {
    	rsp := ctxt.rsp()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 23 05:38:56 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  5. src/runtime/os_freebsd2.go

    // license that can be found in the LICENSE file.
    
    //go:build freebsd && !amd64
    
    package runtime
    
    import "internal/abi"
    
    //go:nosplit
    //go:nowritebarrierrec
    func setsig(i uint32, fn uintptr) {
    	var sa sigactiont
    	sa.sa_flags = _SA_SIGINFO | _SA_ONSTACK | _SA_RESTART
    	sa.sa_mask = sigset_all
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 603 bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/memcombine.go

    		}
    
    		// Move all the stores to the root.
    		for i := int64(0); i < n; i++ {
    			v := a[i].store
    			if v == root {
    				v.Aux = cv.Type // widen store type
    				v.Pos = pos
    				v.SetArg(0, ptr)
    				v.SetArg(1, cv)
    				v.SetArg(2, mem)
    			} else {
    				clobber(v)
    				v.Type = types.Types[types.TBOOL] // erase memory type
    			}
    		}
    		return true
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  7. src/runtime/os_freebsd_amd64.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    import "internal/abi"
    
    func cgoSigtramp()
    
    //go:nosplit
    //go:nowritebarrierrec
    func setsig(i uint32, fn uintptr) {
    	var sa sigactiont
    	sa.sa_flags = _SA_SIGINFO | _SA_ONSTACK | _SA_RESTART
    	sa.sa_mask = sigset_all
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 21 22:40:36 UTC 2021
    - 658 bytes
    - Viewed (0)
  8. src/runtime/signal_dragonfly_amd64.go

    func (c *sigctxt) gs() uint64      { return c.regs().mc_ss }
    func (c *sigctxt) sigcode() uint64 { return uint64(c.info.si_code) }
    func (c *sigctxt) sigaddr() uint64 { return c.info.si_addr }
    
    func (c *sigctxt) set_rip(x uint64)     { c.regs().mc_rip = x }
    func (c *sigctxt) set_rsp(x uint64)     { c.regs().mc_rsp = x }
    func (c *sigctxt) set_sigcode(x uint64) { c.info.si_code = int32(x) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 12:56:15 UTC 2016
    - 2K bytes
    - Viewed (0)
  9. src/runtime/signal_freebsd_amd64.go

    func (c *sigctxt) gs() uint64      { return uint64(c.regs().mc_gs) }
    func (c *sigctxt) sigcode() uint64 { return uint64(c.info.si_code) }
    func (c *sigctxt) sigaddr() uint64 { return c.info.si_addr }
    
    func (c *sigctxt) set_rip(x uint64)     { c.regs().mc_rip = x }
    func (c *sigctxt) set_rsp(x uint64)     { c.regs().mc_rsp = x }
    func (c *sigctxt) set_sigcode(x uint64) { c.info.si_code = int32(x) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 12:56:15 UTC 2016
    - 2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/copyelim.go

    	// sure that we don't end up doing O(n^2) work
    	// for a chain of n copies.
    	for v != w {
    		x := v.Args[0]
    		v.SetArg(0, w)
    		v = x
    	}
    	return w
    }
    
    // copyelimValue ensures that no args of v are copies.
    func copyelimValue(v *Value) {
    	for i, a := range v.Args {
    		if a.Op == OpCopy {
    			v.SetArg(i, copySource(a))
    		}
    	}
    }
    
    // phielim eliminates redundant phi values from f.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top