Use dex byte code size for simple/double inlining limits

Fixes: 202912040
Change-Id: I1bb4f4ad944fcf9aa46ce2c68aa27e49706f4a96
diff --git a/tools/run_on_app_dump.py b/tools/run_on_app_dump.py
index 30205f9..88c758d 100755
--- a/tools/run_on_app_dump.py
+++ b/tools/run_on_app_dump.py
@@ -655,6 +655,7 @@
   args = AttrDict({
     'dump': dump_for_app(app_dir, app),
     'r8_jar': get_r8_jar(options, temp_dir, shrinker),
+    'r8_flags': options.r8_flags,
     'ea': False if options.disable_assertions else True,
     'version': options.version,
     'compiler': 'r8full' if is_full_r8(shrinker) else 'r8',
@@ -931,6 +932,8 @@
                       help='Number of times R8 should be run on each app',
                       default=2,
                       type=int)
+  result.add_argument('--r8-flags', '--r8_flags',
+                      help='Additional option(s) for the compiler.')
   result.add_argument('--run-tests', '--run_tests',
                       help='Whether to run instrumentation tests',
                       default=False,