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
c7513eac
Commit
c7513eac
authored
Jul 07, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: use new reflect data structures (CL 31107)
in place of sigi, sigt. R=ken OCL=31118 CL=31277
parent
ce2e450c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
247 additions
and
531 deletions
+247
-531
src/cmd/gc/sys.go
src/cmd/gc/sys.go
+11
-11
src/pkg/runtime/Makefile
src/pkg/runtime/Makefile
+1
-0
src/pkg/runtime/iface.c
src/pkg/runtime/iface.c
+229
-514
src/pkg/runtime/print.c
src/pkg/runtime/print.c
+2
-2
src/pkg/runtime/runtime.h
src/pkg/runtime/runtime.h
+4
-4
No files found.
src/cmd/gc/sys.go
View file @
c7513eac
...
...
@@ -36,17 +36,17 @@ func stringiter(string, int) int;
func
stringiter2
(
string
,
int
)
(
retk
int
,
retv
int
);
func
ifaceI2E
(
iface
any
)
(
ret
any
);
func
ifaceE2I
(
sigi
*
byte
,
iface
any
)
(
ret
any
);
func
ifaceT2E
(
sigt
*
byte
,
elem
any
)
(
ret
any
);
func
ifaceE2T
(
sigt
*
byte
,
elem
any
)
(
ret
any
);
func
ifaceE2I2
(
sigi
*
byte
,
iface
any
)
(
ret
any
,
ok
bool
);
func
ifaceE2T2
(
sigt
*
byte
,
elem
any
)
(
ret
any
,
ok
bool
);
func
ifaceT2I
(
sigi
*
byte
,
sigt
*
byte
,
elem
any
)
(
ret
any
);
func
ifaceI2T
(
sigt
*
byte
,
iface
any
)
(
ret
any
);
func
ifaceI2T2
(
sigt
*
byte
,
iface
any
)
(
ret
any
,
ok
bool
);
func
ifaceI2I
(
sigi
*
byte
,
iface
any
)
(
ret
any
);
func
ifaceI2Ix
(
sigi
*
byte
,
iface
any
)
(
ret
any
);
func
ifaceI2I2
(
sigi
*
byte
,
iface
any
)
(
ret
any
,
ok
bool
);
func
ifaceE2I
(
typ
*
byte
,
iface
any
)
(
ret
any
);
func
ifaceT2E
(
typ
*
byte
,
elem
any
)
(
ret
any
);
func
ifaceE2T
(
typ
*
byte
,
elem
any
)
(
ret
any
);
func
ifaceE2I2
(
typ
*
byte
,
iface
any
)
(
ret
any
,
ok
bool
);
func
ifaceE2T2
(
typ
*
byte
,
elem
any
)
(
ret
any
,
ok
bool
);
func
ifaceT2I
(
typ1
*
byte
,
typ2
*
byte
,
elem
any
)
(
ret
any
);
func
ifaceI2T
(
typ
*
byte
,
iface
any
)
(
ret
any
);
func
ifaceI2T2
(
typ
*
byte
,
iface
any
)
(
ret
any
,
ok
bool
);
func
ifaceI2I
(
typ
*
byte
,
iface
any
)
(
ret
any
);
func
ifaceI2Ix
(
typ
*
byte
,
iface
any
)
(
ret
any
);
func
ifaceI2I2
(
typ
*
byte
,
iface
any
)
(
ret
any
,
ok
bool
);
func
ifaceeq
(
i1
any
,
i2
any
)
(
ret
bool
);
func
efaceeq
(
i1
any
,
i2
any
)
(
ret
bool
);
func
ifacethash
(
i1
any
)
(
ret
uint32
);
...
...
src/pkg/runtime/Makefile
View file @
c7513eac
...
...
@@ -70,6 +70,7 @@ OFILES=\
sys.
$O
\
thread.
$O
\
traceback.
$O
\
type.
$O
\
$
(
OFILES_
$(GOARCH)
)
\
HFILES
=
\
...
...
src/pkg/runtime/iface.c
View file @
c7513eac
This diff is collapsed.
Click to expand it.
src/pkg/runtime/print.c
View file @
c7513eac
...
...
@@ -76,10 +76,10 @@ printf(int8 *s, ...)
sys
·
printint
(
*
(
int64
*
)
arg
);
break
;
case
'x'
:
sys
·
printhex
(
*
(
int32
*
)
arg
);
sys
·
printhex
(
*
(
u
int32
*
)
arg
);
break
;
case
'X'
:
sys
·
printhex
(
*
(
int64
*
)
arg
);
sys
·
printhex
(
*
(
u
int64
*
)
arg
);
break
;
case
'p'
:
sys
·
printpointer
(
*
(
void
**
)
arg
);
...
...
src/pkg/runtime/runtime.h
View file @
c7513eac
...
...
@@ -56,9 +56,9 @@ typedef struct Usema Usema;
typedef
struct
SigTab
SigTab
;
typedef
struct
MCache
MCache
;
typedef
struct
Iface
Iface
;
typedef
struct
It
ype
Itype
;
typedef
struct
It
ab
Itab
;
typedef
struct
Eface
Eface
;
typedef
struct
Sigt
Sigt
;
typedef
struct
Type
Type
;
typedef
struct
Defer
Defer
;
/*
...
...
@@ -117,12 +117,12 @@ struct String
};
struct
Iface
{
It
ype
*
type
;
It
ab
*
tab
;
void
*
data
;
};
struct
Eface
{
Sigt
*
type
;
Type
*
type
;
void
*
data
;
};
...
...
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