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

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

Issue 139110043: code review 139110043: runtime: convert a few traceback-related functions from... (Closed)
Left Patch Set: diff -r 9227fb9e97fdaddfab9a43aa3894178c14284e6b https://code.google.com/p/go/ Created 10 years, 6 months ago
Right Patch Set: diff -r 0b83bb7bb7ec705538e89577c4f0da9ff37b4fbe https://code.google.com/p/go/ 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:
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/api/goapi.go ('k') | src/pkg/runtime/asm_amd64.s » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
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 runtime·rt0_go(SB),NOSPLIT,$0
10 // copy arguments forward on an even stack 10 // copy arguments forward on an even stack
11 MOVL argc+0(FP), AX 11 MOVL argc+0(FP), AX
12 MOVL argv+4(FP), BX 12 MOVL argv+4(FP), BX
13 SUBL $128, SP // plenty of scratch 13 SUBL $128, SP // plenty of scratch
14 ANDL $~15, SP 14 ANDL $~15, SP
15 MOVL AX, 120(SP) // save argc, argv away 15 MOVL AX, 120(SP) // save argc, argv away
16 MOVL BX, 124(SP) 16 MOVL BX, 124(SP)
17 17
18 // set default stack bounds. 18 // set default stack bounds.
19 // _cgo_init may update stackguard. 19 // _cgo_init may update stackguard.
(...skipping 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after
2288 MOVL g(CX), AX 2288 MOVL g(CX), AX
2289 MOVL g_m(AX), AX 2289 MOVL g_m(AX), AX
2290 MOVL m_fastrand(AX), DX 2290 MOVL m_fastrand(AX), DX
2291 ADDL DX, DX 2291 ADDL DX, DX
2292 MOVL DX, BX 2292 MOVL DX, BX
2293 XORL $0x88888eef, DX 2293 XORL $0x88888eef, DX
2294 CMOVLMI BX, DX 2294 CMOVLMI BX, DX
2295 MOVL DX, m_fastrand(AX) 2295 MOVL DX, m_fastrand(AX)
2296 MOVL DX, ret+0(FP) 2296 MOVL DX, ret+0(FP)
2297 RET 2297 RET
LEFTRIGHT

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