runtime: turn divide by zero, nil dereference into panics

tested on linux/amd64, linux/386, linux/arm, darwin/amd64, darwin/386.
freebsd untested; will finish in a separate CL.

for now all the panics are errorStrings.
richer structures can be added as necessary
once the mechanism is shaked out.

R=r
CC=golang-dev
https://golang.org/cl/906041
28 files changed
tree: 7eb05d2a96abffdb4f1d6a015f9d347e56bc217b
  1. doc/
  2. include/
  3. lib/
  4. misc/
  5. pkg/
  6. src/
  7. test/
  8. .hgignore
  9. .hgtags
  10. AUTHORS
  11. CONTRIBUTORS
  12. favicon.ico
  13. LICENSE
  14. README