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

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

Issue 7543043: code review 7543043: runtime: faster & safer hash function (Closed)
Left Patch Set: diff -r 479ac38abfc9 https://code.google.com/p/go/ Created 12 years, 1 month ago
Right Patch Set: diff -r a45e271add6c https://code.google.com/p/go/ Created 12 years 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/pkg/runtime/sys_netbsd_386.s ('k') | src/pkg/runtime/sys_openbsd_386.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 // System calls and other sys.stuff for AMD64, NetBSD 5 // System calls and other sys.stuff for AMD64, NetBSD
6 // /usr/src/sys/kern/syscalls.master for syscall numbers. 6 // /usr/src/sys/kern/syscalls.master for syscall numbers.
7 // 7 //
8 8
9 #include "zasm_GOOS_GOARCH.h" 9 #include "zasm_GOOS_GOARCH.h"
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 MOVL 8(SP), DI // arg 1 - exit status 70 MOVL 8(SP), DI // arg 1 - exit status
71 MOVL $1, AX // sys_exit 71 MOVL $1, AX // sys_exit
72 SYSCALL 72 SYSCALL
73 MOVL $0xf1, 0xf1 // crash 73 MOVL $0xf1, 0xf1 // crash
74 RET 74 RET
75 75
76 TEXT runtime·exit1(SB),7,$-8 76 TEXT runtime·exit1(SB),7,$-8
77 MOVL $310, AX // sys__lwp_exit 77 MOVL $310, AX // sys__lwp_exit
78 SYSCALL 78 SYSCALL
79 MOVL $0xf1, 0xf1 // crash 79 MOVL $0xf1, 0xf1 // crash
80 RET
81
82 TEXT runtime·open(SB),7,$-8
83 MOVQ 8(SP), DI // arg 1 pathname
84 MOVL 16(SP), SI // arg 2 flags
85 MOVL 20(SP), DX // arg 3 mode
86 MOVL $5, AX
87 SYSCALL
88 RET
89
90 TEXT runtime·close(SB),7,$-8
91 MOVL 8(SP), DI // arg 1 fd
92 MOVL $6, AX
93 SYSCALL
94 RET
95
96 TEXT runtime·read(SB),7,$-8
97 MOVL 8(SP), DI // arg 1 fd
98 MOVQ 16(SP), SI // arg 2 buf
99 MOVL 24(SP), DX // arg 3 count
100 MOVL $3, AX
101 SYSCALL
80 RET 102 RET
81 103
82 TEXT runtime·write(SB),7,$-8 104 TEXT runtime·write(SB),7,$-8
83 MOVL 8(SP), DI // arg 1 - fd 105 MOVL 8(SP), DI // arg 1 - fd
84 MOVQ 16(SP), SI // arg 2 - buf 106 MOVQ 16(SP), SI // arg 2 - buf
85 MOVL 24(SP), DX // arg 3 - nbyte 107 MOVL 24(SP), DX // arg 3 - nbyte
86 MOVL $4, AX // sys_write 108 MOVL $4, AX // sys_write
87 SYSCALL 109 SYSCALL
88 RET 110 RET
89 111
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 MOVQ 40(SP), R8 // arg 5 - newp 304 MOVQ 40(SP), R8 // arg 5 - newp
283 MOVQ 48(SP), R9 // arg 6 - newlen 305 MOVQ 48(SP), R9 // arg 6 - newlen
284 MOVQ $202, AX // sys___sysctl 306 MOVQ $202, AX // sys___sysctl
285 SYSCALL 307 SYSCALL
286 JCC 3(PC) 308 JCC 3(PC)
287 NEGL AX 309 NEGL AX
288 RET 310 RET
289 MOVL $0, AX 311 MOVL $0, AX
290 RET 312 RET
291 313
LEFTRIGHT

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