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
e5ba266e
Commit
e5ba266e
authored
Mar 31, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete dregs: inarggen, genpanic, regret
R=ken OCL=26916 CL=26918
parent
8971cf23
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
47 deletions
+0
-47
cgen.c
src/cmd/6g/cgen.c
+0
-10
gen.c
src/cmd/6g/gen.c
+0
-26
gg.h
src/cmd/6g/gg.h
+0
-3
gsubr.c
src/cmd/6g/gsubr.c
+0
-8
No files found.
src/cmd/6g/cgen.c
View file @
e5ba266e
...
...
@@ -574,16 +574,6 @@ ret:
;
}
vlong
fieldoffset
(
Type
*
t
,
Node
*
n
)
{
if
(
t
->
etype
!=
TSTRUCT
)
fatal
(
"fieldoffset: not struct %lT"
,
t
);
if
(
n
->
op
!=
ONAME
)
fatal
(
"fieldoffset: not field name %N"
,
n
);
return
0
;
}
/*
* generate:
* newreg = &n;
...
...
src/cmd/6g/gen.c
View file @
e5ba266e
...
...
@@ -79,8 +79,6 @@ compile(Node *fn)
ptxt
=
gins
(
ATEXT
,
curfn
->
nname
,
&
nod1
);
afunclit
(
&
ptxt
->
from
);
// inarggen();
ginit
();
gen
(
curfn
->
enter
);
gen
(
curfn
->
nbody
);
...
...
@@ -190,10 +188,6 @@ loop:
n
=
n
->
right
;
goto
loop
;
case
OPANIC
:
genpanic
();
break
;
case
OCASE
:
case
OFALL
:
case
OXCASE
:
...
...
@@ -375,26 +369,6 @@ ret:
lineno
=
lno
;
}
void
inarggen
(
void
)
{
fatal
(
"inarggen"
);
}
void
genpanic
(
void
)
{
Node
n1
,
n2
;
Prog
*
p
;
nodconst
(
&
n1
,
types
[
TINT64
],
0xf0
);
nodreg
(
&
n2
,
types
[
TINT64
],
D_AX
);
gins
(
AMOVL
,
&
n1
,
&
n2
);
p
=
pc
;
gins
(
AMOVQ
,
&
n2
,
N
);
p
->
to
.
type
=
D_INDIR
+
D_AX
;
}
/*
* compute total size of f's in/out arguments.
*/
...
...
src/cmd/6g/gg.h
View file @
e5ba266e
...
...
@@ -119,7 +119,6 @@ void compile(Node*);
void
proglist
(
void
);
void
gen
(
Node
*
);
Node
*
lookdot
(
Node
*
,
Node
*
,
int
);
void
inarggen
(
void
);
void
cgen_as
(
Node
*
,
Node
*
);
void
cgen_asop
(
Node
*
);
void
cgen_ret
(
Node
*
);
...
...
@@ -132,7 +131,6 @@ void cgen_div(int, Node*, Node*, Node*);
void
cgen_bmul
(
int
,
Node
*
,
Node
*
,
Node
*
);
void
cgen_shift
(
int
,
Node
*
,
Node
*
,
Node
*
);
void
cgen_dcl
(
Node
*
);
void
genpanic
(
void
);
int
needconvert
(
Type
*
,
Type
*
);
void
genconv
(
Type
*
,
Type
*
);
void
allocparams
(
void
);
...
...
@@ -178,7 +176,6 @@ void ginit(void);
void
gclean
(
void
);
void
regalloc
(
Node
*
,
Type
*
,
Node
*
);
void
regfree
(
Node
*
);
void
regret
(
Node
*
,
Type
*
);
Node
*
nodarg
(
Type
*
,
int
);
void
nodreg
(
Node
*
,
Type
*
,
int
);
void
nodindreg
(
Node
*
,
Type
*
,
int
);
...
...
src/cmd/6g/gsubr.c
View file @
e5ba266e
...
...
@@ -239,14 +239,6 @@ regfree(Node *n)
reg
[
i
]
--
;
}
void
regret
(
Node
*
n
,
Type
*
t
)
{
if
(
t
==
T
)
fatal
(
"regret: t nil"
);
fatal
(
"regret"
);
}
/*
* initialize n to be register r of type t.
*/
...
...
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