Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2142)

Delta Between Two Patch Sets: src/pkg/runtime/asm_386.s

Issue 129510043: code review 129510043: runtime: convert Stack to Go. (Closed)
Left Patch Set: diff -r d06e79685295c5e0da29106e139cfaafb3318258 https://go.googlecode.com/hg/ Created 10 years, 6 months ago
Right Patch Set: diff -r 1fadcb6ee46b84c1977d40ceecf14d0ffe100f80 https://go.googlecode.com/hg/ Created 10 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | src/pkg/runtime/asm_amd64.s » ('j') | src/pkg/runtime/mprof.goc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
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
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
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b