diff options
author | 2022-06-24 11:16:35 +0100 | |
---|---|---|
committer | 2022-10-10 09:55:22 +0000 | |
commit | 8efb1a62b67fd1e6866a4b7e465afc11770bb082 (patch) | |
tree | 1f7a9ee46d064b801ce596aaea010f4aafba3aea /test/2237-checker-inline-multidex/src-multidex/Multi.java | |
parent | 841a69822d8a8cd04159575957367eeca2fbd1b2 (diff) |
Compiler implementation of try catch inlining
Notable changes:
1) Wiring of the graph now allows for inlinees graph ending in
TryBoundary, or Goto in some special cases.
2) Building a graph with try catch for inlining may add an extra
Goto block.
3) Oat version bump.
4) Reduced kMaximumNumberOfCumulatedDexRegisters from 32 to 20.
Bug: 227283224
Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b
Change-Id: Ic2fd956de24b72d1de29b4cd3d0b2a1ddab231d8
Diffstat (limited to 'test/2237-checker-inline-multidex/src-multidex/Multi.java')
-rw-r--r-- | test/2237-checker-inline-multidex/src-multidex/Multi.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/2237-checker-inline-multidex/src-multidex/Multi.java b/test/2237-checker-inline-multidex/src-multidex/Multi.java index cd234c3477..c830c59f49 100644 --- a/test/2237-checker-inline-multidex/src-multidex/Multi.java +++ b/test/2237-checker-inline-multidex/src-multidex/Multi.java @@ -38,4 +38,12 @@ public class Multi { } private class Multi2 {} + + public static int $inline$TryCatch(String str) { + try { + return Integer.parseInt(str); + } catch (NumberFormatException ex) { + return -1; + } + } } |