CheckLocal once, reduce redundant checkLocal, rewrite switch, reduce method size, codeSize is reduced from 367 to 263.
------------- Commit messages: - optimize setLocalsFromArg Changes: https://git.openjdk.org/jdk/pull/21106/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21106&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8340544 Stats: 27 lines in 1 file changed: 8 ins; 5 del; 14 mod Patch: https://git.openjdk.org/jdk/pull/21106.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/21106/head:pull/21106 PR: https://git.openjdk.org/jdk/pull/21106