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

Side by Side Diff: src/runtime/sys_windows_386.s

Issue 168510043: [dev.cc] code review 168510043: runtime: convert assembly files for C to Go transition (Closed)
Patch Set: diff -r 022e3ed374e79747b98f073a69de1c7c6ca53efc https://code.google.com/p/go Created 10 years, 4 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:
View unified diff | Download patch
« no previous file with comments | « src/runtime/sys_solaris_amd64.s ('k') | src/runtime/sys_windows_amd64.s » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "go_asm.h"
6 #include "go_tls.h"
6 #include "textflag.h" 7 #include "textflag.h"
7 8
8 // void runtime·asmstdcall(void *c); 9 // void runtime·asmstdcall(void *c);
9 TEXT runtime·asmstdcall(SB),NOSPLIT,$0 10 TEXT runtime·asmstdcall(SB),NOSPLIT,$0
10 MOVL fn+0(FP), BX 11 MOVL fn+0(FP), BX
11 12
12 // SetLastError(0). 13 // SetLastError(0).
13 MOVL $0, 0x34(FS) 14 MOVL $0, 0x34(FS)
14 15
15 // Copy args to the stack. 16 // Copy args to the stack.
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 CALL runtime·unixnano(SB) 425 CALL runtime·unixnano(SB)
425 MOVL 0(SP), AX 426 MOVL 0(SP), AX
426 MOVL 4(SP), DX 427 MOVL 4(SP), DX
427 428
428 MOVL $1000000000, CX 429 MOVL $1000000000, CX
429 DIVL CX 430 DIVL CX
430 MOVL AX, sec+0(FP) 431 MOVL AX, sec+0(FP)
431 MOVL $0, sec+4(FP) 432 MOVL $0, sec+4(FP)
432 MOVL DX, nsec+8(FP) 433 MOVL DX, nsec+8(FP)
433 RET 434 RET
OLDNEW
« no previous file with comments | « src/runtime/sys_solaris_amd64.s ('k') | src/runtime/sys_windows_amd64.s » ('j') | no next file with comments »

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