Skip to content

Commit

Permalink
Enable new Class.isAssignableFrom evaluator on Z
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Hall <matthew.hall3@outlook.com>
  • Loading branch information
matthewhall2 committed Dec 19, 2024
1 parent 85b9c02 commit 22ad42c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions runtime/compiler/z/codegen/J9CodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4252,3 +4252,10 @@ J9::Z::CodeGenerator::supportsTrapsInTMRegion()
{
return self()->comp()->target().isZOS();
}

bool
J9::Z::CodeGenerator::supportsInliningOfIsAssignableFrom()
{
static const bool disableInliningOfIsAssignableFrom = feGetEnv("TR_disableInlineIsAssignableFrom") != NULL;
return !disableInliningOfIsAssignableFrom;
}
1 change: 1 addition & 0 deletions runtime/compiler/z/codegen/J9CodeGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class OMR_EXTENSIBLE CodeGenerator : public J9::CodeGenerator
bool constLoadNeedsLiteralFromPool(TR::Node *node);

bool supportsTrapsInTMRegion();
bool supportsInliningOfIsAssignableFrom();

using J9::CodeGenerator::addAllocatedRegister;
void addAllocatedRegister(TR_PseudoRegister * temp);
Expand Down

0 comments on commit 22ad42c

Please sign in to comment.