@@ -95,13 +95,13 @@ public final class HostedMethod extends HostedElement implements SharedMethod, W
95
95
private final ConstantPool constantPool ;
96
96
private final ExceptionHandler [] handlers ;
97
97
/**
98
- * Contains the index of the method within the appropriate table .
98
+ * Contains the index of the method computed by {@link VTableBuilder} .
99
99
*
100
100
* Within the closed type world, there exists a single table which describes all methods.
101
101
* However, within the open type world, each type and interface has a unique table, so this
102
102
* index is relative to the start of the appropriate table.
103
103
*/
104
- int vtableIndex = MISSING_VTABLE_IDX ;
104
+ int computedVTableIndex = MISSING_VTABLE_IDX ;
105
105
106
106
/**
107
107
* When using the open type world we must differentiate between this method's vtable index and
@@ -404,12 +404,12 @@ void finalizeVTableIndex(boolean closedTypeWorld) {
404
404
* In the closed type word we do not have a different indirectCallTarget, so the
405
405
* vtableIndex is always the original vtable index.
406
406
*/
407
- indirectCallVTableIndex = vtableIndex ;
407
+ indirectCallVTableIndex = computedVTableIndex ;
408
408
} else {
409
409
/*
410
410
* In the open type word we must use the vtable index from the indirect call target.
411
411
*/
412
- indirectCallVTableIndex = indirectCallTarget .vtableIndex ;
412
+ indirectCallVTableIndex = indirectCallTarget .computedVTableIndex ;
413
413
}
414
414
}
415
415
@@ -676,7 +676,6 @@ public HostedMethod getOrCreateMultiMethod(MultiMethodKey key) {
676
676
return (HostedMethod ) multiMethodMap .computeIfAbsent (key , (k ) -> {
677
677
HostedMethod newMultiMethod = create0 (wrapped , holder , signature , constantPool , handlers , k , multiMethodMap , localVariableTable );
678
678
newMultiMethod .implementations = implementations ;
679
- newMultiMethod .vtableIndex = vtableIndex ;
680
679
return newMultiMethod ;
681
680
});
682
681
}
0 commit comments