commit | 00aa68c09bae81ac2c88e12fffc387fdf2222bc1 | [log] [tgz] |
---|---|---|
author | Matthew Dempsky <mdempsky@google.com> | Mon Apr 18 12:23:16 2022 -0700 |
committer | Gopher Robot <gobot@golang.org> | Mon Apr 18 21:31:13 2022 +0000 |
tree | 5aba3311e5ec3bf70b1d4f6cfc0c1c2607c91d27 | |
parent | b4aba4bbddff1c0a296430d2410934618f4f9fb2 [diff] |
go/ssa/interp: use *ssa.Global as key type for interpreter.globals All keys are *ssa.Global pointers already anyway, so using *ssa.Global instead of ssa.Value as the map key type allows for using the runtime's fastmap implementation for fixed-size keys instead of falling back to hashing interface values. Change-Id: Ib5b25dba5e646a8458cfae7cacd8b91a4cd2721a Reviewed-on: https://go-review.googlesource.com/c/tools/+/400834 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Auto-Submit: Matthew Dempsky <mdempsky@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Tim King <taking@google.com>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go install
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go install golang.org/x/tools/...@latest
.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.