OLD | NEW |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 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 /* | 5 /* |
6 * basic types | 6 * basic types |
7 */ | 7 */ |
8 typedef signed char int8; | 8 typedef signed char int8; |
9 typedef unsigned char uint8; | 9 typedef unsigned char uint8; |
10 typedef signed short int16; | 10 typedef signed short int16; |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 M* schedlink; | 241 M* schedlink; |
242 uint32 machport; // Return address for Mach IPC (OS X) | 242 uint32 machport; // Return address for Mach IPC (OS X) |
243 MCache *mcache; | 243 MCache *mcache; |
244 FixAlloc *stackalloc; | 244 FixAlloc *stackalloc; |
245 G* lockedg; | 245 G* lockedg; |
246 G* idleg; | 246 G* idleg; |
247 uint32 freglo[16]; // D[i] lsb and F[i] | 247 uint32 freglo[16]; // D[i] lsb and F[i] |
248 uint32 freghi[16]; // D[i] msb and F[i+16] | 248 uint32 freghi[16]; // D[i] msb and F[i+16] |
249 uint32 fflag; // floating point compare flags | 249 uint32 fflag; // floating point compare flags |
250 #ifdef __WINDOWS__ | 250 #ifdef __WINDOWS__ |
251 void* sehframe; | |
252 | |
253 #ifdef _64BIT··· | 251 #ifdef _64BIT··· |
254 void* gostack; | 252 void* gostack; |
255 #endif | 253 #endif |
256 | |
257 #endif | 254 #endif |
258 }; | 255 }; |
259 | 256 |
260 struct Stktop | 257 struct Stktop |
261 { | 258 { |
262 // The offsets of these fields are known to (hard-coded in) libmach. | 259 // The offsets of these fields are known to (hard-coded in) libmach. |
263 uint8* stackguard; | 260 uint8* stackguard; |
264 uint8* stackbase; | 261 uint8* stackbase; |
265 Gobuf gobuf; | 262 Gobuf gobuf; |
266 uint32 argsize; | 263 uint32 argsize; |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 Hmap* runtime·makemap_c(Type*, Type*, int64); | 623 Hmap* runtime·makemap_c(Type*, Type*, int64); |
627 | 624 |
628 Hchan* runtime·makechan_c(Type*, int64); | 625 Hchan* runtime·makechan_c(Type*, int64); |
629 void runtime·chansend(Hchan*, void*, bool*); | 626 void runtime·chansend(Hchan*, void*, bool*); |
630 void runtime·chanrecv(Hchan*, void*, bool*, bool*); | 627 void runtime·chanrecv(Hchan*, void*, bool*, bool*); |
631 int32 runtime·chanlen(Hchan*); | 628 int32 runtime·chanlen(Hchan*); |
632 int32 runtime·chancap(Hchan*); | 629 int32 runtime·chancap(Hchan*); |
633 | 630 |
634 void runtime·ifaceE2I(struct InterfaceType*, Eface, Iface*); | 631 void runtime·ifaceE2I(struct InterfaceType*, Eface, Iface*); |
635 | 632 |
OLD | NEW |