Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2008 ARM Ltd | 2 * Copyright (c) 2008 ARM Ltd |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 "tst r2, #0xff00\n\t" | 135 "tst r2, #0xff00\n\t" |
| 136 "iteet ne\n\t" | 136 "iteet ne\n\t" |
| 137 SFI_BREG (ip) | 137 SFI_BREG (ip) |
| 138 "strneh r2, [ip], #2\n\t" | 138 "strneh r2, [ip], #2\n\t" |
| 139 "lsreq r2, r2, #8\n\t" | 139 "lsreq r2, r2, #8\n\t" |
| 140 SFI_BREG (ip) | 140 SFI_BREG (ip) |
| 141 "streqb r2, [ip]\n\t" | 141 "streqb r2, [ip]\n\t" |
| 142 "tstne r2, #0xff\n\t" | 142 "tstne r2, #0xff\n\t" |
| 143 #else | 143 #else |
| 144 "tst r2, #0xff\n\t" | 144 "tst r2, #0xff\n\t" |
| 145 #ifdef __thumb2__ | |
|
JF
2014/12/16 17:17:00
This should be the same guard as SFI_BREG, since i
Derek Schuff
2014/12/16 18:44:34
Done.
| |
| 145 "itet ne\n\t" | 146 "itet ne\n\t" |
| 147 #endif | |
| 146 SFI_BREG (ip) | 148 SFI_BREG (ip) |
| 147 "strneh r2, [ip], #2\n\t" | 149 "strneh r2, [ip], #2\n\t" |
| 148 SFI_BREG (ip) | 150 SFI_BREG (ip) |
| 149 "streqb r2, [ip]\n\t" | 151 "streqb r2, [ip]\n\t" |
| 150 "tstne r2, #0xff00\n\t" | 152 "tstne r2, #0xff00\n\t" |
| 151 #endif | 153 #endif |
| 152 "bne 5b\n\t" | 154 "bne 5b\n\t" |
| 153 "RETURN\n" | 155 "RETURN\n" |
| 154 | 156 |
| 155 /* src and dst do not have a common word-alignement. Fall back to | 157 /* src and dst do not have a common word-alignement. Fall back to |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 181 "add r1, r1, #1\n\t" | 183 "add r1, r1, #1\n\t" |
| 182 SFI_BREG (r3) | 184 SFI_BREG (r3) |
| 183 "strb r2, [r3]\n\t" | 185 "strb r2, [r3]\n\t" |
| 184 "add r3, r3, #1\n\t" | 186 "add r3, r3, #1\n\t" |
| 185 "cmp r2, #0\n\t" | 187 "cmp r2, #0\n\t" |
| 186 "bne 1b\n\t" | 188 "bne 1b\n\t" |
| 187 "RETURN" | 189 "RETURN" |
| 188 #endif | 190 #endif |
| 189 ); | 191 ); |
| 190 } | 192 } |
| OLD | NEW |