Add branch profiling in baseline compiler.

Currently unused. Follow-up CLs will make use of the data.

Test: test.py
Bug: 304969871

Change-Id: I486faba3de030061715d06ab9fdb33970d319d9b
26 files changed