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
tree: 9263e2fb2dc90959743f54f08082993446c0a0dd
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/