Skip to content

Commit

Permalink
Merge pull request #7451 from jdmpapin/vTableSlot-cpIndex
Browse files Browse the repository at this point in the history
Remove unused cpIndex parameter of vTableSlot(), virtualCallSelector()
  • Loading branch information
hzongaro authored Sep 5, 2024
2 parents 6dc282e + 31b912e commit 10fdf65
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compiler/compile/OMRSymbolReferenceTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ OMR::SymbolReferenceTable::findOrCreateMethodSymbol(
if (!resolvedMethod)
symRef->setUnresolved();
else if (callKind == TR::MethodSymbol::Virtual && cpIndex != -1)
symRef->setOffset(resolvedMethod->virtualCallSelector(cpIndex));
symRef->setOffset(resolvedMethod->virtualCallSelector());

aliasBuilder.methodSymRefs().set(symRef->getReferenceNumber());

Expand Down
4 changes: 2 additions & 2 deletions compiler/compile/ResolvedMethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,11 @@ char * TR_ResolvedMethod::fieldNameChars(int32_t, int32_t &) { TR_
char * TR_ResolvedMethod::fieldSignatureChars(int32_t, int32_t &) { TR_UNIMPLEMENTED(); return 0; }
char * TR_ResolvedMethod::staticSignatureChars(int32_t, int32_t &) { TR_UNIMPLEMENTED(); return 0; }
void * & TR_ResolvedMethod::addressOfClassOfMethod() { TR_UNIMPLEMENTED(); throw std::exception(); }
uint32_t TR_ResolvedMethod::vTableSlot(uint32_t) { TR_UNIMPLEMENTED(); return 0; }
uint32_t TR_ResolvedMethod::vTableSlot() { TR_UNIMPLEMENTED(); return 0; }
bool TR_ResolvedMethod::virtualMethodIsOverridden() { TR_UNIMPLEMENTED(); return false; }
void TR_ResolvedMethod::setVirtualMethodIsOverridden() { TR_UNIMPLEMENTED(); }
void * TR_ResolvedMethod::addressContainingIsOverriddenBit() { TR_UNIMPLEMENTED(); return 0; }
int32_t TR_ResolvedMethod::virtualCallSelector(uint32_t) { TR_UNIMPLEMENTED(); return 0; }
int32_t TR_ResolvedMethod::virtualCallSelector() { TR_UNIMPLEMENTED(); return 0; }
uint32_t TR_ResolvedMethod::numberOfExceptionHandlers() { TR_UNIMPLEMENTED(); return 0; }
uint8_t * TR_ResolvedMethod::allocateException(uint32_t,TR::Compilation*){ TR_UNIMPLEMENTED(); return 0; }

Expand Down
4 changes: 2 additions & 2 deletions compiler/compile/ResolvedMethod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class TR_ResolvedMethod
virtual uint32_t classCPIndexOfMethod(uint32_t);
virtual void * & addressOfClassOfMethod();

virtual uint32_t vTableSlot(uint32_t);
virtual uint32_t vTableSlot();

virtual TR_OpaqueClassBlock *getResolvedInterfaceMethod(int32_t cpIndex, uintptr_t * pITableIndex);

Expand All @@ -236,7 +236,7 @@ class TR_ResolvedMethod
virtual bool virtualMethodIsOverridden();
virtual void setVirtualMethodIsOverridden();
virtual void *addressContainingIsOverriddenBit();
virtual int32_t virtualCallSelector(uint32_t cpIndex);
virtual int32_t virtualCallSelector();

virtual int32_t exceptionData(int32_t exceptionNumber, int32_t * startIndex, int32_t * endIndex, int32_t * catchType);
virtual uint32_t numberOfExceptionHandlers();
Expand Down

0 comments on commit 10fdf65

Please sign in to comment.