1
0
mirror of https://github.com/golang/go synced 2024-10-03 06:21:21 -06:00
go/src
Rob Pike daddeb2686 cmd/internal/obj: make Rconv a global function
Clean up the obj API by making Rconv (register pretty printer) a top-level
function. This means that Dconv (operand pretty printer) doesn't need
an Rconv argument.

To do this, we make the register numbers, which are arbitrary inside an
operand (obj.Addr), disjoint sets for each architecture. Each architecture
registers (ha) a piece of the space and then the global Rconv knows which
architecture-specific printer to use.

Clean up all the code that uses Dconv.

Now register numbers are large, so a couple of fields in Addr need to go
from int8 to int16 because they sometimes hold register numbers. Clean
up their uses, which meant regenerating the yacc grammars for the
assemblers. There are changes in this CL triggered by earlier changes
to yacc, which had not been run in this directory.

There is still cleanup to do in Addr, but we're getting closer to that being
easy to do.

Change-Id: I9290ebee013b62f7d24e886743ea5a6b232990ab
Reviewed-on: https://go-review.googlesource.com/6220
Reviewed-by: Russ Cox <rsc@golang.org>
2015-02-27 03:51:33 +00:00
..
archive archive/zip: fix size value in ZIP64 end central directory record 2015-02-26 15:24:32 +00:00
bufio bufio: add Reader.Discard 2015-01-07 06:37:57 +00:00
builtin
bytes bytes, strings: improve documentation for Count functions 2015-01-22 18:28:35 +00:00
cmd cmd/internal/obj: make Rconv a global function 2015-02-27 03:51:33 +00:00
compress all: don't refer to code.google.com/p/go{,-wiki}/ 2015-02-06 14:41:47 +00:00
container
crypto crypto/x509: make behaviour of absolute DNS names match Chromium. 2015-02-24 19:45:52 +00:00
database/sql database/sql: reduce lock contention in Stmt.connStmt 2015-01-24 09:56:25 +00:00
debug
encoding encoding/xml: add more marshalTests tests. 2015-02-25 23:56:21 +00:00
errors
expvar expvar: fix build 2015-02-05 13:53:29 +00:00
flag
fmt cmd/gc: allocate buffers for non-escaped strings on stack 2015-01-28 20:12:38 +00:00
go mime/quotedprintable: create the package 2015-02-26 20:09:28 +00:00
hash
html all: don't refer to code.google.com/p/go{,-wiki}/ 2015-02-06 14:41:47 +00:00
image image/jpeg: support 4:1:1 and 4:1:0 chroma subsampling. 2015-02-26 02:08:45 +00:00
index/suffixarray
internal os: Use GetComputerNameEx to get Hostname on win32 2015-02-25 23:16:44 +00:00
io
lib9 [dev.cc] all: merge master (5f1efe7) into dev.cc 2015-02-13 12:51:56 -05:00
libbio
liblink liblink: delete unused code 2015-02-26 19:44:08 +00:00
log log: add SetOutput method on Logger 2015-01-30 16:00:10 +00:00
math math/big: export Float.MinPrec 2015-02-26 17:01:16 +00:00
mime mime/quotedprintable: create the package 2015-02-26 20:09:28 +00:00
net net/http/cgi: skip exec test on darwin/arm 2015-02-26 22:46:39 +00:00
os os/exec: disable tests on darwin/arm 2015-02-26 16:19:46 +00:00
path path/filepath: add example for filepath.Split 2015-02-20 07:35:57 +00:00
reflect Call --> CallSlice in two spots. No logic change, docs only. 2015-02-22 17:22:04 +00:00
regexp regexp: update URLs in tests 2015-01-26 01:54:28 +00:00
runtime runtime: skip tests that need fork on darwin/arm 2015-02-27 01:22:55 +00:00
sort sort: fixed small typo in comments 2015-02-08 23:38:50 +00:00
strconv strconv: simplified logic resulting in faster float formatting 2015-02-11 17:45:19 +00:00
strings bytes, strings: improve documentation for Count functions 2015-01-22 18:28:35 +00:00
sync sync: add active spinning to Mutex 2015-02-24 10:53:48 +00:00
syscall syscall: Reimplement linux syscalls in terms of their *at replacements. 2015-02-26 23:30:10 +00:00
testing testing: pad benchmark names to align results 2015-02-07 21:52:25 +00:00
text
time Build fix for plan9 after 8bf13838eb. 2015-02-08 22:30:46 +00:00
unicode unicode: Fixed an out of date comment (MaxLatin1, not Latin1Max). 2015-02-16 21:35:33 +00:00
unsafe unsafe: minor doc string improvements 2015-01-28 19:42:15 +00:00
all.bash
all.bat
all.rc
androidtest.bash androidtest.bash: remove use of cp --preserve. 2015-02-13 21:16:25 +00:00
clean.bash
clean.bat
clean.rc
make.bash [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
make.bat [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
Make.dist
make.rc [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
nacltest.bash cmd/dist: reactivate vfp detection on linux/arm 2015-02-10 00:17:06 +00:00
race.bash [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
race.bat [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
run.bash [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
run.bat [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
run.rc [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00