OSDN Git Service

Fix handling of long argument spanning register/memory.
authorNicolas Geoffray <ngeoffray@google.com>
Thu, 8 Jan 2015 14:52:29 +0000 (14:52 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Mon, 12 Jan 2015 14:08:55 +0000 (14:08 +0000)
commit425f239c291d435f519a1cf4bdd9ccc9a2c0c070
tree6c4ec2cef8fd0caf45712191bcbc5d72ed0d318b
parent11adb76fbc2dc3d8cbb6665945ff5d6733e2a8e6
Fix handling of long argument spanning register/memory.

Comment in arm_lir.h says:
 * If a 64-bit argument would span the register/memory argument
 * boundary, it will instead be fully passed in the frame.

This change implements such logic for all platforms. We still need
to pass the low part in register as well because I haven't ported
the jni compilers (x86 and mips) to it.

Once the jni compilers are updated, we can remove the register
assignment.

Note that this greatly simplifies optimizing's register allocator
by not having to understand a long spanning register and memory.

Change-Id: I59706ca5d47269fc46e5489ac99bd6576e87e7f3
compiler/dex/quick/gen_invoke.cc
compiler/jni/quick/arm/calling_convention_arm.cc
compiler/optimizing/code_generator_arm.cc
compiler/optimizing/code_generator_x86.cc
runtime/entrypoints/quick/quick_trampoline_entrypoints.cc