OSDN Git Service

ART: Add more deopt tests
authorAndreas Gampe <agampe@google.com>
Thu, 1 Oct 2015 00:13:59 +0000 (17:13 -0700)
committerAndreas Gampe <agampe@google.com>
Mon, 5 Oct 2015 15:57:04 +0000 (08:57 -0700)
commit0dfc9bc0cca3ae15dc75bbea3ca9b6d7508ce893
treeabdc76069da7142d899eb776a0d82bdbbe316c94
parent1aba494df441c31836e5b7d4d8e408420a93cb8d
ART: Add more deopt tests

Extend libarttest with the ability to turn off asserts for method
state. Use this to put asserts into test functions, but turn them
off if the test wouldn't react as we want, e.g., when we're in
interpreter mode.

Extend run-test 449 by adding asserts for the method state for the
expected deopt cases. This tests both standard behavior, as well
as single-frame deoptimization.

Bug: 21611912
Change-Id: I27fa5e3e44d8c5eab57962d144c6aec96587bf45
test/088-monitor-verification/smali/NotStructuredOverUnlock.smali
test/088-monitor-verification/smali/NotStructuredUnderUnlock.smali
test/088-monitor-verification/smali/OK.smali
test/088-monitor-verification/smali/TooDeep.smali
test/088-monitor-verification/smali/UnbalancedJoin.smali
test/088-monitor-verification/smali/UnbalancedStraight.smali
test/088-monitor-verification/src/Main.java
test/449-checker-bce/expected.txt
test/449-checker-bce/src/Main.java
test/common/runtime_state.cc
test/common/stack_inspect.cc