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 #include "zasm_GOOS_GOARCH.h" | 5 #include "zasm_GOOS_GOARCH.h" |
6 #include "funcdata.h" | 6 #include "funcdata.h" |
7 #include "../../cmd/ld/textflag.h" | 7 #include "../../cmd/ld/textflag.h" |
8 | 8 |
9 TEXT _rt0_go(SB),NOSPLIT,$0 | 9 TEXT _rt0_go(SB),NOSPLIT,$0 |
10 // copy arguments forward on an even stack | 10 // copy arguments forward on an even stack |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 MOVL x+4(FP), BX | 855 MOVL x+4(FP), BX |
856 MOVL BX, -4(AX) // set calling pc | 856 MOVL BX, -4(AX) // set calling pc |
857 RET | 857 RET |
858 | 858 |
859 TEXT runtime·getcallersp(SB), NOSPLIT, $0-4 | 859 TEXT runtime·getcallersp(SB), NOSPLIT, $0-4 |
860 MOVL sp+0(FP), AX | 860 MOVL sp+0(FP), AX |
861 RET | 861 RET |
862 | 862 |
863 // func gogetcallersp(p unsafe.Pointer) uintptr | 863 // func gogetcallersp(p unsafe.Pointer) uintptr |
864 TEXT runtime·gogetcallersp(SB),NOSPLIT,$0-8 | 864 TEXT runtime·gogetcallersp(SB),NOSPLIT,$0-8 |
865 » MOVL» sp+0(FP),AX» » // addr of first arg | 865 » MOVL» p+0(FP),AX» » // addr of first arg |
866 MOVL AX, ret+4(FP) | 866 MOVL AX, ret+4(FP) |
867 RET | 867 RET |
868 | 868 |
869 // int64 runtime·cputicks(void), so really | 869 // int64 runtime·cputicks(void), so really |
870 // void runtime·cputicks(int64 *ticks) | 870 // void runtime·cputicks(int64 *ticks) |
871 TEXT runtime·cputicks(SB),NOSPLIT,$0-4 | 871 TEXT runtime·cputicks(SB),NOSPLIT,$0-4 |
872 RDTSC | 872 RDTSC |
873 MOVL ret+0(FP), DI | 873 MOVL ret+0(FP), DI |
874 MOVL AX, 0(DI) | 874 MOVL AX, 0(DI) |
875 MOVL DX, 4(DI) | 875 MOVL DX, 4(DI) |
(...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2273 MOVL g(CX), AX | 2273 MOVL g(CX), AX |
2274 MOVL g_m(AX), AX | 2274 MOVL g_m(AX), AX |
2275 MOVL m_fastrand(AX), DX | 2275 MOVL m_fastrand(AX), DX |
2276 ADDL DX, DX | 2276 ADDL DX, DX |
2277 MOVL DX, BX | 2277 MOVL DX, BX |
2278 XORL $0x88888eef, DX | 2278 XORL $0x88888eef, DX |
2279 CMOVLMI BX, DX | 2279 CMOVLMI BX, DX |
2280 MOVL DX, m_fastrand(AX) | 2280 MOVL DX, m_fastrand(AX) |
2281 MOVL DX, ret+0(FP) | 2281 MOVL DX, ret+0(FP) |
2282 RET | 2282 RET |
LEFT | RIGHT |