mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-04 10:46:27 +00:00
8281168: Micro-optimize VarForm.getMemberName for interpreter
Reviewed-by: redestad, vlivanov, mchung
This commit is contained in:
parent
bce5dd1766
commit
fc77217814
@ -109,9 +109,14 @@ final class VarForm {
|
||||
|
||||
@ForceInline
|
||||
final MemberName getMemberName(int mode) {
|
||||
MemberName mn = getMemberNameOrNull(mode);
|
||||
// Can be simplified by calling getMemberNameOrNull, but written in this
|
||||
// form to improve interpreter/coldpath performance.
|
||||
MemberName mn = memberName_table[mode];
|
||||
if (mn == null) {
|
||||
throw new UnsupportedOperationException();
|
||||
mn = resolveMemberName(mode);
|
||||
if (mn == null) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
return mn;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user