Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 117 for cfunc (0.05 sec)

  1. src/cmd/internal/obj/arm64/obj7.go

    		p2.To.Sym = nil
    	} else {
    		return
    	}
    	obj.Nopout(p)
    }
    
    func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
    	if cursym.Func().Text == nil || cursym.Func().Text.Link == nil {
    		return
    	}
    
    	c := ctxt7{ctxt: ctxt, newprog: newprog, cursym: cursym}
    
    	p := c.cursym.Func().Text
    	textstksiz := p.To.Offset
    	if textstksiz == -8 {
    		// Historical way to mark NOFRAME.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 05:46:32 UTC 2023
    - 28.4K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/link.go

    func (a *Attribute) DuplicateOK() bool        { return a.load()&AttrDuplicateOK != 0 }
    func (a *Attribute) MakeTypelink() bool       { return a.load()&AttrMakeTypelink != 0 }
    func (a *Attribute) CFunc() bool              { return a.load()&AttrCFunc != 0 }
    func (a *Attribute) NoSplit() bool            { return a.load()&AttrNoSplit != 0 }
    func (a *Attribute) Leaf() bool               { return a.load()&AttrLeaf != 0 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/mips/obj0.go

    			}
    
    			if autosize == 0 && c.cursym.Func().Text.Mark&LEAF == 0 {
    				if c.cursym.Func().Text.From.Sym.NoSplit() {
    					if ctxt.Debugvlog {
    						ctxt.Logf("save suppressed in: %s\n", c.cursym.Name)
    					}
    
    					c.cursym.Func().Text.Mark |= LEAF
    				}
    			}
    
    			p.To.Offset = int64(autosize) - ctxt.Arch.FixedFrameSize
    
    			if c.cursym.Func().Text.Mark&LEAF != 0 {
    				c.cursym.Set(obj.AttrLeaf, true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 19:28:53 UTC 2023
    - 30.6K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/ppc64/obj9.go

    	} else {
    		return
    	}
    	obj.Nopout(p)
    }
    
    func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
    	// TODO(minux): add morestack short-cuts with small fixed frame-size.
    	if cursym.Func().Text == nil || cursym.Func().Text.Link == nil {
    		return
    	}
    
    	c := ctxt9{ctxt: ctxt, cursym: cursym, newprog: newprog}
    
    	p := c.cursym.Func().Text
    	textstksiz := p.To.Offset
    	if textstksiz == -8 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/cover_coverpkg_with_init.txt

    import (
    	"M/a"
    	"M/b"
    )
    
    func MFunc() string {
    	return "42"
    }
    
    func M2Func() int {
    	return a.AFunc() + b.BFunc()
    }
    
    func init() {
    	println("package 'main' init")
    }
    
    func main() {
    	println(a.AFunc() + b.BFunc())
    }
    -- main/main_test.go --
    package main
    
    import "testing"
    
    func TestMain(t *testing.T) {
    	if MFunc() != "42" {
    		t.Fatalf("bad!")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 30 12:33:44 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/cover_coverprofile_multipkg.txt

    }
    
    func init() {
    	println("package 'main' init")
    }
    
    func main() {
    	println(a.AFunc() + b.BFunc())
    }
    -- main/main_test.go --
    package main
    
    import "testing"
    
    func TestMain(t *testing.T) {
    	if MFunc() != "42" {
    		t.Fatalf("bad!")
    	}
    	if M2Func() != 0 {
    		t.Fatalf("also bad!")
    	}
    }
    -- n/n.go --
    package n
    
    type N int
    -- onlytest/mumble_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 17:02:36 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/riscv/obj.go

    // concrete, real RISC-V instructions or directive pseudo-ops like TEXT,
    // PCDATA, and FUNCDATA.
    func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
    	if cursym.Func().Text == nil || cursym.Func().Text.Link == nil {
    		return
    	}
    
    	// Generate the prologue.
    	text := cursym.Func().Text
    	if text.As != obj.ATEXT {
    		ctxt.Diag("preprocess: found symbol that does not start with TEXT directive")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ir/func.go

    	fn.SetTypecheck(1)
    
    	name.Func = fn
    
    	return fn
    }
    
    func (f *Func) isStmt() {}
    
    func (n *Func) copy() Node                                  { panic(n.no("copy")) }
    func (n *Func) doChildren(do func(Node) bool) bool          { return doNodes(n.Body, do) }
    func (n *Func) editChildren(edit func(Node) Node)           { editNodes(n.Body, edit) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/func.go

    // (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)
    	}
    }
    
    // tcCall typechecks an OCALL node.
    func tcCall(n *ir.CallExpr, top int) ir.Node {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  10. test/ken/mfunc.go

    // license that can be found in the LICENSE file.
    
    // Test simple multi-argument multi-valued function.
    
    package main
    
    func
    main() {
    	var x,y int;
    
    	x,y = simple(10,20,30);
    	if x+y != 65 { panic(x+y); }
    }
    
    func
    simple(ia,ib,ic int) (oa,ob int) {
    	return ia+5, ib+ic;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 386 bytes
    - Viewed (0)
Back to top