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

Side by Side Diff: tests/toolchain/call_with_misaligned_stack.S

Issue 508823007: Expose LLC's -force-align-stack flag to pnacl-translate (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: review Created 6 years, 3 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 | « pnacl/driver/pnacl-translate.py ('k') | tests/toolchain/nacl.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2014 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 /*
8 * Call the argument with a stack pointer 4 bytes below its value on entry.
9 * This will ensure that (assuming it's aligned on a 16-byte boundary on entry)
10 * it will be misaligned on entry to the callee.
11 */
12 .text
13 .p2align 5
14 .globl call_with_misaligned_stack
15 .type call_with_misaligned_stack, @function
16 call_with_misaligned_stack:
17 movl 4(%esp), %ecx /* call target */
18 naclcall %ecx
19 pop %ecx
20 nacljmp %ecx
21 .p2align 5
OLDNEW
« no previous file with comments | « pnacl/driver/pnacl-translate.py ('k') | tests/toolchain/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698