Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,619 for ctxt (0.04 sec)

  1. src/runtime/export_debug_ppc64le_test.go

    	ctxt.set_pc(ctxt.pc() + 4)
    }
    
    // case 8
    func (h *debugCallHandler) debugCallUnsafe(ctxt *sigctxt) {
    	sp := ctxt.sp()
    	reason := *(*string)(unsafe.Pointer(uintptr(sp) + 40))
    	h.err = plainError(reason)
    	ctxt.set_pc(ctxt.pc() + 4)
    }
    
    // case 16
    func (h *debugCallHandler) restoreSigContext(ctxt *sigctxt) {
    	// Restore all registers except for pc and sp
    	pc, sp := ctxt.pc(), ctxt.sp()
    	*ctxt.cregs() = h.sigCtxt.savedRegs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 15:33:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. src/runtime/export_debug_test.go

    		return false
    	}
    	if !sigctxtAtTrapInstruction(ctxt) {
    		println("trap at non-INT3 instruction pc =", hex(ctxt.sigpc()))
    		return false
    	}
    
    	switch status := sigctxtStatus(ctxt); status {
    	case 0:
    		// Frame is ready. Copy the arguments to the frame and to registers.
    		// Call the debug function.
    		h.debugCallRun(ctxt)
    	case 1:
    		// Function returned. Copy frame and result registers back out.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/context.go

    		}
    	}
    
    	ctxt.typeMap[h] = append(ctxt.typeMap[h], ctxtEntry{
    		orig:     orig,
    		targs:    targs,
    		instance: inst,
    	})
    
    	return inst
    }
    
    // getID returns a unique ID for the type t.
    func (ctxt *Context) getID(t Type) int {
    	ctxt.mu.Lock()
    	defer ctxt.mu.Unlock()
    	id, ok := ctxt.originIDs[t]
    	if !ok {
    		id = ctxt.nextID
    		ctxt.originIDs[t] = id
    		ctxt.nextID++
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:29:21 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. src/runtime/export_debug_amd64_test.go

    	reason := *(*string)(unsafe.Pointer(uintptr(rsp)))
    	h.err = plainError(reason)
    }
    
    // case 16
    func (h *debugCallHandler) restoreSigContext(ctxt *sigctxt) {
    	// Restore all registers except RIP and RSP.
    	rip, rsp := ctxt.rip(), ctxt.rsp()
    	fp := ctxt.regs().fpstate
    	*ctxt.regs() = h.sigCtxt.savedRegs
    	ctxt.regs().fpstate = fp
    	*fp = h.sigCtxt.savedFP
    	ctxt.set_rip(rip)
    	ctxt.set_rsp(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/cmd/link/internal/ld/ld.go

    	if ctxt.BuildMode == BuildModePlugin {
    		ctxt.Textp = append(ctxt.Textp, amd)
    	}
    	ctxt.Textp = append(ctxt.Textp, initfunc.Sym())
    
    	// Create an init array entry
    	amdi := ctxt.loader.LookupOrCreateSym("go:link.addmoduledatainit", 0)
    	initarray_entry := ctxt.loader.MakeSymbolUpdater(amdi)
    	ctxt.loader.SetAttrReachable(amdi, true)
    	ctxt.loader.SetAttrLocal(amdi, true)
    	initarray_entry.SetType(sym.SINITARR)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 8K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/line.go

    package obj
    
    import (
    	"cmd/internal/goobj"
    	"cmd/internal/src"
    )
    
    // AddImport adds a package to the list of imported packages.
    func (ctxt *Link) AddImport(pkg string, fingerprint goobj.FingerprintType) {
    	ctxt.Imports = append(ctxt.Imports, goobj.ImportedPkg{Pkg: pkg, Fingerprint: fingerprint})
    }
    
    // getFileIndexAndLine returns the relative file index (local to the CU), and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 892 bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/inittask.go

    		sb.AddAddr(ctxt.Arch, t)
    		sb.AddUint(ctxt.Arch, uint64(ldr.SymSize(t)/int64(ctxt.Arch.PtrSize)))
    		sb.AddUint(ctxt.Arch, uint64(ldr.SymSize(t)/int64(ctxt.Arch.PtrSize)))
    	}
    }
    
    // inittaskSym builds a symbol containing pointers to all the inittasks
    // that need to be run, given a list of root inittask symbols.
    func (ctxt *Link) inittaskSym(rootNames []string, symName string) loader.Sym {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/pass.go

    			break
    		}
    		return
    	}
    
    	ctxt.Diag("invalid encoding for argument %v", p)
    }
    
    func linkpatch(ctxt *Link, sym *LSym, newprog ProgAlloc) {
    	for p := sym.Func().Text; p != nil; p = p.Link {
    		checkaddr(ctxt, p, &p.From)
    		for _, v := range p.RestArgs {
    			checkaddr(ctxt, p, &v.Addr)
    		}
    		checkaddr(ctxt, p, &p.To)
    
    		if ctxt.Arch.Progedit != nil {
    			ctxt.Arch.Progedit(ctxt, p, newprog)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 01:26:58 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/export_test.go

    func testConfigArch(tb testing.TB, arch string) *Conf {
    	ctxt, ok := testCtxts[arch]
    	if !ok {
    		tb.Fatalf("unknown arch %s", arch)
    	}
    	if ctxt.Arch.PtrSize != 8 {
    		tb.Fatal("testTypes is 64-bit only")
    	}
    	c := &Conf{
    		config: NewConfig(arch, testTypes, ctxt, true, false),
    		tb:     tb,
    	}
    	return c
    }
    
    type Conf struct {
    	config *Config
    	tb     testing.TB
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/runtime/sys_s390x.go

    package runtime
    
    import "unsafe"
    
    // adjust Gobuf as if it executed a call to fn with context ctxt
    // and then did an immediate Gosave.
    func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) {
    	if buf.lr != 0 {
    		throw("invalid use of gostartcall")
    	}
    	buf.lr = buf.pc
    	buf.pc = uintptr(fn)
    	buf.ctxt = ctxt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 05 18:19:46 UTC 2016
    - 469 bytes
    - Viewed (0)
Back to top