Fix 032 test: For stub, align X86 stack to 16 bytes.
This will fix test 032.
Change-Id: Ibb063a3eb8b9378b29320aca73754fcd2a77a67e
diff --git a/src/oat/runtime/x86/stub_x86.cc b/src/oat/runtime/x86/stub_x86.cc
index 0371a1e..cd03455 100644
--- a/src/oat/runtime/x86/stub_x86.cc
+++ b/src/oat/runtime/x86/stub_x86.cc
@@ -63,6 +63,7 @@
#else // ART_USE_LLVM_COMPILER
__ pushl(EBP);
__ movl(EBP, ESP); // save ESP
+ __ subl(ESP, Immediate(8)); // Align stack
__ movl(EAX, Address(EBP,8)); // Method* called
__ leal(EDX, Address(EBP,8)); // Method** called_addr
__ pushl(Immediate(type)); // pass is_static
@@ -128,6 +129,7 @@
#else // ART_USE_LLVM_COMPILER
__ pushl(EBP);
__ movl(EBP, ESP); // save ESP
+ __ subl(ESP, Immediate(12)); // Align stack
__ pushl(ESP); // pass sp (not use)
__ fs()->pushl(Address::Absolute(Thread::SelfOffset())); // pass thread*
__ pushl(Address(EBP,8)); // pass method