|
runtime: prepare for 64-bit ints
This CL makes the runtime understand that the type of
the len or cap of a map, slice, or string is 'int', not 'int32',
and it is also careful to distinguish between function arguments
and results of type 'int' vs type 'int32'.
In the runtime, the new typedefs 'intgo' and 'uintgo' refer
to Go int and uint. The C types int and uint continue to be
unavailable (cause intentional compile errors).
This CL does not change the meaning of int, but it should make
the eventual change of the meaning of int on amd64 a bit
smoother.
Update issue 2188.
Total comments: 2
Total comments: 28
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+161 lines, -112 lines) |
Patch |
 |
M |
src/cmd/dist/goc2c.c
|
View
|
1
2
|
6 chunks |
+40 lines, -16 lines |
0 comments
|
Download
|
 |
M |
src/pkg/reflect/value.go
|
View
|
1
2
3
4
5
|
4 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/alg.c
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/chan.c
|
View
|
1
2
3
4
5
|
8 chunks |
+22 lines, -16 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/cpuprof.c
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/hashmap.c
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/iface.c
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/malloc.h
|
View
|
1
2
3
4
5
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/malloc.goc
|
View
|
1
2
3
4
5
|
4 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/mfinal.c
|
View
|
1
2
3
4
5
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/mgc0.c
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/mprof.goc
|
View
|
1
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/print.c
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/proc.c
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/runtime.h
|
View
|
1
2
3
4
5
|
7 chunks |
+13 lines, -10 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/runtime.c
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/runtime1.goc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/slice.c
|
View
|
1
|
8 chunks |
+22 lines, -16 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/string.goc
|
View
|
1
2
3
4
5
|
13 chunks |
+17 lines, -17 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/symtab.c
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 10
|