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

Issue 7313062: code review 7313062: exp/ssa/interp: (#6 of 5): test interpretation of SSA f... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by adonovan
Modified:
12 years ago
Reviewers:
CC:
iant, bradfitz, golang-dev, gri
Visibility:
Public.

Description

exp/ssa/interp: (#6 of 5): test interpretation of SSA form of $GOROOT/test/*.go. The interpreter's os.Exit now triggers a special panic rather than kill the test process. (It's semantically dubious, since it will run deferred routines.) Interpret now returns its exit code rather than calling os.Exit. Also: - disabled parts of a few $GOROOT/tests via os.Getenv("GOSSAINTERP"). - remove unnecessary 'slots' param to external functions; they are never closures. Most of the tests are disabled until go/types supports shifts. They can be reenabled if you patch this workaround: https://codereview.appspot.com/7312068

Patch Set 1 #

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

Patch Set 3 : diff -r 7dc9a98ddfcc https://code.google.com/p/go/ #

Patch Set 4 : diff -r 7dc9a98ddfcc https://code.google.com/p/go/ #

Patch Set 5 : diff -r 7dc9a98ddfcc https://code.google.com/p/go/ #

Patch Set 6 : diff -r 7dc9a98ddfcc https://code.google.com/p/go/ #

Total comments: 18

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

Total comments: 2

Patch Set 8 : diff -r 7b970f25d101 https://code.google.com/p/go/ #

Patch Set 9 : diff -r dd18b993ba95 https://code.google.com/p/go/ #

Patch Set 10 : diff -r 019c1c8930bc https://code.google.com/p/go/ #

Patch Set 11 : diff -r 019c1c8930bc https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+674 lines, -124 lines) Patch
M src/pkg/exp/ssa/interp/external.go View 1 2 5 chunks +24 lines, -25 lines 0 comments Download
M src/pkg/exp/ssa/interp/external_unix.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/exp/ssa/interp/external_windows.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/exp/ssa/interp/interp.go View 1 2 3 4 5 6 7 8 9 9 chunks +30 lines, -16 lines 0 comments Download
A src/pkg/exp/ssa/interp/interp_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +222 lines, -0 lines 0 comments Download
M src/pkg/exp/ssa/interp/reflect.go View 1 2 3 4 5 6 7 8 13 chunks +42 lines, -47 lines 0 comments Download
A src/pkg/exp/ssa/interp/testdata/coverage.go View 1 2 3 4 5 6 7 8 1 chunk +294 lines, -0 lines 0 comments Download
M test/blank.go View 1 2 3 4 2 chunks +13 lines, -6 lines 0 comments Download
M test/cmp.go View 1 2 3 4 4 chunks +13 lines, -5 lines 0 comments Download
M test/const.go View 1 2 3 4 3 chunks +23 lines, -18 lines 0 comments Download
M test/recover.go View 1 2 3 4 1 chunk +9 lines, -3 lines 0 comments Download

Messages

Total messages: 14
adonovan
Hello iant@golang.org (cc: golang-dev@googlegroups.com, gri@golang.org), I'd like you to review this change to https://code.google.com/p/go/
12 years, 1 month ago (2013-02-08 22:00:50 UTC) #1
iant
https://codereview.appspot.com/7313062/diff/4/test/blank.go File test/blank.go (right): https://codereview.appspot.com/7313062/diff/4/test/blank.go#newcode112 test/blank.go:112: if os.Getenv("GOSSAINTERP") == "" { I only looked at ...
12 years, 1 month ago (2013-02-08 23:10:23 UTC) #2
adonovan
https://codereview.appspot.com/7313062/diff/4/test/blank.go File test/blank.go (right): https://codereview.appspot.com/7313062/diff/4/test/blank.go#newcode112 test/blank.go:112: if os.Getenv("GOSSAINTERP") == "" { On 2013/02/08 23:10:23, iant ...
12 years, 1 month ago (2013-02-08 23:21:50 UTC) #3
iant
Sorry about this, but I don't think most of the changes to the test directory ...
12 years, 1 month ago (2013-02-11 16:56:54 UTC) #4
adonovan
https://codereview.appspot.com/7313062/diff/4/src/pkg/exp/ssa/interp/interp.go File src/pkg/exp/ssa/interp/interp.go (right): https://codereview.appspot.com/7313062/diff/4/src/pkg/exp/ssa/interp/interp.go#newcode597 src/pkg/exp/ssa/interp/interp.go:597: exitCode = 1 On 2013/02/11 16:56:55, iant wrote: > ...
12 years, 1 month ago (2013-02-11 20:59:19 UTC) #5
iant
On 2013/02/11 20:59:19, adonovan wrote: > src/pkg/exp/ssa/interp/interp_test.go:134: fmt.Printf("Input: %s\n", input) > On 2013/02/11 16:56:55, iant ...
12 years, 1 month ago (2013-02-12 00:40:49 UTC) #6
iant
https://codereview.appspot.com/7313062/diff/27/test/cmplxdivide.go File test/cmplxdivide.go (right): https://codereview.appspot.com/7313062/diff/27/test/cmplxdivide.go#newcode49 test/cmplxdivide.go:49: panic("cmplxdivide failed.") I thought these simple cleanups were moving ...
12 years, 1 month ago (2013-02-12 00:40:58 UTC) #7
adonovan
https://codereview.appspot.com/7313062/diff/27/test/cmplxdivide.go File test/cmplxdivide.go (right): https://codereview.appspot.com/7313062/diff/27/test/cmplxdivide.go#newcode49 test/cmplxdivide.go:49: panic("cmplxdivide failed.") On 2013/02/12 00:40:58, iant wrote: > I ...
12 years, 1 month ago (2013-02-12 03:23:16 UTC) #8
iant
We changed away from a golden file a while back. The tests are now run ...
12 years, 1 month ago (2013-02-12 05:53:14 UTC) #9
bradfitz
On Mon, Feb 11, 2013 at 9:53 PM, <iant@golang.org> wrote: > We changed away from ...
12 years, 1 month ago (2013-02-12 06:09:45 UTC) #10
adonovan
Thanks for the clarifications; in that case I will make another CL to ensure that ...
12 years, 1 month ago (2013-02-12 16:26:05 UTC) #11
adonovan
(PTAL) On 2013/02/12 16:26:05, adonovan wrote: > Thanks for the clarifications; in that case I ...
12 years, 1 month ago (2013-02-13 05:43:03 UTC) #12
iant
LGTM
12 years, 1 month ago (2013-02-13 06:03:20 UTC) #13
adonovan
12 years ago (2013-02-21 17:48:41 UTC) #14
*** Submitted as https://code.google.com/p/go/source/detail?r=577ba2d07b0b ***

exp/ssa/interp: (#6 of 5): test interpretation of SSA form of $GOROOT/test/*.go.

The interpreter's os.Exit now triggers a special panic rather
than kill the test process.  (It's semantically dubious, since
it will run deferred routines.)  Interpret now returns its
exit code rather than calling os.Exit.

Also:
- disabled parts of a few $GOROOT/tests via os.Getenv("GOSSAINTERP").
- remove unnecessary 'slots' param to external functions; they
  are never closures.

Most of the tests are disabled until go/types supports shifts.
They can be reenabled if you patch this workaround:
https://codereview.appspot.com/7312068

R=iant, bradfitz
CC=golang-dev, gri
https://codereview.appspot.com/7313062
Sign in to reply to this message.

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