OSDN Git Service

x86_64: Fix GenArrayBoundsCheck
authorSerguei Katkov <serguei.i.katkov@intel.com>
Mon, 23 Jun 2014 17:50:02 +0000 (00:50 +0700)
committerSerguei Katkov <serguei.i.katkov@intel.com>
Mon, 30 Jun 2014 03:52:49 +0000 (10:52 +0700)
commit4c7cc15590a2f921e6055f723e46694966cb7665
tree794756803f50f34718d746772e925c41075f215a
parent9295d7da1410f4c38c609d4a52f4f5ed923cff27
x86_64: Fix GenArrayBoundsCheck

The GenArrayBoundsCheck uses args registers to put array_length and
index as a parameter to out call. To ensure that we do not corrupt
register values there is a check whether need arg is not busy.
We need to use reg num comparison instead of reg comparison.

Change-Id: I260f02d1c155b69be8652dee2e89f3b63d15297c
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
compiler/dex/quick/x86/int_x86.cc