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

Issue 7492043: cmd/cc: allow `quoted` identifiers in assembly input

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by rsc
Modified:
10 years, 4 months ago
Reviewers:
r, Hierro
Visibility:
Public.

Description

cmd/cc: allow `quoted` identifiers in assembly input $ cat x.go package main type T int func (t *T) Get() int func main() { t := new(T) *t = 42 println(t.Get()) } $ cat x.s TEXT `ยท(*T).Get`(SB), 7, $0 MOVQ p+0(FP), AX MOVQ 0(AX), AX MOVQ AX, ret+8(FP) RET $ go build -o a.out $ ./a.out 42 $

Patch Set 1 #

Patch Set 2 : diff -r 10d448aecfbf https://go.googlecode.com/hg/ #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -0 lines) Patch
M src/cmd/cc/lexbody View 1 2 chunks +18 lines, -0 lines 2 comments Download

Messages

Total messages: 6
Hierro
Is there any chance this could be merged? It would be very useful for increasing ...
10 years, 8 months ago (2013-08-09 16:47:49 UTC) #1
rsc
Not for Go 1.2. We're trying to finish things up, not take new things on. ...
10 years, 8 months ago (2013-08-09 18:14:55 UTC) #2
Hierro
On 2013/08/09 18:14:55, rsc wrote: > Not for Go 1.2. We're trying to finish things ...
10 years, 8 months ago (2013-08-09 18:28:23 UTC) #3
r
https://codereview.appspot.com/7492043/diff/5001/src/cmd/cc/lexbody File src/cmd/cc/lexbody (right): https://codereview.appspot.com/7492043/diff/5001/src/cmd/cc/lexbody#newcode393 src/cmd/cc/lexbody:393: if(cp - symb >= NSYMB) check for newline? other ...
10 years, 5 months ago (2013-10-31 21:03:17 UTC) #4
rsc
I did this as a demo for someone a while back - maybe mtj. I ...
10 years, 5 months ago (2013-10-31 22:41:31 UTC) #5
Hierro
10 years, 4 months ago (2013-12-02 22:17:34 UTC) #6
On 2013/10/31 22:41:31, rsc wrote:
> I did this as a demo for someone a while back - maybe mtj. I don't intend
> to submit it.

That's a pity, could you reconsider? This a very useful change for performance
sensitive code, since it removes a lot of overhead when writing methods in ASM.

Regards,
Alberto
Sign in to reply to this message.

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