AIDL: Add onTransact "outlining"
When the number of transaction cases is high, emit methods that
handle each transaction in the stub class, so as to keep onTransact
itself small.
This ensures that onTransact can be compiled by ART, i.e., not
filtered by compiler heuristics for huge auto-generated methods.
The ART compiler may, conversely, inline hot methods into
onTransact again, avoiding call overhead.
Effect on boot image files:
* boot-framework.art +0.18%
* boot-framework.oat +0.23%
* boot-framework.vdex +0.12%
* overall increase +0.1%
Bug: 69622177
Test: m
Test: system/tools/aidl/runtests.sh
Test: Device boots
Change-Id: I06b12e0af79ecb7934f971c2504a16e531cacd68
1 file changed