Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(203)

Issue 87210044: go.tools/go/ssa: emit a recover block if the function's... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by pcc
Modified:
10 years, 9 months ago
Reviewers:
adonovan
CC:
adonovan, golang-codereviews
Visibility:
Public.

Description

go.tools/go/ssa: emit a recover block if the function's results are unnamed It is easier for clients to recover from panics if the recover block is always present. Otherwise, the client has to work around the lack of a recover block by synthesizing a zero value return.

Patch Set 1 #

Patch Set 2 : diff -r 7d0894e4b70b https://code.google.com/p/go.tools #

Patch Set 3 : diff -r 6f5d6de34e1f https://code.google.com/p/go.tools #

Patch Set 4 : diff -r 6f5d6de34e1f https://code.google.com/p/go.tools #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -11 lines) Patch
M go/ssa/builder.go View 1 2 1 chunk +6 lines, -8 lines 1 comment Download
M go/ssa/interp/interp.go View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 11
pcc
Mainly looking for opinions -- I'll ping after we unfreeze.
10 years, 11 months ago (2014-04-12 00:41:03 UTC) #1
adonovan
> [clients] cannot rely on the lack of a recover block to act as an ...
10 years, 11 months ago (2014-04-18 21:06:40 UTC) #2
pcc
That's a good point. I now wonder if go/ssa should be trying to do interprocedural ...
10 years, 11 months ago (2014-04-18 21:26:38 UTC) #3
adonovan
On 18 April 2014 17:26, Peter Collingbourne <pcc@google.com> wrote: > I now wonder if go/ssa ...
10 years, 11 months ago (2014-04-18 21:35:01 UTC) #4
adonovan
(Optimization deleted in CL https://codereview.appspot.com/105020045.) On 18 April 2014 17:35, Alan Donovan <adonovan@google.com> wrote: > ...
10 years, 9 months ago (2014-06-11 20:28:01 UTC) #5
pcc
Updated against trunk with a better description.
10 years, 9 months ago (2014-06-11 23:06:08 UTC) #6
adonovan
On 2014/06/11 23:06:08, pcc wrote: > Updated against trunk with a better description. I would ...
10 years, 9 months ago (2014-06-12 01:52:51 UTC) #7
pcc
On 2014/06/12 01:52:51, adonovan wrote: > On 2014/06/11 23:06:08, pcc wrote: > > Updated against ...
10 years, 9 months ago (2014-06-12 02:35:29 UTC) #8
adonovan
LGTM > This CL is intended to make the API slightly simpler... Fair point. I ...
10 years, 9 months ago (2014-06-13 17:05:00 UTC) #9
adonovan
On 2014/06/13 17:05:00, adonovan wrote: > LGTM > > > This CL is intended to ...
10 years, 9 months ago (2014-06-13 17:07:30 UTC) #10
adonovan
10 years, 9 months ago (2014-06-13 17:08:37 UTC) #11
*** Submitted as
https://code.google.com/p/go/source/detail?r=6ad8bf15f79a&repo=tools ***

go.tools/go/ssa: emit a recover block if the function's results are unnamed

It is easier for clients to recover from panics if the recover block
is always present. Otherwise, the client has to work around the lack
of a recover block by synthesizing a zero value return.

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://codereview.appspot.com/87210044

Committer: Alan Donovan <adonovan@google.com>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b