]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: export & import function bodies, but don't hook up
authorRobert Griesemer <gri@golang.org>
Fri, 23 Oct 2015 01:56:45 +0000 (18:56 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 2 Mar 2016 22:26:40 +0000 (22:26 +0000)
commit45983827248f399426839b1789710120086dd4f1
treecf3e05beaa877ae3596f4a0270228e035ac9d701
parentc0f7195d626a8391da969d9fab4e77cd2614826e
cmd/compile/internal/gc: export & import function bodies, but don't hook up

Function bodies are not yet hooked up because the node structure is not
100% correct. This commit establishes that we can correctly write bodies
out and read them in again.

- export and import all exported inlined function bodies:
  (export GO_GCFLAGS="-newexport"; sh all.bash) working
- inlined functions are not yet hooked up (just dropped on the floor)
- improved tracing output and error messages
- make mkbuiltin.go work for both textual and binary export data
  so we can run tests with the new format

Change-Id: I70dc4de419df1b604389c3747041d6dba8730b0b
Reviewed-on: https://go-review.googlesource.com/16284
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/bexport.go
src/cmd/compile/internal/gc/bimport.go
src/cmd/compile/internal/gc/mkbuiltin.go
src/cmd/compile/internal/gc/parser.go
src/cmd/compile/internal/gc/syntax.go