go/src/cmd/compile/internal
Matthew Dempsky 55fc07e164 [dev.unified] cmd/compile/internal/noder: add optExpr for optional expressions
Previously, {writer,reader}.expr would allow for nil
expressions (i.e., no expression at all, not a "nil" identifier). But
only a few contexts allow this, and it simplifies some logic if we can
assume the expression is non-nil.

So this CL introduces optExpr as a wrapper method for handling nil
expressions specially.

Change-Id: I438bae7a3191126f7790ec0bf5b77320fe855514
Reviewed-on: https://go-review.googlesource.com/c/go/+/410099
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
2022-06-06 18:57:34 +00:00
..
abi cmd/compile,cmd/internal/obj: replace Ctxt.FixedFrameSize method with Arch field 2022-04-19 15:59:22 +00:00
abt cmd/compile: convert merge to use appl. bal. trees for sharing 2022-05-11 16:34:41 +00:00
amd64 [dev.boringcrypto] cmd/compile: remove the awful boringcrypto kludge 2022-04-29 14:24:53 +00:00
arm cmd/compile,cmd/internal/obj: replace Ctxt.FixedFrameSize method with Arch field 2022-04-19 15:59:22 +00:00
arm64 cmd/compile: use jump table on ARM64 2022-05-13 19:51:03 +00:00
base cmd/internal/obj: add a flag to not write referenced symbol names in object file 2022-05-11 21:01:09 +00:00
bitvec
compare cmd/compile: Unify & improve struct comparisons 2022-04-21 23:45:31 +00:00
deadcode cmd/compile: constant-fold switches early in compilation 2022-04-14 19:37:30 +00:00
devirtualize
dwarfgen cmd/compile,cmd/internal/obj: replace Ctxt.FixedFrameSize method with Arch field 2022-04-19 15:59:22 +00:00
escape cmd/compile/internal/escape: escape values with >PtrSize alignment 2022-06-03 20:15:20 +00:00
gc cmd/compile, cmd/link: use libFuzzer 8-bit instead of extra counters 2022-05-20 21:32:57 +00:00
importer internal/pkgbits: add Index type 2022-05-25 16:16:01 +00:00
inline cmd/compile: tighten the condition for inlining shape/non-shape function 2022-05-17 00:58:22 +00:00
ir cmd/compile, cmd/link: use libFuzzer 8-bit instead of extra counters 2022-05-20 21:32:57 +00:00
liveness [dev.boringcrypto] cmd: use notsha256 instead of md5, sha1, sha256 2022-04-29 14:23:19 +00:00
logopt cmd/compile/internal: fix test error on loong64 2022-05-13 22:18:38 +00:00
loong64 cmd/compile/internal/loong64: implement Init function for loong64 2022-05-12 21:40:53 +00:00
mips cmd/compile,cmd/internal/obj: replace Ctxt.FixedFrameSize method with Arch field 2022-04-19 15:59:22 +00:00
mips64 cmd/compile,cmd/internal/obj: replace Ctxt.FixedFrameSize method with Arch field 2022-04-19 15:59:22 +00:00
noder [dev.unified] cmd/compile/internal/noder: add optExpr for optional expressions 2022-06-06 18:57:34 +00:00
objw
pkginit all: fix spelling 2022-05-17 21:46:33 +00:00
ppc64 all: fix spelling 2022-05-17 19:51:29 +00:00
reflectdata all: fix spelling 2022-05-17 21:46:33 +00:00
riscv64 cmd/compile,cmd/internal/obj: replace Ctxt.FixedFrameSize method with Arch field 2022-04-19 15:59:22 +00:00
s390x cmd/compile,cmd/internal/obj: replace Ctxt.FixedFrameSize method with Arch field 2022-04-19 15:59:22 +00:00
ssa doc: lint Markdown for trailing spaces and code blocks 2022-05-27 15:07:38 +00:00
ssagen cmd/compile: remove base.Ctxt.Pkgpath fallback paths 2022-05-16 20:19:45 +00:00
staticdata cmd/compile: remove base.Ctxt.Pkgpath fallback paths 2022-05-16 20:19:45 +00:00
staticinit cmd/compile: set LocalPkg.Path to -p flag 2022-05-16 18:19:47 +00:00
syntax cmd/compile/internal/syntax: fix printing of ambiguous constraint literals 2022-05-06 16:18:28 +00:00
test cmd/compile/internal/test: make TestIntendedInlining faster 2022-05-18 18:06:05 +00:00
typebits
typecheck cmd/compile: fix wrong unsafe.Offsetof evaluation inside generic function 2022-05-31 14:58:09 +00:00
types cmd/compile/internal/types: use Type.LinkString in TypeHash 2022-05-16 23:55:03 +00:00
types2 go/types, types2: remove redundant calls to Named.resolve 2022-05-24 17:47:42 +00:00
walk cmd/compile: support libFuzzer value profiling mode for integer compares 2022-05-23 16:21:22 +00:00
wasm
x86 cmd/compile,cmd/internal/obj: replace Ctxt.FixedFrameSize method with Arch field 2022-04-19 15:59:22 +00:00