OSDN Git Service

Quick compiler: fix DCHECK
authorbuzbee <buzbee@google.com>
Mon, 25 Aug 2014 16:34:03 +0000 (09:34 -0700)
committerbuzbee <buzbee@google.com>
Tue, 26 Aug 2014 14:25:48 +0000 (07:25 -0700)
commit88a6b4149415448b589f155df490ca7a13b01008
tree72c98a1a595a8db6cd9c81c14782d85880221835
parentb7326b502dd5afe6d8eae60d5f85bde0a94c6956
Quick compiler: fix DCHECK

Cherry-pick from internal 532582

A DCHECK intended to verify the soundness of the mapping between
a wide Dalvik value and a pair of temp registers incorrectly fired
when the temp register pair was associated with a wide temporary
(i.e. - when (SReg() == INVALID_SREG)).

In this particular situation, the wideness flag is meaningful only when
there is an associated valid vreg.  Code rearranged to only perform
the DCHECK and reset the partner's wideness bit when we're dealing with
a live wide value.

b/16484538

Change-Id: I3b8a7bebc5d918c65ea56ae8db0a8a5cd8003386
compiler/dex/quick/ralloc_util.cc