Skip to content

Commit

Permalink
Duplicate supportsTrapsInTMRegion to OpenJ9
Browse files Browse the repository at this point in the history
Duplicates all the declarations and definitions of
supportsTrapsInTMRegion from OMR::CodeGenerator to J9::CodeGenerator

Issue: eclipse-omr/omr#1868
Signed-off-by: Bohao(Aaron) Wang <aaronwang0407@gmail.com>
  • Loading branch information
wbh123456 committed May 30, 2019
1 parent 5b501cd commit f218292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/compiler/codegen/J9CodeGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ class OMR_EXTENSIBLE CodeGenerator : public OMR::CodeGeneratorConnector
void setSupportsBigDecimalLongLookasideVersioning() { _flags3.set(SupportsBigDecimalLongLookasideVersioning);}

bool constLoadNeedsLiteralFromPool(TR::Node *node) { return false; }

// Java, likely Z
bool supportsTrapsInTMRegion() { return true; }

// --------------------------------------------------------------------------
// GPU
Expand Down
2 changes: 2 additions & 0 deletions runtime/compiler/z/codegen/J9CodeGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ class OMR_EXTENSIBLE CodeGenerator : public J9::CodeGenerator
bool canGeneratePDBinaryIntrinsic(TR::ILOpCodes opCode, TR::Node * op1PrecNode, TR::Node * op2PrecNode, TR::Node * resultPrecNode);

bool constLoadNeedsLiteralFromPool(TR::Node *node);

bool supportsTrapsInTMRegion(){ return TR::Compiler->target.isZOS();}

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

0 comments on commit f218292

Please sign in to comment.