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

Issue 6530047: code review 6530047: cmd/5a, cmd/6a, cmd/8a: introduce TYPE instruction (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by rsc
Modified:
11 years, 7 months ago
Visibility:
Public.

Description

cmd/5a, cmd/6a, cmd/8a: introduce TYPE instruction See src/cmd/6a/doc.go for details. Convert package bytes as a demo. There is more assembly to convert.

Patch Set 1 #

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

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

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

Total comments: 14
Unified diffs Side-by-side diffs Delta from patch set Stats (+4466 lines, -3796 lines) Patch
M src/cmd/5a/a.h View 1 4 chunks +9 lines, -0 lines 0 comments Download
M src/cmd/5a/a.y View 1 7 chunks +43 lines, -11 lines 0 comments Download
M src/cmd/5a/doc.go View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/cmd/5a/lex.c View 1 4 chunks +237 lines, -202 lines 0 comments Download
M src/cmd/5a/y.tab.h View 1 4 chunks +73 lines, -70 lines 0 comments Download
M src/cmd/5a/y.tab.c View 1 75 chunks +805 lines, -953 lines 0 comments Download
M src/cmd/6a/a.h View 1 4 chunks +10 lines, -0 lines 0 comments Download
M src/cmd/6a/a.y View 1 6 chunks +37 lines, -13 lines 0 comments Download
M src/cmd/6a/doc.go View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
M src/cmd/6a/lex.c View 1 5 chunks +844 lines, -807 lines 4 comments Download
M src/cmd/6a/y.tab.h View 1 3 chunks +44 lines, -34 lines 0 comments Download
M src/cmd/6a/y.tab.c View 1 47 chunks +635 lines, -593 lines 0 comments Download
M src/cmd/8a/a.h View 1 4 chunks +9 lines, -0 lines 0 comments Download
M src/cmd/8a/a.y View 1 6 chunks +36 lines, -14 lines 0 comments Download
M src/cmd/8a/doc.go View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/cmd/8a/lex.c View 1 4 chunks +518 lines, -483 lines 0 comments Download
M src/cmd/8a/y.tab.h View 1 3 chunks +39 lines, -30 lines 0 comments Download
M src/cmd/8a/y.tab.c View 1 47 chunks +592 lines, -547 lines 0 comments Download
A src/cmd/cc/gotypebody View 1 2 1 chunk +408 lines, -0 lines 10 comments Download
M src/cmd/cc/lexbody View 1 1 chunk +9 lines, -6 lines 0 comments Download
M src/cmd/dist/build.c View 1 1 chunk +18 lines, -0 lines 0 comments Download
M src/pkg/bytes/asm_386.s View 1 1 chunk +12 lines, -10 lines 0 comments Download
M src/pkg/bytes/asm_amd64.s View 1 4 chunks +14 lines, -12 lines 0 comments Download
M src/pkg/bytes/asm_arm.s View 1 3 chunks +13 lines, -11 lines 0 comments Download

Messages

Total messages: 15
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
11 years, 7 months ago (2012-09-19 04:42:27 UTC) #1
dfc
On 2012/09/19 04:42:27, rsc wrote: > Hello mailto:golang-dev@googlegroups.com, > > I'd like you to review ...
11 years, 7 months ago (2012-09-19 06:52:35 UTC) #2
dfc
On 2012/09/19 06:52:35, dfc wrote: > On 2012/09/19 04:42:27, rsc wrote: > > Hello mailto:golang-dev@googlegroups.com, ...
11 years, 7 months ago (2012-09-19 07:03:07 UTC) #3
dfc
http://codereview.appspot.com/6530047/diff/5001/src/cmd/cc/gotypebody File src/cmd/cc/gotypebody (right): http://codereview.appspot.com/6530047/diff/5001/src/cmd/cc/gotypebody#newcode37 src/cmd/cc/gotypebody:37: "[]", PtrSize+2*4, PtrSize, GoSlice, No support for arrays ?
11 years, 7 months ago (2012-09-19 07:03:18 UTC) #4
iant
https://codereview.appspot.com/6530047/diff/5001/src/cmd/cc/gotypebody File src/cmd/cc/gotypebody (right): https://codereview.appspot.com/6530047/diff/5001/src/cmd/cc/gotypebody#newcode31 src/cmd/cc/gotypebody:31: } gotypes[] = { I don't see pointers in ...
11 years, 7 months ago (2012-09-19 14:45:36 UTC) #5
nigeltao
I can't view some of the files in codereview: https://codereview.appspot.com/6530047/diff/5001/src/cmd/5a/y.tab.c gives me "Can't parse the ...
11 years, 7 months ago (2012-09-20 00:38:37 UTC) #6
iant2
On Wed, Sep 19, 2012 at 5:38 PM, <nigeltao@golang.org> wrote: > I can't view some ...
11 years, 7 months ago (2012-09-20 00:50:37 UTC) #7
nigeltao
https://codereview.appspot.com/6530047/diff/5001/src/cmd/6a/lex.c File src/cmd/6a/lex.c (right): https://codereview.appspot.com/6530047/diff/5001/src/cmd/6a/lex.c#newcode174 src/cmd/6a/lex.c:174: #define CVT(x, y) ((x)<<8 | (y)) s/x, y/f, t/ ...
11 years, 7 months ago (2012-09-20 01:51:06 UTC) #8
r
The spec (to use a generous term) for this feature is vague. For an assembler ...
11 years, 7 months ago (2012-09-20 06:17:15 UTC) #9
rsc
On Thu, Sep 20, 2012 at 2:17 AM, <r@golang.org> wrote: > The spec (to use ...
11 years, 7 months ago (2012-09-20 19:30:30 UTC) #10
nigeltao
On 21 September 2012 05:30, Russ Cox <rsc@golang.org> wrote: >> Also I worry about where ...
11 years, 7 months ago (2012-09-20 23:31:31 UTC) #11
bradfitzgoog
On Thu, Sep 20, 2012 at 4:31 PM, Nigel Tao <nigeltao@golang.org> wrote: > On 21 ...
11 years, 7 months ago (2012-09-20 23:44:18 UTC) #12
rsc
Never mind, I will try something else.
11 years, 7 months ago (2012-09-21 04:13:30 UTC) #13
rsc
*** Abandoned ***
11 years, 7 months ago (2012-09-21 04:16:08 UTC) #14
rsc
11 years, 7 months ago (2012-09-21 04:39:04 UTC) #15
> Thinking out loud, could you write the func as a comment that a
> vet-like tool outside of 5a/6a/8a could check? You'd have to manually
> update the offsets (although the tool could be fix-like in updating
> them), but you have to do some manual work anyway since we have MOVL
> and MOVQ but not MOV.

The int change is not that hard and requires editing source files by
hand regardless of what we do here. I was trying to avoid assembly
changes for pure alignment changes (two are planned). Instead I have
written a tool to check the assembly against the Go declarations. When
it comes time to do the alignment changes I will make the program
apply the updates. I don't expect this to be a general tool we
advertise.

Russ
Sign in to reply to this message.

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