LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2012 The Go Authors. All rights reserved. | 1 // Copyright 2012 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // PtrSize vs sizeof(void*): This file is also included from src/cmd/ld/... | 5 // PtrSize vs sizeof(void*): This file is also included from src/cmd/ld/... |
6 // which defines PtrSize to be different from sizeof(void*) when crosscompiling. | 6 // which defines PtrSize to be different from sizeof(void*) when crosscompiling. |
7 | 7 |
8 enum { | 8 enum { |
9 KindBool = 1, | 9 KindBool = 1, |
10 KindInt, | 10 KindInt, |
(...skipping 17 matching lines...) Expand all Loading... |
28 KindInterface, | 28 KindInterface, |
29 KindMap, | 29 KindMap, |
30 KindPtr, | 30 KindPtr, |
31 KindSlice, | 31 KindSlice, |
32 KindString, | 32 KindString, |
33 KindStruct, | 33 KindStruct, |
34 KindUnsafePointer, | 34 KindUnsafePointer, |
35 | 35 |
36 KindNoPointers = 1<<7, | 36 KindNoPointers = 1<<7, |
37 | 37 |
38 » // size of Type interface header + CommonType structure. | 38 » // size of Type structure. |
39 » CommonSize = 2*PtrSize + 6*PtrSize + 8, | 39 » CommonSize = 6*PtrSize + 8, |
40 }; | 40 }; |
41 | 41 |
LEFT | RIGHT |