Skip to content

Commit

Permalink
Merge pull request #9163 from rpshukla/prexarginfo-remove-macro
Browse files Browse the repository at this point in the history
Remove TR_PREXARGINFO_TRACER_CLASS macro
  • Loading branch information
andrewcraik committed Apr 15, 2020
2 parents 2335c13 + 02ec3d5 commit d493108
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
12 changes: 6 additions & 6 deletions runtime/compiler/optimizer/InlinerTempForJ9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5190,7 +5190,7 @@ void TR_J9InlinerUtil::checkForConstClass(TR_CallTarget *target, TR_LogTracer *t
} // checkForConstClass

//@TODO this can be re-used as we start building prexargs for every callsite
TR_PrexArgInfo* TR_PrexArgInfo::buildPrexArgInfoForMethodSymbol(TR::ResolvedMethodSymbol* methodSymbol, TR_PREXARGINFO_TRACER_CLASS* tracer)
TR_PrexArgInfo* TR_PrexArgInfo::buildPrexArgInfoForMethodSymbol(TR::ResolvedMethodSymbol* methodSymbol, TR_LogTracer* tracer)
{
int numArgs = methodSymbol->getParameterList().getSize();
TR_ResolvedMethod *feMethod = methodSymbol->getResolvedMethod();
Expand Down Expand Up @@ -5264,7 +5264,7 @@ static char* classSignature (TR::Method * m, TR::Compilation* comp) //tracer hel
return classNameToSignature(m->classNameChars(), len /*don't care, cos this gives us a null terminated string*/, comp);
}

TR::Node* TR_PrexArgInfo::getCallNode (TR::ResolvedMethodSymbol* methodSymbol, TR_CallSite* callsite, TR_PREXARGINFO_TRACER_CLASS* tracer)
TR::Node* TR_PrexArgInfo::getCallNode (TR::ResolvedMethodSymbol* methodSymbol, TR_CallSite* callsite, TR_LogTracer* tracer)
{
if (callsite->_callNode)
return callsite->_callNode;
Expand Down Expand Up @@ -5376,7 +5376,7 @@ TR_PrexArgument* TR_PrexArgInfo::getArgForChild(TR::Node *child, TR_PrexArgInfo*
}

void TR_PrexArgInfo::propagateReceiverInfoIfAvailable (TR::ResolvedMethodSymbol* methodSymbol, TR_CallSite* callsite,
TR_PrexArgInfo * argInfo, TR_PREXARGINFO_TRACER_CLASS *tracer)
TR_PrexArgInfo * argInfo, TR_LogTracer *tracer)
{
//this implies we have some argInfo available
TR_ASSERT(argInfo, "otherwise we shouldn't even peek");
Expand All @@ -5402,7 +5402,7 @@ void TR_PrexArgInfo::propagateReceiverInfoIfAvailable (TR::ResolvedMethodSymbol*
}
}

bool TR_PrexArgInfo::validateAndPropagateArgsFromCalleeSymbol(TR_PrexArgInfo* argsFromSymbol, TR_PrexArgInfo* argsFromTarget, TR_PREXARGINFO_TRACER_CLASS *tracer)
bool TR_PrexArgInfo::validateAndPropagateArgsFromCalleeSymbol(TR_PrexArgInfo* argsFromSymbol, TR_PrexArgInfo* argsFromTarget, TR_LogTracer *tracer)
{
if (!argsFromSymbol || !argsFromTarget || tracer->comp()->getOption(TR_DisableInlinerArgsPropagation))
{
Expand Down Expand Up @@ -5452,7 +5452,7 @@ bool TR_PrexArgInfo::validateAndPropagateArgsFromCalleeSymbol(TR_PrexArgInfo* ar
}


void TR_PrexArgInfo::clearArgInfoForNonInvariantArguments(TR::ResolvedMethodSymbol* methodSymbol, TR_PREXARGINFO_TRACER_CLASS* tracer)
void TR_PrexArgInfo::clearArgInfoForNonInvariantArguments(TR::ResolvedMethodSymbol* methodSymbol, TR_LogTracer* tracer)
{
if (tracer->comp()->getOption(TR_DisableInlinerArgsPropagation))
return;
Expand Down Expand Up @@ -5485,7 +5485,7 @@ bool TR_PrexArgInfo::validateAndPropagateArgsFromCalleeSymbol(TR_PrexArgInfo* ar
}

void TR_PrexArgInfo::propagateArgsFromCaller(TR::ResolvedMethodSymbol* methodSymbol, TR_CallSite* callsite,
TR_PrexArgInfo * argInfo, TR_PREXARGINFO_TRACER_CLASS *tracer)
TR_PrexArgInfo * argInfo, TR_LogTracer *tracer)
{
if (tracer->comp()->getOption(TR_DisableInlinerArgsPropagation))
return;
Expand Down
7 changes: 3 additions & 4 deletions runtime/compiler/optimizer/InterpreterEmulator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
#include "optimizer/Inliner.hpp"
#include "optimizer/J9EstimateCodeSize.hpp"
#include "optimizer/J9Inliner.hpp"
#include "optimizer/PreExistence.hpp" // TR_PREXARGINFO_TRACER_CLASS

class IconstOperand;
class KnownObjOperand;
Expand Down Expand Up @@ -158,7 +157,7 @@ class InterpreterEmulator : public TR_ByteCodeIteratorWithState<TR_J9ByteCode, J
TR::ResolvedMethodSymbol * methodSymbol,
TR_J9VMBase * fe,
TR::Compilation * comp,
TR_PREXARGINFO_TRACER_CLASS *tracer,
TR_LogTracer *tracer,
TR_EstimateCodeSize *ecs)
: Base(methodSymbol, comp),
_calltarget(calltarget),
Expand All @@ -170,7 +169,7 @@ class InterpreterEmulator : public TR_ByteCodeIteratorWithState<TR_J9ByteCode, J
_flags = NULL;
_stacks = NULL;
}
TR_PREXARGINFO_TRACER_CLASS *tracer() { return _tracer; }
TR_LogTracer *tracer() { return _tracer; }
/* \brief Initialize data needed for looking for callsites
*
* \param blocks
Expand Down Expand Up @@ -285,7 +284,7 @@ class InterpreterEmulator : public TR_ByteCodeIteratorWithState<TR_J9ByteCode, J
bool isCurrentCallUnresolvedOrCold(TR_ResolvedMethod *resolvedMethod, bool isUnresolvedInCP);
void debugUnresolvedOrCold(TR_ResolvedMethod *resolvedMethod);

TR_PREXARGINFO_TRACER_CLASS *_tracer;
TR_LogTracer *_tracer;
TR_EstimateCodeSize *_ecs;
Operand * _unknownOperand; // used whenever the iterator can't reason about an operand
TR_CallTarget *_calltarget; // the target method to inline
Expand Down
2 changes: 0 additions & 2 deletions runtime/compiler/optimizer/J9Inliner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,6 @@ bool TR_J9InterfaceCallSite::findCallSiteTarget (TR_CallStack *callStack, TR_Inl
_ecsPrexArgInfo->set(0, NULL);
}

//inliner->tracer()->dumpPrexArgInfo(_ecsPrexArgInfo);

if (!_receiverClass)
{
int32_t len = _interfaceMethod->classNameLength();
Expand Down

0 comments on commit d493108

Please sign in to comment.