OSDN Git Service

ART: Correctly hard-fail method with undefined register
authorAndreas Gampe <agampe@google.com>
Wed, 24 Jun 2015 17:26:13 +0000 (10:26 -0700)
committerAndreas Gampe <agampe@google.com>
Wed, 24 Jun 2015 21:20:48 +0000 (14:20 -0700)
commita32210c53d23b73ba769053b8c1b214a7468fe6e
treebf85ea55e38add66912d95771eaf8dd36e8741eb
parent0c955b174bf64707ee0ee03195ed56f9cec26fa2
ART: Correctly hard-fail method with undefined register

In case a return-object gets an undefined return value register
and an unresolved return type, the "undefined" must take precedence
and lead to a hard fail of the method.

Bug: 22045582
Change-Id: Id5595a72331cd6272aa9ebc8ff3b9cea046294a2
runtime/verifier/method_verifier.cc
test/800-smali/expected.txt
test/800-smali/smali/b_22045582.smali [new file with mode: 0644]
test/800-smali/smali/b_22045582_int.smali [new file with mode: 0644]
test/800-smali/smali/b_22045582_wide.smali [new file with mode: 0644]
test/800-smali/src/Main.java