Use dex byte code size for simple/double inlining limits
Fixes: 202912040
Change-Id: I1bb4f4ad944fcf9aa46ce2c68aa27e49706f4a96
diff --git a/tools/compiledump.py b/tools/compiledump.py
index fb3b901..dbb4a18 100755
--- a/tools/compiledump.py
+++ b/tools/compiledump.py
@@ -52,6 +52,9 @@
help='Path to an R8 jar.',
default=None)
parser.add_argument(
+ '--r8-flags', '--r8_flags',
+ help='Additional option(s) for the compiler.')
+ parser.add_argument(
'-override',
help='Do not override any extracted dump in temp-dir',
default=False,
@@ -341,6 +344,8 @@
cmd.append('-Dcom.android.tools.r8.enableTestAssertions=1')
if args.print_times:
cmd.append('-Dcom.android.tools.r8.printtimes=1')
+ if args.r8_flags:
+ cmd.extend(args.r8_flags.split(' '))
if hasattr(args, 'properties'):
cmd.extend(args.properties);
cmd.extend(determine_properties(build_properties))