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

Issue 11683043: code review 11683043: cc: generate argument pointer maps for C functions. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by khr
Modified:
11 years, 8 months ago
Reviewers:
binet, dave, DMorsing, rsc, khr1
CC:
golang-dev, rsc
Visibility:
Public.

Description

cc: generate argument pointer maps for C functions.

Patch Set 1 #

Patch Set 2 : diff -r 2eaab1510c3f https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 3 : diff -r f454ddfc8968 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 4 : diff -r 6782fb307e4e https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 5 : diff -r 6782fb307e4e https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 6 : diff -r 6782fb307e4e https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 7 : diff -r f6a20261d881 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 8 : diff -r f6a20261d881 https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 3

Patch Set 9 : diff -r acc121ea2d70 https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -14 lines) Patch
M src/cmd/cc/pgen.c View 1 2 3 4 5 6 7 8 5 chunks +121 lines, -14 lines 1 comment Download

Messages

Total messages: 12
khr
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://khr%40golang.org@code.google.com/p/go/
11 years, 8 months ago (2013-07-23 22:13:36 UTC) #1
rsc
LGTM https://codereview.appspot.com/11683043/diff/17001/src/cmd/cc/pgen.c File src/cmd/cc/pgen.c (right): https://codereview.appspot.com/11683043/diff/17001/src/cmd/cc/pgen.c#newcode645 src/cmd/cc/pgen.c:645: static int32 pointermap_type(Type *t, int32 offset, int32 baseidx) ...
11 years, 8 months ago (2013-07-24 04:45:59 UTC) #2
rsc
FWIW, I would have just allocated the bitmap instead of the multipass. The bitmap is ...
11 years, 8 months ago (2013-07-24 04:47:25 UTC) #3
khr
*** Submitted as https://code.google.com/p/go/source/detail?r=bb75d03e6ccb *** cc: generate argument pointer maps for C functions. R=golang-dev, rsc ...
11 years, 8 months ago (2013-07-24 16:41:11 UTC) #4
dave_cheney.net
On 2013/07/24 16:41:11, khr wrote: > *** Submitted as https://code.google.com/p/go/source/detail?r=bb75d03e6ccb *** > > cc: generate ...
11 years, 8 months ago (2013-07-24 21:53:08 UTC) #5
khr1
Sure, sorry. On Wed, Jul 24, 2013 at 2:53 PM, <dave@cheney.net> wrote: > On 2013/07/24 ...
11 years, 8 months ago (2013-07-24 21:54:02 UTC) #6
dave_cheney.net
Thanks Keith. On Thu, Jul 25, 2013 at 7:54 AM, Keith Randall <khr@google.com> wrote: > ...
11 years, 8 months ago (2013-07-24 21:56:56 UTC) #7
binet
just a small typo https://codereview.appspot.com/11683043/diff/23001/src/cmd/cc/pgen.c File src/cmd/cc/pgen.c (right): https://codereview.appspot.com/11683043/diff/23001/src/cmd/cc/pgen.c#newcode642 src/cmd/cc/pgen.c:642: // Makes a bitmap marking ...
11 years, 8 months ago (2013-07-25 09:25:34 UTC) #8
rsc
Aha, I knew there was a reason I put the FUNCDATA at the bottom of ...
11 years, 8 months ago (2013-07-25 13:40:22 UTC) #9
khr1
At the bottom it often gets lost somehow. I'm not sure why, maybe without control ...
11 years, 8 months ago (2013-07-25 19:28:35 UTC) #10
rsc
Tricky. I agree that it _should_ be at the top, fwiw. Russ
11 years, 8 months ago (2013-07-25 20:07:20 UTC) #11
DMorsing
11 years, 8 months ago (2013-07-25 22:09:15 UTC) #12
On Thu, Jul 25, 2013 at 9:28 PM, Keith Randall <khr@google.com> wrote:
> At the bottom it often gets lost somehow.  I'm not sure why, maybe without
> control flow to it is gets elided?  I'll investigate some more...
>

Could very well be. The register optimizer doesn't know about metadata
instructions and will remove dead branches. Only reason it worked
previously was because we inserted metadata instructions at the entry
point.

Some things got were missed when the new symbol table instructions
were added. We skip the TYPE instruction in the peephole optimizer and
regopt, but not FUNCDATA and PCDATA.
Sign in to reply to this message.

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