Clean up descriptor and member name comparisons.

Add helper functions for these comparisons to keep comments
related to ordering in one place.

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: I510a1cbbb46a22ddbd39d0530198cd004b476a8d
8 files changed