summaryrefslogtreecommitdiff
path: root/src/cmd/8g/gg.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-08-31 07:37:14 -0400
committerRuss Cox <rsc@golang.org>2011-08-31 07:37:14 -0400
commit1d8284a493d5eab545206ff027300868284d81bc (patch)
tree1e3b8965675362384d368145c626504cd5f3b2d3 /src/cmd/8g/gg.h
parentbe4b94ca9da97cda58451ae4225529ca859b7e88 (diff)
downloadgo-1d8284a493d5eab545206ff027300868284d81bc.tar.gz
gc: make static initialization more static
Does as much as possible in data layout instead of during the init function. Handles var x = y; var y = z as a special case too, because it is so prevalent in package unicode (var Greek = _Greek; var _Greek = []...). Introduces InitPlan description of initialized data so that it can be traversed multiple times (for example, in the copy handler). Cuts package unicode's init function size by 8x. All that remains there is map initialization, which is on the chopping block too. Fixes sinit.go test case. Aggregate DATA instructions at end of object file. Checkpoint. More to come. R=ken2 CC=golang-dev http://codereview.appspot.com/4969051
Diffstat (limited to 'src/cmd/8g/gg.h')
-rw-r--r--src/cmd/8g/gg.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/cmd/8g/gg.h b/src/cmd/8g/gg.h
index 0d6aaf60f..e23ee9e27 100644
--- a/src/cmd/8g/gg.h
+++ b/src/cmd/8g/gg.h
@@ -162,12 +162,6 @@ void complexgen(Node*, Node*);
void complexbool(int, Node*, Node*, int, Prog*);
/*
- * gobj.c
- */
-void data(void);
-void text(void);
-
-/*
* list.c
*/
int Aconv(Fmt*);