go/src/cmd/compile/internal/gc
Matthew Dempsky f5d59d0e38 cmd/compile: skip looking for OCLOSURE nodes in xtop
xtop holds package's top-level declaration statements, but OCLOSURE
only appears in expression contexts. xtop will instead hold the
synthetic ODCLFUNC representing OCLOSURE's function body.

This CL makes the loop consistent with the later phases that only look
for ODCLFUNC nodes in xtop.

Passes toolstash-check.

Change-Id: I852a10ef1bf75bb3351e3da0357ca8b2e26aec6e
Reviewed-on: https://go-review.googlesource.com/c/go/+/255340
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
2020-09-16 23:00:02 +00:00
..
builtin cmd/compile: unify reflect, string and slice copy runtime functions 2020-09-16 04:37:14 +00:00
testdata cmd/compile: add test case for issue 38068 2020-05-29 20:31:43 +00:00
alg.go cmd/compile: make funccompile non-reentrant 2020-09-15 02:05:31 +00:00
algkind_string.go cmd/compile: make AlgKind a stringer 2020-04-16 03:19:50 +00:00
align.go cmd/compile: clean up slice and string offsets/sizes 2020-04-09 01:16:43 +00:00
bench_test.go cmd/compile: add indexed memory modification ops to amd64 2020-04-30 17:21:31 +00:00
bexport.go all: fix a bunch of misspellings 2019-11-15 21:04:43 +00:00
bimport.go cmd/compile: report more precise errors about untyped constants 2019-09-09 22:12:15 +00:00
bitset.go cmd/compile: inline calls to local closures 2017-10-11 22:32:36 +00:00
bootstrap.go cmd/compile: add mutex profiling support 2017-04-05 22:10:54 +00:00
builtin.go cmd/compile: unify reflect, string and slice copy runtime functions 2020-09-16 04:37:14 +00:00
builtin_test.go cmd/compile: mark a few more tests as parallel 2019-05-13 20:36:21 +00:00
bv.go cmd/compile: use math/bits for bvec 2020-04-09 01:14:53 +00:00
class_string.go cmd/compile: remove PDISCARD class 2019-10-13 01:47:43 +00:00
closure.go cmd/compile: do not declare func nodes 2020-09-03 02:48:11 +00:00
const.go cmd/compile: remove guard for OCOMPLEX in evconst 2020-03-11 20:17:30 +00:00
constFold_test.go cmd/compile: use std "DO NOT EDIT" comment for generated files 2017-03-31 18:50:40 +00:00
dcl.go cmd/compile: better dclcontext handling in func{hdr,body} 2020-09-14 23:42:35 +00:00
dep_test.go cmd/compile/internal/gc: use GoToolPath in TestDeps 2019-09-03 19:54:33 +00:00
dump.go all: clean up code with token.IsExported 2019-04-16 14:43:48 +00:00
dwinl.go cmd/compile: use existing instructions instead of nops for inline marks 2019-03-25 16:49:29 +00:00
esc.go cmd/compile: add Type.IsUintptr() to detect type is an uintptr 2020-09-09 08:03:14 +00:00
escape.go cmd/compile: make go:notinheap error message friendlier for cgo 2020-09-16 17:28:13 +00:00
export.go cmd/compile: change size diagnostic to use benchmark format 2019-10-03 20:43:01 +00:00
fixedbugs_test.go cmd/compile: move Issue 16214 test, delete asm_test file 2018-04-16 11:51:56 +00:00
float_test.go cmd/compile: don't allow NaNs in floating-point constant ops 2020-03-04 04:49:54 +00:00
fmt.go cmd/compile: use clearer error message for stuct literal 2020-09-12 08:31:49 +00:00
gen.go cmd/compile: remove tempname usages 2019-09-06 16:59:11 +00:00
global_test.go cmd/compile: mark a few more tests as parallel 2019-05-13 20:36:21 +00:00
go.go cmd/compile: remove nil check for p in isReflectPkg 2020-04-20 05:15:24 +00:00
gsubr.go cmd/compile,cmd/asm: simplify recording of branch targets, take 2 2020-08-31 17:36:08 +00:00
iexport.go [dev.link] cmd: remove "2", another round 2020-08-11 18:32:23 +00:00
iface_test.go cmd/compile: inline convT2{I,E} when result doesn't escape 2016-09-19 02:37:08 +00:00
iimport.go cmd/compile: remove unnecessary error condition on reading fingerprint 2020-08-18 21:18:14 +00:00
init.go cmd/compile: call fninit earlier 2020-09-14 23:42:44 +00:00
initorder.go cmd/compile: use Node.Right for OAS2* nodes (cleanup) 2019-09-28 05:04:49 +00:00
inl.go cmd/compile: refactor detecting package reflect logic 2020-04-20 02:39:16 +00:00
inl_test.go cmd/compile: update TestIntendedInlining for riscv64 2020-04-13 17:29:23 +00:00
lang_test.go cmd/compile: correct check for valid -lang version 2018-11-13 00:08:32 +00:00
lex.go cmd/compile: detect and diagnose invalid //go: directive placement 2020-04-21 16:47:01 +00:00
lex_test.go all: fix incorrect channel and API usage in some unit tests 2020-02-27 19:04:17 +00:00
logic_test.go cmd/compile: add tests for logical simplification rewrite rules 2016-05-26 22:16:52 +00:00
main.go cmd/compile: skip looking for OCLOSURE nodes in xtop 2020-09-16 23:00:02 +00:00
mapfile_mmap.go cmd/compile: add indexed export format 2018-04-24 01:05:27 +00:00
mapfile_read.go cmd/compile: add indexed export format 2018-04-24 01:05:27 +00:00
mkbuiltin.go cmd/compile: factor out Pkg, Sym, and Type into package types 2017-04-07 03:04:00 +00:00
mpfloat.go cmd/compile: resolve TODO of Mpflt.SetString 2019-10-30 04:55:05 +00:00
mpint.go cmd/compile: don't report redundant error for invalid integer literals 2019-03-12 22:59:12 +00:00
noder.go cmd/compile/internal/gc: remove unparen 2020-09-02 15:49:03 +00:00
obj.go cmd/compile: make funccompile non-reentrant 2020-09-15 02:05:31 +00:00
op_string.go cmd/compile: optimize make+copy pattern to avoid memclr 2020-05-07 17:50:24 +00:00
order.go cmd/compile: remove nodeNeedsWrapper flag 2020-09-13 04:35:35 +00:00
pgen.go runtime: framepointers are no longer an experiment - hard code them 2020-08-27 21:15:47 +00:00
pgen_test.go cmd/compile: don't allow go:notinheap on the heap or stack 2020-08-25 01:46:05 +00:00
phi.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
plive.go cmd/compile: introduce special ssa Aux type for calls 2020-09-16 20:57:24 +00:00
pprof.go cmd/compile: add mutex profiling support 2017-04-05 22:10:54 +00:00
racewalk.go cmd/compile: stop race instrumentation from clobbering frame pointer 2020-08-16 17:05:44 +00:00
range.go cmd/compile: don't allow go:notinheap on the heap or stack 2020-08-25 01:46:05 +00:00
reflect.go cmd/compile: make Haspointers a method instead of a function 2020-08-23 18:33:55 +00:00
reproduciblebuilds_test.go cmd/compile: add test case for issue 38068 2020-05-29 20:31:43 +00:00
scc.go cmd/compile: more precise analysis of method values 2020-04-21 20:49:34 +00:00
scope.go cmd/compile: remove large intermediate slice from gc.scopePCs 2019-05-13 15:52:36 +00:00
scope_test.go cmd/compile: assign correct declaration line to DIE of captured vars 2020-02-24 20:00:38 +00:00
select.go cmd/compile,runtime: skip zero'ing order array for select statements 2020-08-29 08:02:52 +00:00
shift_test.go cmd/compile: test non-constant shifts 2016-06-01 00:06:00 +00:00
sinit.go cmd/compile: another fix initializing blank fields in struct literal 2020-08-15 03:09:21 +00:00
sizeof_test.go cmd/compile, cmd/link, runtime: make defers low-cost through inline code and extra funcdata 2019-10-24 13:54:11 +00:00
ssa.go cmd/compile: make translation to calls for SSA look more "value-oriented" 2020-09-16 21:02:46 +00:00
ssa_test.go cmd/compile: move last compile tests to new test infrastructure 2018-08-24 22:59:12 +00:00
subr.go cmd/compile: make go:notinheap error message friendlier for cgo 2020-09-16 17:28:13 +00:00
swt.go cmd/compile: make type switch case positions consistent 2020-04-14 17:44:16 +00:00
syntax.go cmd/compile: remove nodeNeedsWrapper flag 2020-09-13 04:35:35 +00:00
timings.go cmd/compile: add compiler phase timing 2016-08-17 17:27:04 +00:00
trace.go cmd/compile/internal/gc: add runtime/trace support 2016-10-12 13:57:26 +00:00
truncconst_test.go cmd/compile: diagnose constant division by complex zero 2017-04-12 17:29:28 +00:00
typecheck.go cmd/compile: be more specific in cannot assign errors 2020-09-16 20:04:58 +00:00
types.go cmd/compile: remove vestigial TDDDFIELD 2019-09-09 23:17:01 +00:00
types_acc.go cmd/compile: factor out Pkg, Sym, and Type into package types 2017-04-07 03:04:00 +00:00
universe.go cmd/compile: clean up slice and string offsets/sizes 2020-04-09 01:16:43 +00:00
unsafe.go cmd/compile: bulk rename 2018-11-19 00:02:53 +00:00
util.go cmd/compile: add mutex profiling support 2017-04-05 22:10:54 +00:00
walk.go cmd/compile: make go:notinheap error message friendlier for cgo 2020-09-16 17:28:13 +00:00
zerorange_test.go cmd/compile: add an explicit test for compile of arch.ZeroRange 2019-10-02 17:24:11 +00:00