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

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

Issue 170720043: code review 170720043: runtime: change top-most return PC from goexit to goexi... (Closed)
Left Patch Set: Created 9 years, 5 months ago
Right Patch Set: diff -r eed6d37ef785018594553b16ca5c2ef81d89a7ee https://code.google.com/p/go/ Created 9 years, 5 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 | « no previous file | src/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 "textflag.h" 7 #include "textflag.h"
8 8
9 TEXT runtime·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
(...skipping 2266 matching lines...) Expand 10 before | Expand all | Expand 10 after
2277 2277
2278 // Called from cgo wrappers, this function returns g->m->curg.stack.hi. 2278 // Called from cgo wrappers, this function returns g->m->curg.stack.hi.
2279 // Must obey the gcc calling convention. 2279 // Must obey the gcc calling convention.
2280 TEXT _cgo_topofstack(SB),NOSPLIT,$0 2280 TEXT _cgo_topofstack(SB),NOSPLIT,$0
2281 get_tls(CX) 2281 get_tls(CX)
2282 MOVL g(CX), AX 2282 MOVL g(CX), AX
2283 MOVL g_m(AX), AX 2283 MOVL g_m(AX), AX
2284 MOVL m_curg(AX), AX 2284 MOVL m_curg(AX), AX
2285 MOVL (g_stack+stack_hi)(AX), AX 2285 MOVL (g_stack+stack_hi)(AX), AX
2286 RET 2286 RET
2287
2288 // The top-most function running on a goroutine
2289 // returns to goexit+PCQuantum.
2290 TEXT runtime·goexit(SB),NOSPLIT,$0-0
2291 BYTE $0x90 // NOP
2292 CALL runtime·goexit1(SB) // does not return
LEFTRIGHT

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