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

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

Issue 8056043: code review 8056043: runtime: Implement faster equals for strings and bytes. (Closed)
Left Patch Set: Created 11 years ago
Right Patch Set: diff -r 52e3407d249f https://khr%40golang.org@code.google.com/p/go/ Created 10 years, 12 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/pkg/runtime/asm_amd64.s ('k') | src/pkg/runtime/hashmap.c » ('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 6
7 // using frame size $-4 means do not save LR on stack. 7 // using frame size $-4 means do not save LR on stack.
8 TEXT _rt0_arm(SB),7,$-4 8 TEXT _rt0_arm(SB),7,$-4
9 MOVW $0xcafebabe, R12 9 MOVW $0xcafebabe, R12
10 10
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 MOVW $0, R0 480 MOVW $0, R0
481 RET 481 RET
482 482
483 TEXT runtime·stackguard(SB),7,$0 483 TEXT runtime·stackguard(SB),7,$0
484 MOVW R13, R1 484 MOVW R13, R1
485 MOVW g_stackguard(g), R2 485 MOVW g_stackguard(g), R2
486 MOVW R1, sp+0(FP) 486 MOVW R1, sp+0(FP)
487 MOVW R2, limit+4(FP) 487 MOVW R2, limit+4(FP)
488 RET 488 RET
489 489
490 // not implemented for ARM 490 // AES hashing not implemented for ARM
491 TEXT runtime·aeshash(SB),7,$-4 491 TEXT runtime·aeshash(SB),7,$-4
492 MOVW $0, R0 492 MOVW $0, R0
493 MOVW (R0), R1 493 MOVW (R0), R1
494 TEXT runtime·aeshash32(SB),7,$-4 494 TEXT runtime·aeshash32(SB),7,$-4
495 MOVW $0, R0 495 MOVW $0, R0
496 MOVW (R0), R1 496 MOVW (R0), R1
497 TEXT runtime·aeshash64(SB),7,$-4 497 TEXT runtime·aeshash64(SB),7,$-4
498 MOVW $0, R0 498 MOVW $0, R0
499 MOVW (R0), R1 499 MOVW (R0), R1
500 TEXT runtime·aeshashstr(SB),7,$-4 500 TEXT runtime·aeshashstr(SB),7,$-4
501 MOVW $0, R0 501 MOVW $0, R0
502 MOVW (R0), R1 502 MOVW (R0), R1
503
504 TEXT runtime·memeq(SB),7,$-4
505 MOVW a+0(FP), R1
506 MOVW b+4(FP), R2
507 MOVW n+8(FP), R3
508 ADD R1, R3, R6
509 MOVW $1, R0
510 _next:
511 CMP R1, R6
512 RET.EQ
513 MOVBU.P 1(R1), R4
514 MOVBU.P 1(R2), R5
515 CMP R4, R5
516 BEQ _next
517
518 MOVW $0, R0
519 RET
LEFTRIGHT

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