diff options
| author | Dan Scales <danscales@google.com> | 2021-07-02 12:32:38 -0700 |
|---|---|---|
| committer | Dan Scales <danscales@google.com> | 2021-07-02 21:12:15 +0000 |
| commit | b994cc69e05d7821a08f75619f356ecfe5ca9b43 (patch) | |
| tree | e79f6e6dd03a39d8583bcbcd7fb48e75773d5e51 /src/runtime/stack.go | |
| parent | 6dec18cc75021bfbfac267941a567b257721208b (diff) | |
| download | go-b994cc69e05d7821a08f75619f356ecfe5ca9b43.tar.xz | |
[dev.typeparams] cmd/compile: separate out creating instantiations from creating dictionaries
We often need to create a function/method instantiation, but not a
dictionary, because the call to the instantiation will be using a
sub-dictionary. Also, main dictionaries are only need for concrete,
non-gcshape types, whereas instantiations will be for gcshape types (or
concrete types, for strict stenciling).
Created a helper function getDictOrSubdict() to reduce duplicated code.
Also, moved gfGetGfInfo() call in getDictionarySym() inside conditional
where it is needed, to avoid extra work when dictionary has already been
created.
Change-Id: I06587cb2ddc77de2f991e9f9eaf462d2c5a5d45e
Reviewed-on: https://go-review.googlesource.com/c/go/+/332550
Trust: Dan Scales <danscales@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/stack.go')
0 files changed, 0 insertions, 0 deletions
