summaryrefslogtreecommitdiff
path: root/compiler/optimizing/stack_map_test.cc
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2018-05-18 14:46:49 +0100
committerDavid Srbecky <dsrbecky@google.com>2018-06-01 13:26:48 +0100
commit049d68181e4862271acc027bcb0b4cf5bcc122b6 (patch)
tree0073869bb1870fd31b2d81119bdc60eba456dc5a /compiler/optimizing/stack_map_test.cc
parent71ec1cc0665cdb9d39f4fd284d68962020417a53 (diff)
Rewrite stackmap verification code.
The new version is more complicated but it gives much higher confidence about the correctness of the stackmap encoding. The old version was comparing the internal builder entries to the decoded information, which verified the bit-level manipulations, but it did not verify that we created the internal state correctly. The new version directly compares the parameters passed to the StackMapStream and the decoded values. This way, it really tests the whole system. It uses lambda captures to record the parameters. Test: test-art-host-gtest-stack_map_test Change-Id: Ib92819cc35ce0d790128392d303f6feabd7d9c74
Diffstat (limited to 'compiler/optimizing/stack_map_test.cc')
0 files changed, 0 insertions, 0 deletions