LEFT | RIGHT |
1 // Copyright 2014 The Go Authors. All rights reserved. | 1 // Copyright 2014 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 package runtime | 5 package runtime |
6 #include "runtime.h" | 6 #include "runtime.h" |
7 #include "arch_GOARCH.h" | 7 #include "arch_GOARCH.h" |
8 #include "malloc.h" | 8 #include "malloc.h" |
9 #include "stack.h" | 9 #include "stack.h" |
10 #include "../../cmd/ld/textflag.h" | 10 #include "../../cmd/ld/textflag.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 // For testing. | 66 // For testing. |
67 // TODO: find a better place for this. | 67 // TODO: find a better place for this. |
68 func GCMask(x Eface) (mask Slice) { | 68 func GCMask(x Eface) (mask Slice) { |
69 runtime·getgcmask(x.data, x.type, &mask.array, &mask.len); | 69 runtime·getgcmask(x.data, x.type, &mask.array, &mask.len); |
70 mask.cap = mask.len; | 70 mask.cap = mask.len; |
71 } | 71 } |
72 | 72 |
73 #pragma textflag NOSPLIT | 73 #pragma textflag NOSPLIT |
74 func reflect·typelinks() (ret Slice) { | 74 func reflect·typelinks() (ret Slice) { |
75 extern Type *typelink[], *etypelink[]; | 75 extern Type *runtime·typelink[], *runtime·etypelink[]; |
76 ret.array = (byte*)typelink; | 76 ret.array = (byte*)runtime·typelink; |
77 ret.len = etypelink - typelink; | 77 ret.len = runtime·etypelink - runtime·typelink; |
78 ret.cap = ret.len; | 78 ret.cap = ret.len; |
79 } | 79 } |
LEFT | RIGHT |