]> Cypherpunks repositories - gostls13.git/commit
gc: add panic and recover (still unimplemented in runtime)
authorRuss Cox <rsc@golang.org>
Tue, 30 Mar 2010 17:53:16 +0000 (10:53 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 30 Mar 2010 17:53:16 +0000 (10:53 -0700)
commit01eaf780a8d09ce0b41526fa2701cfbba80f2b8b
tree8b22d716f9984a7f88845cd2c746c175c911fbcf
parentc7122a3c5888df468a96edd0cb071801030794e6
gc: add panic and recover (still unimplemented in runtime)
main semantic change is to enforce single argument to panic.

runtime: change to 1-argument panic.
use String method on argument if it has one.

R=ken2, r
CC=golang-dev
https://golang.org/cl/812043
13 files changed:
src/cmd/gc/align.c
src/cmd/gc/builtin.c.boot
src/cmd/gc/go.h
src/cmd/gc/lex.c
src/cmd/gc/runtime.go
src/cmd/gc/typecheck.c
src/cmd/gc/walk.c
src/pkg/runtime/386/asm.s
src/pkg/runtime/amd64/asm.s
src/pkg/runtime/arm/asm.s
src/pkg/runtime/print.c
src/pkg/runtime/runtime.c
src/pkg/runtime/runtime.h