From 9b49689cc20c6b84cfcb049a8093f11e65ee8522 Mon Sep 17 00:00:00 2001 From: TDYa127 Date: Sun, 22 Apr 2012 19:13:34 -0700 Subject: Fix 032 test: For stub, align X86 stack to 16 bytes. This will fix test 032. Change-Id: Ibb063a3eb8b9378b29320aca73754fcd2a77a67e --- src/oat/runtime/x86/stub_x86.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/oat/runtime/x86/stub_x86.cc b/src/oat/runtime/x86/stub_x86.cc index 0371a1efbb..cd03455824 100644 --- a/src/oat/runtime/x86/stub_x86.cc +++ b/src/oat/runtime/x86/stub_x86.cc @@ -63,6 +63,7 @@ ByteArray* X86CreateResolutionTrampoline(Runtime::TrampolineType type) { #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 @@ ByteArray* CreateAbstractMethodErrorStub() { #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 -- cgit v1.2.3-59-g8ed1b