Re: RFR: 8340544: Optimize setLocalsFromArg [v2]

2024-09-20 Thread Claes Redestad
On Fri, 20 Sep 2024 16:35:07 GMT, Shaojin Wen wrote: >> CheckLocal once, reduce redundant checkLocal, rewrite switch, reduce method >> size, codeSize is reduced from 367 to 263. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > >

Re: RFR: 8340544: Optimize setLocalsFromArg [v2]

2024-09-20 Thread Claes Redestad
On Fri, 20 Sep 2024 16:35:05 GMT, Shaojin Wen wrote: >> src/java.base/share/classes/jdk/internal/classfile/impl/StackMapGenerator.java >> line 1069: >> >>> 1067: localsSize += 2; >>> 1068: } else { >>> 1069: if (desc == CD_int || desc == C

Re: RFR: 8340544: Optimize setLocalsFromArg [v2]

2024-09-20 Thread Shaojin Wen
On Fri, 20 Sep 2024 16:13:06 GMT, Claes Redestad wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> more compact > > src/java.base/share/classes/jdk/internal/classfile/impl/StackMapGenerator.java > line 1069: > >> 10

Re: RFR: 8340544: Optimize setLocalsFromArg [v2]

2024-09-20 Thread Shaojin Wen
> CheckLocal once, reduce redundant checkLocal, rewrite switch, reduce method > size, codeSize is reduced from 367 to 263. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: more compact - Changes: - all: https://git.open

Re: RFR: 8340544: Optimize setLocalsFromArg

2024-09-20 Thread Chen Liang
On Fri, 20 Sep 2024 09:18:32 GMT, Shaojin Wen wrote: > CheckLocal once, reduce redundant checkLocal, rewrite switch, reduce method > size, codeSize is reduced from 367 to 263. Tier 1-3 tests pass. - Marked as reviewed by liach (Reviewer). PR Review: https://git.openjdk.org/jdk/pu

Re: RFR: 8340544: Optimize setLocalsFromArg

2024-09-20 Thread Chen Liang
On Fri, 20 Sep 2024 16:13:06 GMT, Claes Redestad wrote: >> CheckLocal once, reduce redundant checkLocal, rewrite switch, reduce method >> size, codeSize is reduced from 367 to 263. > > src/java.base/share/classes/jdk/internal/classfile/impl/StackMapGenerator.java > line 1069: > >> 1067:

Re: RFR: 8340544: Optimize setLocalsFromArg

2024-09-20 Thread Claes Redestad
On Fri, 20 Sep 2024 09:18:32 GMT, Shaojin Wen wrote: > CheckLocal once, reduce redundant checkLocal, rewrite switch, reduce method > size, codeSize is reduced from 367 to 263. LGTM src/java.base/share/classes/jdk/internal/classfile/impl/StackMapGenerator.java line 1069: > 1067:

Re: RFR: 8340544: Optimize setLocalsFromArg

2024-09-20 Thread Chen Liang
On Fri, 20 Sep 2024 09:18:32 GMT, Shaojin Wen wrote: > CheckLocal once, reduce redundant checkLocal, rewrite switch, reduce method > size, codeSize is reduced from 367 to 263. Looks good. Using `Util.parameterSlots` avoids redundant array allocation and copies. 👍 - PR Comment: ht

RFR: 8340544: Optimize setLocalsFromArg

2024-09-20 Thread Shaojin Wen
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