]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: display Go code for a function in ssa.html
authorYury Smolsky <yury@smolsky.by>
Thu, 14 Jun 2018 15:20:03 +0000 (18:20 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 22 Aug 2018 19:58:07 +0000 (19:58 +0000)
commit8c0425825ced4042eac0439161abe1f22a47d615
treef42338afbac2a5ca21e9886e5d451610eb57d9f1
parent7b8930ed4587a7f423380220be170daedc620c49
cmd/compile: display Go code for a function in ssa.html

This CL adds the "sources" column at the beginning of SSA table.
This column displays the source code for the function being passed
in the GOSSAFUNC env variable.

Also UI was extended so that clicking on particular line will
highlight all places this line is referenced.

JS code was cleaned and formatted.

This CL does not handle inlined functions. See issue 25904.

Change-Id: Ic7833a0b05e38795f4cf090f3dc82abf62d97026
Reviewed-on: https://go-review.googlesource.com/119035
Run-TryBot: Yury Smolsky <yury@smolsky.by>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/html.go