Skip to content

Commit

Permalink
Update TR_ResolvedMethod to obtain the number of ROM method args
Browse files Browse the repository at this point in the history
Signed-off-by: Nazim Bhuiyan <nubhuiyan@ibm.com>
  • Loading branch information
nbhuiyan committed May 12, 2021
1 parent 7f89c68 commit f72bfa7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 3 additions & 1 deletion compiler/compile/ResolvedMethod.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2020 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -375,6 +375,8 @@ bool TR_ResolvedMethod::isUnresolvedCallSiteTableEntry(int32_t callSiteI
void * TR_ResolvedMethod::callSiteTableEntryAddress(int32_t callSiteIndex) { TR_UNIMPLEMENTED(); return 0; }
bool TR_ResolvedMethod::isUnresolvedMethodTypeTableEntry(int32_t cpIndex) { TR_UNIMPLEMENTED(); return false; }
void * TR_ResolvedMethod::methodTypeTableEntryAddress(int32_t cpIndex) { TR_UNIMPLEMENTED(); return 0; }
uint32_t TR_ResolvedMethod::romMethodArgCountAtCallSiteIndex(int32_t callSiteIndex) {TR_UNIMPLEMENTED(); return 0;}
uint32_t TR_ResolvedMethod::romMethodArgCountAtCPIndex(int32_t cpIndex) {TR_UNIMPLEMENTED(); return 0;}

TR_OpaqueClassBlock *TR_ResolvedMethod::getDeclaringClassFromFieldOrStatic(TR::Compilation *comp, int32_t cpIndex) { TR_UNIMPLEMENTED(); return 0; }
int32_t TR_ResolvedMethod::classCPIndexOfFieldOrStatic(int32_t) { TR_UNIMPLEMENTED(); return 0; }
Expand Down
22 changes: 21 additions & 1 deletion compiler/compile/ResolvedMethod.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2020 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -149,6 +149,26 @@ class TR_ResolvedMethod
virtual void *callSiteTableEntryAddress(int32_t callSiteIndex);
virtual bool isUnresolvedMethodTypeTableEntry(int32_t cpIndex);
virtual void *methodTypeTableEntryAddress(int32_t cpIndex);
/** \brief
* Get the number of arguments in the ROM method signature of an invokedynamic call
*
* \param callSiteIndex
* The callSite index corresponding to the invocation to lookup the ROM method
*
* \return uint32_t
* The number of arguments of the ROM Method
*/
virtual uint32_t romMethodArgCountAtCallSiteIndex(int32_t callSiteIndex);
/** \brief
* Get the number of arguments in the ROM method signature of an inovokehandle call
*
* \param cpIndex
* The constant pool index for the invocation to lookup the ROM method
*
* \return uint32_t
* The number of arguments of the ROM Method
*/
virtual uint32_t romMethodArgCountAtCPIndex(int32_t cpIndex);

virtual bool fieldsAreSame(int32_t, TR_ResolvedMethod *, int32_t, bool &sigSame);
virtual bool staticsAreSame(int32_t, TR_ResolvedMethod *, int32_t, bool &sigSame);
Expand Down

0 comments on commit f72bfa7

Please sign in to comment.