Make the boot image non-debuggable.

inline_depth_limit is set to 3 and inline_max_code_units is set to 16
(the default would be 3 and 32 if not set).
boot.oat has a drop of size of 2.1% for arm-64 and 1.2% for arm.

Bug: 28769520
Change-Id: I991de51fa7087672ee2656cdff34f64dbc79f10e
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc
index cce83f3..cd2909b 100644
--- a/dex2oat/dex2oat.cc
+++ b/dex2oat/dex2oat.cc
@@ -686,9 +686,12 @@
     }
 
     if (IsBootImage()) {
-      // We need the boot image to always be debuggable.
-      // TODO: Remove this once we better deal with full frame deoptimization.
-      compiler_options_->debuggable_ = true;
+      if (compiler_options_->inline_depth_limit_ == CompilerOptions::kUnsetInlineDepthLimit) {
+        compiler_options_->inline_depth_limit_ = 3;
+      }
+      if (compiler_options_->inline_max_code_units_ == CompilerOptions::kUnsetInlineMaxCodeUnits) {
+        compiler_options_->inline_max_code_units_ = 16;
+      }
     }
 
     if (oat_filenames_.empty() && oat_fd_ == -1) {