Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: tests/dynamic_code_loading/templates_arm.S

Issue 5738003: Resurrect Petr's 64-bit dynamic code modification CL:... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/dynamic_code_loading/templates.h ('k') | tests/dynamic_code_loading/templates_x86.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 /* 1 /*
2 * Copyright 2010 The Native Client Authors. All rights reserved. 2 * Copyright 2010 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file. 4 * be found in the LICENSE file.
5 */ 5 */
6 6
7
8 .global template_func_misaligned_replacement
9 .global template_func_misaligned_replacement_end
10 .global template_func_illegal_call_target
11 .global template_func_illegal_call_target_end
12 .global template_func_illegal_register_replacement
13 .global template_func_illegal_register_replacement_end
14 .global template_func_illegal_guard_replacement
15 .global template_func_illegal_guard_replacement_end
16 .global template_func_illegal_constant_replacement
17 .global template_func_illegal_constant_replacement_end
18 template_func_misaligned_replacement:
19 template_func_illegal_call_target:
20 template_func_illegal_register_replacement:
21 template_func_illegal_guard_replacement:
22 template_func_illegal_constant_replacement:
23 /* Not implemented */
24 bkpt 0x7777 /* hlt */
25 template_func_misaligned_replacement_end:
26 template_func_illegal_call_target_end:
27 template_func_illegal_register_replacement_end:
28 template_func_illegal_guard_replacement_end:
29 template_func_illegal_constant_replacement_end:
30
7 .global template_func 31 .global template_func
8 .global template_func_end 32 .global template_func_end
9 template_func: 33 template_func:
10 mov r0, #1234 & 0xff 34 mov r0, #1234 & 0xff
11 orr r0, #1234 & 0xff00 35 orr r0, #1234 & 0xff00
12 bic lr, lr, #0xf000000f 36 bic lr, lr, #0xf000000f
13 bx lr 37 bx lr
14 template_func_end: 38 template_func_end:
15 39
16 .global template_func_replacement 40 .global template_func_replacement
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 data segment. */ 89 data segment. */
66 .data 90 .data
67 91
68 92
69 .global invalid_code 93 .global invalid_code
70 .global invalid_code_end 94 .global invalid_code_end
71 .p2align 4 95 .p2align 4
72 invalid_code: 96 invalid_code:
73 bx lr 97 bx lr
74 invalid_code_end: 98 invalid_code_end:
OLDNEW
« no previous file with comments | « tests/dynamic_code_loading/templates.h ('k') | tests/dynamic_code_loading/templates_x86.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698