Hprof code cleanup.

This replaces a bunch of structs+functions with C++ objects
and member functions. It shortens names where unambiguous and
reduces visibility where plausible.

The main two changes are to create Hprof and HprofRecord classes
(from the hprof_record_t and hprof_context_t structs) and moves
functions into the classes. It uses stack allocation for the Hprof
object, which saves a few allocation-failure checks. And it uses
constructors and destructors rather than functions that do those
things.

This change should not alter behavior.

Change-Id: I62ce97fae3c1ba6e2ea89fdfdca915b013072868
6 files changed
tree: 4723ed30ef64776c506fce8c9aed2555a0bd9d46
  1. build/
  2. oat_process/
  3. oat_runtime/
  4. src/
  5. test/
  6. tools/
  7. Android.mk