]> Cypherpunks repositories - gostls13.git/commit
runtime: minor refactoring of _rt0_amd64_lib
authorAustin Clements <austin@google.com>
Wed, 14 Apr 2021 03:46:18 +0000 (23:46 -0400)
committerAustin Clements <austin@google.com>
Thu, 15 Apr 2021 12:38:09 +0000 (12:38 +0000)
commit3e0b1cdb5d92ac45a28c3c8224e1b6ab41bff99d
tree5d941b5a448694ae4aa601525b494a1eaa147bbe
parentb1c4cc558958e564846eecb68ff0ee99c820d221
runtime: minor refactoring of _rt0_amd64_lib

This function bounces between the C and Go ABIs a few times. This CL
narrows the scope of the Go -> C transition to just around the branch
that calls C. This lets us take advantage of C callee-save registers
to simplify the code a little.

Change-Id: I1ffa0b9e50325425c5ec66596978aeb6450a6b57
Reviewed-on: https://go-review.googlesource.com/c/go/+/309929
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/asm_amd64.s