Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
028f74f8
Commit
028f74f8
authored
Jun 20, 2011
by
Anthony Martin
Committed by
Russ Cox
Jun 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5g, 6g, 8g: fix comments in method call generation
R=golang-dev CC=golang-dev
https://golang.org/cl/4652042
parent
12b22698
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
ggen.c
src/cmd/5g/ggen.c
+3
-3
ggen.c
src/cmd/6g/ggen.c
+3
-3
ggen.c
src/cmd/8g/ggen.c
+3
-3
No files found.
src/cmd/5g/ggen.c
View file @
028f74f8
...
...
@@ -173,13 +173,13 @@ cgen_callinter(Node *n, Node *res, int proc)
nodindreg
(
&
nodsp
,
types
[
tptr
],
REGSP
);
nodsp
.
xoffset
=
4
;
nodo
.
xoffset
+=
widthptr
;
cgen
(
&
nodo
,
&
nodsp
);
// 4(SP) =
8(REG) -- i.s
cgen
(
&
nodo
,
&
nodsp
);
// 4(SP) =
4(REG) -- i.data
nodo
.
xoffset
-=
widthptr
;
cgen
(
&
nodo
,
&
nodr
);
// REG = 0(REG) -- i.
m
cgen
(
&
nodo
,
&
nodr
);
// REG = 0(REG) -- i.
tab
nodo
.
xoffset
=
n
->
left
->
xoffset
+
3
*
widthptr
+
8
;
cgen
(
&
nodo
,
&
nodr
);
// REG =
32+offset(REG) -- i.m
->fun[f]
cgen
(
&
nodo
,
&
nodr
);
// REG =
20+offset(REG) -- i.tab
->fun[f]
// BOTCH nodr.type = fntype;
nodr
.
type
=
n
->
left
->
type
;
...
...
src/cmd/6g/ggen.c
View file @
028f74f8
...
...
@@ -128,13 +128,13 @@ cgen_callinter(Node *n, Node *res, int proc)
nodindreg
(
&
nodsp
,
types
[
tptr
],
D_SP
);
nodo
.
xoffset
+=
widthptr
;
cgen
(
&
nodo
,
&
nodsp
);
// 0(SP) = 8(REG) -- i.
s
cgen
(
&
nodo
,
&
nodsp
);
// 0(SP) = 8(REG) -- i.
data
nodo
.
xoffset
-=
widthptr
;
cgen
(
&
nodo
,
&
nodr
);
// REG = 0(REG) -- i.
m
cgen
(
&
nodo
,
&
nodr
);
// REG = 0(REG) -- i.
tab
nodo
.
xoffset
=
n
->
left
->
xoffset
+
3
*
widthptr
+
8
;
cgen
(
&
nodo
,
&
nodr
);
// REG = 32+offset(REG) -- i.
m
->fun[f]
cgen
(
&
nodo
,
&
nodr
);
// REG = 32+offset(REG) -- i.
tab
->fun[f]
// BOTCH nodr.type = fntype;
nodr
.
type
=
n
->
left
->
type
;
...
...
src/cmd/8g/ggen.c
View file @
028f74f8
...
...
@@ -167,15 +167,15 @@ cgen_callinter(Node *n, Node *res, int proc)
nodindreg
(
&
nodsp
,
types
[
tptr
],
D_SP
);
nodo
.
xoffset
+=
widthptr
;
cgen
(
&
nodo
,
&
nodsp
);
// 0(SP) =
8(REG) -- i.s
cgen
(
&
nodo
,
&
nodsp
);
// 0(SP) =
4(REG) -- i.data
nodo
.
xoffset
-=
widthptr
;
cgen
(
&
nodo
,
&
nodr
);
// REG = 0(REG) -- i.
m
cgen
(
&
nodo
,
&
nodr
);
// REG = 0(REG) -- i.
tab
if
(
n
->
left
->
xoffset
==
BADWIDTH
)
fatal
(
"cgen_callinter: badwidth"
);
nodo
.
xoffset
=
n
->
left
->
xoffset
+
3
*
widthptr
+
8
;
cgen
(
&
nodo
,
&
nodr
);
// REG =
32+offset(REG) -- i.m
->fun[f]
cgen
(
&
nodo
,
&
nodr
);
// REG =
20+offset(REG) -- i.tab
->fun[f]
// BOTCH nodr.type = fntype;
nodr
.
type
=
n
->
left
->
type
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment