runtime: remove memset/memclr shim

This CL resolves https://codereview.appspot.com/6300043/#msg3
by renaming memset_arm.s to memclr_arm.s and merging the function
of the same name from asm_arm.s.

R=minux.ma, rsc
CC=golang-dev
http://codereview.appspot.com/6336054
net/http: speed up Header.WriteSubset

A few performance improvements, but without the stack sorting
change to avoid allocating, which is instead waiting on better
escape analysis.

R=rsc
CC=golang-dev
http://codereview.appspot.com/6265047
exp/inotify: prevent data race
Fixes issue 3713.

R=bradfitz, rsc
CC=golang-dev
http://codereview.appspot.com/6331055

Committer: Russ Cox <rsc@golang.org>
go/ast: minor comment maps API change

This is a new, not yet committed API.

- Changed NewCommentMap to be independent of
  *File nodes and more symmetric with the
  Filter and Comments methods.

- Implemented Update method for use in
  AST modifications.

- Implemented String method for debugging

R=rsc
CC=golang-dev
http://codereview.appspot.com/6303086
spec: clarify receive operator

- receiving from a closed channel returns immediately
- in the ,ok form, the 2nd result is of type bool, not
  just boolean (gc and ggcgo agree).

Per dsymonds' suggestion.

R=r, rsc, ken, iant, dsymonds
CC=golang-dev
http://codereview.appspot.com/6333057
encoding/csv, encoding/xml: report write errors

Fixes issue 3773.

R=bradfitz, rsc
CC=golang-dev
http://codereview.appspot.com/6327053

Committer: Russ Cox <rsc@golang.org>
encoding/json: simplify (*decodeState).indirect

Removes an incorrect code comment and some superfluous variables.

The comment I removed says that struct fields which implement
Unmarshaler must be pointers, even if they're in an addressable
struct. That's not the case, and there's already a test in decode_test.go
that demonstrates as much.

Encoding/json has quite a few assignments of reflect.Values to extra
variables – things like "iv := v" when there's no need to make a copy. I
think these are left over from a previous version of the reflect API. If they
aren't wanted, I wouldn't mind going through the package and getting
rid of the rest of them.

R=rsc
CC=golang-dev
http://codereview.appspot.com/6318047

Committer: Russ Cox <rsc@golang.org>
gofmt: handle comments correctly in rewrites

R=rsc
CC=golang-dev
http://codereview.appspot.com/6294076
A+C: Amir Mohammad Saied, Thomas Alan Copeland (both individual CLA)

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6330059
encoding/base32, encoding/base64: removed unneeded break label

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6305086

Committer: Russ Cox <rsc@golang.org>
misc/chrome/gophertool: Support for manifest version 1 is being phased out.

Manifest version 1 was deprecated in Chrome 18, and support will be phased
out according to the schedule available at:
http://code.google.com/chrome/extensions/manifestVersion.html

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6332053

Committer: Russ Cox <rsc@golang.org>
go/build: fix doc typo

go/build section "Build Constraints", first paragraph said:
  "... they must be appear near the top of the file ..."
fixed to:
  "... they must appear near the top of the file ..."

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6329060

Committer: Russ Cox <rsc@golang.org>
A+C: add Michael Stapelberg (individual CLA)

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6325058
net: fix lookup of AAAA-only hosts without cgo

Fixes issue 3762.

R=rsc
CC=golang-dev
http://codereview.appspot.com/6303106

Committer: Russ Cox <rsc@golang.org>
A+C: Jonathan Gold (individual CLA)

This is my last one for today, I hope!

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6339052
encoding/json: add Number type

Number represents the actual JSON text,
preserving the precision and
formatting of the original input.

R=rsc, iant
CC=golang-dev
http://codereview.appspot.com/6202068

Committer: Russ Cox <rsc@golang.org>
      doc: drop video title from homepage

It's just stutter.

R=golang-dev, dsymonds, r
CC=golang-dev
http://codereview.appspot.com/6334053
runtime: add arm soft division and modulo benchmarks

arm soft div and mod performance plays an important part
in runtime performance.

The currently implementation is very stable, but we believe
we can best it. This benchmark provides a reference point.

linux/arm omap4 pandaboard

BenchmarkUint32Div7     10000000               298 ns/op
BenchmarkUint32Div37    10000000               298 ns/op
BenchmarkUint32Div123   10000000               298 ns/op
BenchmarkUint32Div763   10000000               298 ns/op
BenchmarkUint32Div1247  10000000               299 ns/op
BenchmarkUint32Div9305  10000000               298 ns/op
BenchmarkUint32Div13307 10000000               298 ns/op
BenchmarkUint32Div52513 10000000               298 ns/op
BenchmarkUint32Div60978747      10000000               298 ns/op
BenchmarkUint32Div106956295     10000000               297 ns/op
BenchmarkUint32Mod7     10000000               280 ns/op
BenchmarkUint32Mod37    10000000               280 ns/op
BenchmarkUint32Mod123   10000000               280 ns/op
BenchmarkUint32Mod763   10000000               280 ns/op
BenchmarkUint32Mod1247  10000000               280 ns/op
BenchmarkUint32Mod9305  10000000               280 ns/op
BenchmarkUint32Mod13307 10000000               280 ns/op
BenchmarkUint32Mod52513 10000000               280 ns/op
BenchmarkUint32Mod60978747      10000000               280 ns/op
BenchmarkUint32Mod106956295     10000000               280 ns/op

R=minux.ma, rsc
CC=golang-dev
http://codereview.appspot.com/6258067
fmt: set p.field before nil check
Fixes issue 3752.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6331062
A+C: L Campbell (individual CLA)

Guess I was wrong about being done for the day.

R=golang-dev, r
CC=golang-dev, unpantsu
http://codereview.appspot.com/6325060