LEFT | RIGHT |
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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 String name; | 405 String name; |
406 String type; // go type string | 406 String type; // go type string |
407 String src; // src file name | 407 String src; // src file name |
408 Slice pcln; // pc/ln tab for this func | 408 Slice pcln; // pc/ln tab for this func |
409 uintptr entry; // entry pc | 409 uintptr entry; // entry pc |
410 uintptr pc0; // starting pc, ln for table | 410 uintptr pc0; // starting pc, ln for table |
411 int32 ln0; | 411 int32 ln0; |
412 int32 frame; // stack frame size | 412 int32 frame; // stack frame size |
413 int32 args; // in/out args size | 413 int32 args; // in/out args size |
414 int32 locals; // locals size | 414 int32 locals; // locals size |
415 » Slice» ptrs;» // stack map | 415 » Slice» ptrs;» // pointer map |
416 }; | 416 }; |
417 | 417 |
418 // layout of Itab known to compilers | 418 // layout of Itab known to compilers |
419 struct Itab | 419 struct Itab |
420 { | 420 { |
421 InterfaceType* inter; | 421 InterfaceType* inter; |
422 Type* type; | 422 Type* type; |
423 Itab* link; | 423 Itab* link; |
424 int32 bad; | 424 int32 bad; |
425 int32 unused; | 425 int32 unused; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 /* | 651 /* |
652 * external data | 652 * external data |
653 */ | 653 */ |
654 extern String runtime·emptystring; | 654 extern String runtime·emptystring; |
655 extern uintptr runtime·zerobase; | 655 extern uintptr runtime·zerobase; |
656 extern G* runtime·allg; | 656 extern G* runtime·allg; |
657 extern G* runtime·lastg; | 657 extern G* runtime·lastg; |
658 extern M* runtime·allm; | 658 extern M* runtime·allm; |
659 extern P** runtime·allp; | 659 extern P** runtime·allp; |
660 extern int32 runtime·gomaxprocs; | 660 extern int32 runtime·gomaxprocs; |
| 661 extern uint32 runtime·needextram; |
661 extern bool runtime·singleproc; | 662 extern bool runtime·singleproc; |
662 extern uint32 runtime·panicking; | 663 extern uint32 runtime·panicking; |
663 extern uint32 runtime·gcwaiting; // gc is waiting to run | 664 extern uint32 runtime·gcwaiting; // gc is waiting to run |
664 extern int8* runtime·goos; | 665 extern int8* runtime·goos; |
665 extern int32 runtime·ncpu; | 666 extern int32 runtime·ncpu; |
666 extern bool runtime·iscgo; | 667 extern bool runtime·iscgo; |
667 extern void (*runtime·sysargs)(int32, uint8**); | 668 extern void (*runtime·sysargs)(int32, uint8**); |
668 extern uint32 runtime·maxstring; | 669 extern uint32 runtime·maxstring; |
669 extern uint32 runtime·Hchansize; | 670 extern uint32 runtime·Hchansize; |
670 extern uint32 runtime·cpuid_ecx; | 671 extern uint32 runtime·cpuid_ecx; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 byte* runtime·getenv(int8*); | 743 byte* runtime·getenv(int8*); |
743 int32 runtime·atoi(byte*); | 744 int32 runtime·atoi(byte*); |
744 void runtime·newosproc(M *mp, void *stk); | 745 void runtime·newosproc(M *mp, void *stk); |
745 void runtime·mstart(void); | 746 void runtime·mstart(void); |
746 G* runtime·malg(int32); | 747 G* runtime·malg(int32); |
747 void runtime·asminit(void); | 748 void runtime·asminit(void); |
748 void runtime·mpreinit(M*); | 749 void runtime·mpreinit(M*); |
749 void runtime·minit(void); | 750 void runtime·minit(void); |
750 void runtime·unminit(void); | 751 void runtime·unminit(void); |
751 void runtime·signalstack(byte*, int32); | 752 void runtime·signalstack(byte*, int32); |
| 753 void runtime·symtabinit(void); |
752 Func* runtime·findfunc(uintptr); | 754 Func* runtime·findfunc(uintptr); |
753 int32 runtime·funcline(Func*, uintptr); | 755 int32 runtime·funcline(Func*, uintptr); |
754 void* runtime·stackalloc(uint32); | 756 void* runtime·stackalloc(uint32); |
755 void runtime·stackfree(void*, uintptr); | 757 void runtime·stackfree(void*, uintptr); |
756 MCache* runtime·allocmcache(void); | 758 MCache* runtime·allocmcache(void); |
757 void runtime·freemcache(MCache*); | 759 void runtime·freemcache(MCache*); |
758 void runtime·mallocinit(void); | 760 void runtime·mallocinit(void); |
759 void runtime·mprofinit(void); | 761 void runtime·mprofinit(void); |
760 bool runtime·ifaceeq_c(Iface, Iface); | 762 bool runtime·ifaceeq_c(Iface, Iface); |
761 bool runtime·efaceeq_c(Eface, Eface); | 763 bool runtime·efaceeq_c(Eface, Eface); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 void runtime·setcpuprofilerate(void(*)(uintptr*, int32), int32); | 799 void runtime·setcpuprofilerate(void(*)(uintptr*, int32), int32); |
798 void runtime·usleep(uint32); | 800 void runtime·usleep(uint32); |
799 int64 runtime·cputicks(void); | 801 int64 runtime·cputicks(void); |
800 int64 runtime·tickspersecond(void); | 802 int64 runtime·tickspersecond(void); |
801 void runtime·blockevent(int64, int32); | 803 void runtime·blockevent(int64, int32); |
802 extern int64 runtime·blockprofilerate; | 804 extern int64 runtime·blockprofilerate; |
803 void runtime·addtimer(Timer*); | 805 void runtime·addtimer(Timer*); |
804 bool runtime·deltimer(Timer*); | 806 bool runtime·deltimer(Timer*); |
805 G* runtime·netpoll(bool); | 807 G* runtime·netpoll(bool); |
806 void runtime·netpollinit(void); | 808 void runtime·netpollinit(void); |
807 int32» runtime·netpollopen(int32, PollDesc*); | 809 int32» runtime·netpollopen(uintptr, PollDesc*); |
808 int32 runtime·netpollclose(int32); | 810 int32 runtime·netpollclose(uintptr); |
809 void runtime·netpollready(G**, PollDesc*, int32); | 811 void runtime·netpollready(G**, PollDesc*, int32); |
810 void runtime·crash(void); | 812 void runtime·crash(void); |
811 | 813 |
812 #pragma varargck argpos runtime·printf 1 | 814 #pragma varargck argpos runtime·printf 1 |
813 #pragma varargck type "a" Slice | |
814 #pragma varargck type "c" int32 | 815 #pragma varargck type "c" int32 |
815 #pragma varargck type "d" int32 | 816 #pragma varargck type "d" int32 |
816 #pragma varargck type "d" uint32 | 817 #pragma varargck type "d" uint32 |
817 #pragma varargck type "D" int64 | 818 #pragma varargck type "D" int64 |
818 #pragma varargck type "D" uint64 | 819 #pragma varargck type "D" uint64 |
819 #pragma varargck type "x" int32 | 820 #pragma varargck type "x" int32 |
820 #pragma varargck type "x" uint32 | 821 #pragma varargck type "x" uint32 |
821 #pragma varargck type "X" int64 | 822 #pragma varargck type "X" int64 |
822 #pragma varargck type "X" uint64 | 823 #pragma varargck type "X" uint64 |
823 #pragma varargck type "p" void* | 824 #pragma varargck type "p" void* |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1005 extern float64 runtime·neginf; | 1006 extern float64 runtime·neginf; |
1006 extern uint64 ·nan; | 1007 extern uint64 ·nan; |
1007 extern uint64 ·posinf; | 1008 extern uint64 ·posinf; |
1008 extern uint64 ·neginf; | 1009 extern uint64 ·neginf; |
1009 #define ISNAN(f) ((f) != (f)) | 1010 #define ISNAN(f) ((f) != (f)) |
1010 | 1011 |
1011 enum | 1012 enum |
1012 { | 1013 { |
1013 UseSpanType = 1, | 1014 UseSpanType = 1, |
1014 }; | 1015 }; |
LEFT | RIGHT |