Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
14e0df34
Commit
14e0df34
authored
Aug 11, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5g, 8g: dead code (already removed from 6g)
R=ken2 CC=golang-dev
https://golang.org/cl/1983041
parent
6610d79e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
23 deletions
+4
-23
src/cmd/5g/ggen.c
src/cmd/5g/ggen.c
+2
-11
src/cmd/8g/ggen.c
src/cmd/8g/ggen.c
+2
-12
No files found.
src/cmd/5g/ggen.c
View file @
14e0df34
...
@@ -733,7 +733,7 @@ getargs(NodeList *nn, Node *reg, int n)
...
@@ -733,7 +733,7 @@ getargs(NodeList *nn, Node *reg, int n)
void
void
cmpandthrow
(
Node
*
nl
,
Node
*
nr
)
cmpandthrow
(
Node
*
nl
,
Node
*
nr
)
{
{
vlong
cl
,
cr
;
vlong
cl
;
Prog
*
p1
;
Prog
*
p1
;
int
op
;
int
op
;
Node
*
c
,
n1
,
n2
;
Node
*
c
,
n1
,
n2
;
...
@@ -743,17 +743,8 @@ cmpandthrow(Node *nl, Node *nr)
...
@@ -743,17 +743,8 @@ cmpandthrow(Node *nl, Node *nr)
cl
=
mpgetfix
(
nl
->
val
.
u
.
xval
);
cl
=
mpgetfix
(
nl
->
val
.
u
.
xval
);
if
(
cl
==
0
)
if
(
cl
==
0
)
return
;
return
;
if
(
smallintconst
(
nr
))
{
if
(
smallintconst
(
nr
))
cr
=
mpgetfix
(
nr
->
val
.
u
.
xval
);
if
(
cl
>
cr
)
{
if
(
throwpc
==
nil
)
{
throwpc
=
pc
;
ginscall
(
panicslice
,
0
);
}
else
patch
(
gbranch
(
AB
,
T
),
throwpc
);
}
return
;
return
;
}
// put the constant on the right
// put the constant on the right
op
=
brrev
(
op
);
op
=
brrev
(
op
);
...
...
src/cmd/8g/ggen.c
View file @
14e0df34
...
@@ -854,7 +854,7 @@ getargs(NodeList *nn, Node *reg, int n)
...
@@ -854,7 +854,7 @@ getargs(NodeList *nn, Node *reg, int n)
void
void
cmpandthrow
(
Node
*
nl
,
Node
*
nr
)
cmpandthrow
(
Node
*
nl
,
Node
*
nr
)
{
{
vlong
cl
,
cr
;
vlong
cl
;
Prog
*
p1
;
Prog
*
p1
;
int
op
;
int
op
;
Node
*
c
;
Node
*
c
;
...
@@ -864,18 +864,8 @@ cmpandthrow(Node *nl, Node *nr)
...
@@ -864,18 +864,8 @@ cmpandthrow(Node *nl, Node *nr)
cl
=
mpgetfix
(
nl
->
val
.
u
.
xval
);
cl
=
mpgetfix
(
nl
->
val
.
u
.
xval
);
if
(
cl
==
0
)
if
(
cl
==
0
)
return
;
return
;
if
(
smallintconst
(
nr
))
{
if
(
smallintconst
(
nr
))
cr
=
mpgetfix
(
nr
->
val
.
u
.
xval
);
if
(
cl
>
cr
)
{
if
(
throwpc
==
nil
)
{
throwpc
=
pc
;
ginscall
(
panicslice
,
0
);
}
else
patch
(
gbranch
(
AJMP
,
T
),
throwpc
);
}
return
;
return
;
}
// put the constant on the right
// put the constant on the right
op
=
brrev
(
op
);
op
=
brrev
(
op
);
c
=
nl
;
c
=
nl
;
...
...
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