Re: RFR: 8341510: Optimize StackMapGenerator::processFieldInstructions

2024-10-04 Thread Chen Liang
On Fri, 4 Oct 2024 02:47:12 GMT, Shaojin Wen wrote: > A small optimization to reduce CodeSize, codeSize reduced from 164 to 140. > > 1. Use local currentFrame to avoid multiple getfields > 2. Use decStack instead of popStack to reduce array access in popStack > 3. Call Util.fieldTypeSymbol to pa

Re: RFR: 8341510: Optimize StackMapGenerator::processFieldInstructions

2024-10-04 Thread Shaojin Wen
On Fri, 4 Oct 2024 04:59:04 GMT, Chen Liang wrote: >> A small optimization to reduce CodeSize, codeSize reduced from 164 to 140. >> >> 1. Use local currentFrame to avoid multiple getfields >> 2. Use decStack instead of popStack to reduce array access in popStack >> 3. Call Util.fieldTypeSymbol t

Re: RFR: 8341510: Optimize StackMapGenerator::processFieldInstructions

2024-10-03 Thread Chen Liang
On Fri, 4 Oct 2024 02:47:12 GMT, Shaojin Wen wrote: > A small optimization to reduce CodeSize, codeSize reduced from 164 to 140. > > 1. Use local currentFrame to avoid multiple getfields > 2. Use decStack instead of popStack to reduce array access in popStack > 3. Call Util.fieldTypeSymbol to pa

RFR: 8341510: Optimize StackMapGenerator::processFieldInstructions

2024-10-03 Thread Shaojin Wen
A small optimization to reduce CodeSize, codeSize reduced from 164 to 140. 1. Use local currentFrame to avoid multiple getfields 2. Use decStack instead of popStack to reduce array access in popStack 3. Call Util.fieldTypeSymbol to pass in type instead of nameAndType - Commit message