]> Cypherpunks repositories - gostls13.git/commit
cmd/5g, cmd/5l, cmd/6l, cmd/8l, cmd/gc, cmd/ld, runtime: accurate args and locals...
authorCarl Shapiro <cshapiro@google.com>
Thu, 21 Feb 2013 20:52:26 +0000 (12:52 -0800)
committerCarl Shapiro <cshapiro@google.com>
Thu, 21 Feb 2013 20:52:26 +0000 (12:52 -0800)
commitf466617a620ce98a7a6a84f51621458641a0c38f
tree708311a4699f5860aee3c26c7130a4fca84aa23e
parentfb21bca01253dfba1a7254f816576724fc2443a9
cmd/5g, cmd/5l, cmd/6l, cmd/8l, cmd/gc, cmd/ld, runtime: accurate args and locals information

Previously, the func structure contained an inaccurate value for
the args member and a 0 value for the locals member.

This change populates the func structure with args and locals
values computed by the compiler.  The number of args was
already available in the ATEXT instruction.  The number of
locals is now passed through in the new ALOCALS instruction.

This change also switches the unit of args and locals to be
bytes, just like the frame member, instead of 32-bit words.

R=golang-dev, bradfitz, cshapiro, dave, rsc
CC=golang-dev
https://golang.org/cl/7399045
20 files changed:
src/cmd/5g/peep.c
src/cmd/5l/5.out.h
src/cmd/5l/l.h
src/cmd/5l/obj.c
src/cmd/5l/span.c
src/cmd/6l/6.out.h
src/cmd/6l/l.h
src/cmd/6l/obj.c
src/cmd/6l/optab.c
src/cmd/8l/8.out.h
src/cmd/8l/l.h
src/cmd/8l/obj.c
src/cmd/8l/optab.c
src/cmd/gc/pgen.c
src/cmd/ld/lib.c
src/pkg/runtime/extern.go
src/pkg/runtime/runtime.h
src/pkg/runtime/symtab.c
src/pkg/runtime/traceback_arm.c
src/pkg/runtime/traceback_x86.c