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

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

Issue 3975001: Dynamic code modification support for x64 NaCl modules... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 10 years, 1 month 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 template_func_misaligned_replacement:
17 template_func_illegal_call_target:
18 template_func_illegal_register_replacement:
19 template_func_illegal_guard_replacement
20 /* Not implemented */
21 bkpt 0x7777 /* hlt */
22 template_func_misaligned_replacement_end:
23 template_func_illegal_call_target_end:
24 template_func_illegal_register_replacement_end:
25 template_func_illegal_guard_replacement_end:
26
7 .global template_func 27 .global template_func
8 .global template_func_end 28 .global template_func_end
9 template_func: 29 template_func:
10 mov r0, #1234 & 0xff 30 mov r0, #1234 & 0xff
11 orr r0, #1234 & 0xff00 31 orr r0, #1234 & 0xff00
12 bic lr, lr, #0xf000000f 32 bic lr, lr, #0xf000000f
13 bx lr 33 bx lr
14 template_func_end: 34 template_func_end:
15 35
16 .global template_func_replacement 36 .global template_func_replacement
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 data segment. */ 85 data segment. */
66 .data 86 .data
67 87
68 88
69 .global invalid_code 89 .global invalid_code
70 .global invalid_code_end 90 .global invalid_code_end
71 .p2align 4 91 .p2align 4
72 invalid_code: 92 invalid_code:
73 bx lr 93 bx lr
74 invalid_code_end: 94 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