- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 251 for funcPC (0.48 sec)
-
src/internal/abi/funcpc.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !gccgo package abi // FuncPC* intrinsics. // // CAREFUL: In programs with plugins, FuncPC* can return different values // for the same function (because there are actually multiple copies of // the same function in the address space). To be safe, don't use the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 27 21:15:37 UTC 2023 - 1.2K bytes - Viewed (0) -
src/internal/abi/abi_test.go
"path/filepath" "strings" "testing" ) func TestFuncPC(t *testing.T) { // Test that FuncPC* can get correct function PC. pcFromAsm := abi.FuncPCTestFnAddr // Test FuncPC for locally defined function pcFromGo := abi.FuncPCTest() if pcFromGo != pcFromAsm { t.Errorf("FuncPC returns wrong PC, want %x, got %x", pcFromAsm, pcFromGo) } // Test FuncPC for imported function pcFromGo = abi.FuncPCABI0(abi.FuncPCTestFn)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 18:31:05 UTC 2023 - 2.4K bytes - Viewed (0) -
test/inline_literal.go
import ( "log" "reflect" "runtime" ) func hello() string { return "Hello World" // line 16 } func foo() string { // line 19 x := hello() // line 20 y := hello() // line 21 return x + y // line 22 } func bar() string { x := hello() // line 26 return x } // funcPC returns the PC for the func value f. func funcPC(f interface{}) uintptr { return reflect.ValueOf(f).Pointer() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 03 21:29:32 UTC 2017 - 1K bytes - Viewed (0) -
test/fixedbugs/issue17381.go
}() prep() f() // should panic } func funcPC(f interface{}) uintptr { var ptr uintptr return **(**uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&f)) + unsafe.Sizeof(ptr))) } //go:noinline func f() { var t [1]int // non-empty frame *(*int)(nil) = t[0] } var p = funcPC(runtime.GC) + 8 //go:noinline func prep() { // put some garbage on stack
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 25 21:44:32 UTC 2016 - 1K bytes - Viewed (0) -
src/cmd/compile/internal/ir/func.go
func (n *Func) editChildren(edit func(Node) Node) { editNodes(n.Body, edit) } func (n *Func) editChildrenWithHidden(edit func(Node) Node) { editNodes(n.Body, edit) } func (f *Func) Type() *types.Type { return f.Nname.Type() } func (f *Func) Sym() *types.Sym { return f.Nname.Sym() } func (f *Func) Linksym() *obj.LSym { return f.Nname.Linksym() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 21.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/expr.go
return } // looking for either direct method calls and interface method calls of: // reflect.Type.Method - func(int) reflect.Method // reflect.Type.MethodByName - func(string) (reflect.Method, bool) // // reflect.Value.Method - func(int) reflect.Value // reflect.Value.MethodByName - func(string) reflect.Value methodName := dot.Sel.Name t := dot.Selection.Type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 27.6K bytes - Viewed (0) -
src/debug/pe/file_test.go
return unsafe.Pointer(uintptr(p) + x) } func funcPC(f interface{}) uintptr { var a uintptr return **(**uintptr)(add(unsafe.Pointer(&f), unsafe.Sizeof(a))) } func main() { kernel32 := syscall.MustLoadDLL("kernel32.dll") psapi := syscall.MustLoadDLL("psapi.dll") getModuleHandle := kernel32.MustFindProc("GetModuleHandleW") getCurrentProcess := kernel32.MustFindProc("GetCurrentProcess")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 01 02:25:16 UTC 2023 - 22.3K bytes - Viewed (0) -
test/closure3.dir/main.go
b := 3 return func(y int) int { // ERROR "can inline main.func27.1" "can inline main.main.func27.func34" c := 5 return func(z int) int { // ERROR "can inline main.func27.1.1" "can inline main.main.func27.func34.1" "can inline main.func27.main.func27.1.2" "can inline main.main.func27.main.main.func27.func34.func36" return a*x + b*y + c*z }(10) // ERROR "inlining call to main.func27.1.1"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 19:36:29 UTC 2023 - 8.3K bytes - Viewed (0) -
src/runtime/panic.go
// Declared here to mark them as ABIInternal. func panicIndex(x int, y int) func panicIndexU(x uint, y int) func panicSliceAlen(x int, y int) func panicSliceAlenU(x uint, y int) func panicSliceAcap(x int, y int) func panicSliceAcapU(x uint, y int) func panicSliceB(x int, y int) func panicSliceBU(x uint, y int) func panicSlice3Alen(x int, y int) func panicSlice3AlenU(x uint, y int) func panicSlice3Acap(x int, y int)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 43.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/tests/raise-target-subgraphs.mlir
func.return %0 : tensor<i32> } } // CHECK: func.func @simpleWhile(%arg0: tensor<i32>) -> tensor<i32> { // CHECK: %0 = call @func_0_CPU_FLOAT(%arg0) {tac.device = "CPU", tac.inference_type = "FLOAT", tac.interface_name = "func_0"} : (tensor<i32>) -> tensor<i32> // CHECK: return %0 : tensor<i32> // CHECK: }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 74.9K bytes - Viewed (0)