]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: simplify buildop
authorJoel Sing <joel@sing.id.au>
Wed, 3 May 2023 08:19:30 +0000 (18:19 +1000)
committerJoel Sing <joel@sing.id.au>
Wed, 26 Jul 2023 12:38:37 +0000 (12:38 +0000)
commit2a1ba6ebb12994f4df15236f03eb63116b4a0c4d
treee114e01654e6e44e73654ba1e5d06839a79582e8
parenta3c1836d80314607f01a5732ae1fc22a0ae17671
cmd/internal/obj/arm64: simplify buildop

This code stems from the original 7l C code, where one way to determine
the end of a table is to put a sentinel entry, then scan for it. This is
now Go code and the length of an array is readily available.

Remove the sentinel and sentinel scan, then adjust the remaining code to
work accordingly.

Change-Id: I8964c787f5149f3548fa78bf8923aa7a93f9482e
Reviewed-on: https://go-review.googlesource.com/c/go/+/512536
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
src/cmd/internal/obj/arm64/asm7.go