Skip to content

Commit

Permalink
Merge pull request #2324 from 0dvictor/vmthread
Browse files Browse the repository at this point in the history
Code cleanup related to outlined helper call
  • Loading branch information
andrewcraik authored Jul 5, 2018
2 parents 1d546f1 + fac1c9e commit 5b1eda6
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions runtime/compiler/x/codegen/J9TreeEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,13 +759,11 @@ static void genSuperClassInstanceOfTest(TR::Node *node,

if (endLabel != NULL)
{
outlinedHelperCall = new (cg->trHeapMemory()) TR_OutlinedInstructions(node, TR::icall, testerReg, callHelper,
endLabel, false, cg);
outlinedHelperCall = new (cg->trHeapMemory()) TR_OutlinedInstructions(node, TR::icall, testerReg, callHelper, endLabel, cg);
}
else
{
outlinedHelperCall = new (cg->trHeapMemory()) TR_OutlinedInstructions(node, TR::icall, testerReg, callHelper,
restartLabel, false, cg);
outlinedHelperCall = new (cg->trHeapMemory()) TR_OutlinedInstructions(node, TR::icall, testerReg, callHelper, restartLabel, cg);
}

cg->getOutlinedInstructionsList().push_front(outlinedHelperCall);
Expand Down Expand Up @@ -3580,7 +3578,7 @@ TR::Register *J9::X86::TreeEvaluator::ArrayStoreCHKEvaluator(TR::Node *node, TR:
}

TR_OutlinedInstructions *outlinedASCHelperCall =
new (cg->trHeapMemory()) TR_OutlinedInstructions(helperCallNode, TR::call, NULL, oolASCLabel, restartLabel, false, cg);
new (cg->trHeapMemory()) TR_OutlinedInstructions(helperCallNode, TR::call, NULL, oolASCLabel, restartLabel, cg);
cg->getOutlinedInstructionsList().push_front(outlinedASCHelperCall);

static char *alwaysDoOOLASCc = feGetEnv("TR_doOOLASC");
Expand Down Expand Up @@ -4649,8 +4647,7 @@ TR::Register *J9::X86::TreeEvaluator::VMcheckcastEvaluator(TR::Node *no
TR::LabelSymbol *callHelper = generateLabelSymbol(cg);
if (!(testCache && inlinedHelpers))
{
TR_OutlinedInstructions *outlinedHelperCall = new (cg->trHeapMemory()) TR_OutlinedInstructions(node, TR::call, NULL,
callHelper, fallThru, false, cg );
TR_OutlinedInstructions *outlinedHelperCall = new (cg->trHeapMemory()) TR_OutlinedInstructions(node, TR::call, NULL, callHelper, fallThru, cg );
cg->getOutlinedInstructionsList().push_front(outlinedHelperCall);
cg->generateDebugCounter(
outlinedHelperCall->getFirstInstruction(),
Expand Down Expand Up @@ -5105,8 +5102,7 @@ TR::Register *J9::X86::TreeEvaluator::VMifInstanceOfEvaluator(TR::Node
TR::LabelSymbol *restartLabel = generateLabelSymbol(cg);
if (!inlinedHelpers && !performReferenceArrayTestInline)
{
TR_OutlinedInstructions *outlinedHelperCall = new (cg->trHeapMemory()) TR_OutlinedInstructions(instanceofNode, TR::icall, helperTargetReg, callHelper,
restartLabel, false, cg);
TR_OutlinedInstructions *outlinedHelperCall = new (cg->trHeapMemory()) TR_OutlinedInstructions(instanceofNode, TR::icall, helperTargetReg, callHelper, restartLabel, cg);
cg->getOutlinedInstructionsList().push_front(outlinedHelperCall);
cg->generateDebugCounter(
outlinedHelperCall->getFirstInstruction(),
Expand Down Expand Up @@ -5481,8 +5477,7 @@ J9::X86::TreeEvaluator::VMinstanceOfEvaluator(

if (!inlinedHelpers && !performReferenceArrayTestInline)
{
TR_OutlinedInstructions *outlinedHelperCall = new (cg->trHeapMemory()) TR_OutlinedInstructions(node, TR::icall, targetReg, callHelper,
restartLabel, false, cg);
TR_OutlinedInstructions *outlinedHelperCall = new (cg->trHeapMemory()) TR_OutlinedInstructions(node, TR::icall, targetReg, callHelper, restartLabel, cg);
cg->getOutlinedInstructionsList().push_front(outlinedHelperCall);
cg->generateDebugCounter(
outlinedHelperCall->getFirstInstruction(),
Expand Down

0 comments on commit 5b1eda6

Please sign in to comment.