Inline constructors/destructor for JavaRef.
JavaRef<object> only contains a POD type (jobject); the destructor does
nothing and the default constructor just NULL-initializes. Inline both.
Also inline the non-default constructor when !DCHECK_IS_ON (but leave it
out of line otherwise as it contains a nontrivial DCHECK).
This saves 8736 bytes in the .text section as of the time of writing,
but will save 40kB or more as we wrap more JNI method parameters in
JavaRef.
BUG=519562
Review URL: https://codereview.chromium.org/1308413003
Cr-Commit-Position: refs/heads/master@{#345114}
CrOS-Libchrome-Original-Commit: cf27355590f9fff414fdcd86ac4fee074d1e6271
2 files changed