github.com/chenzhuoyu/iasm@v0.9.1/repl/exec_amd64.go (about)

     1  package repl
     2  
     3  type _ExecutorAMD64 struct {
     4      after  _RegFileAMD64
     5      before _RegFileAMD64
     6  }
     7  
     8  //go:nosplit
     9  //go:noescape
    10  //goland:noinspection GoUnusedParameter
    11  func execaddr(addr uintptr, before *_RegFileAMD64, after *_RegFileAMD64)
    12  
    13  func (self *_ExecutorAMD64) Execute(addr uintptr) (_RegFile, _RegFile, error) {
    14      execaddr(addr, &self.before, &self.after)
    15      return &self.before, &self.after, nil
    16  }
    17  
    18  func init() {
    19      _exec = new(_ExecutorAMD64)
    20  }