Source file src/internal/abi/funcpc_gccgo.go

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // For bootstrapping with gccgo.
     6  
     7  //go:build gccgo
     8  
     9  package abi
    10  
    11  import "unsafe"
    12  
    13  func FuncPCABI0(f interface{}) uintptr {
    14  	words := (*[2]unsafe.Pointer)(unsafe.Pointer(&f))
    15  	return *(*uintptr)(unsafe.Pointer(words[1]))
    16  }
    17  
    18  func FuncPCABIInternal(f interface{}) uintptr {
    19  	words := (*[2]unsafe.Pointer)(unsafe.Pointer(&f))
    20  	return *(*uintptr)(unsafe.Pointer(words[1]))
    21  }
    22  

View as plain text