From f2182923101130803b01879bdfbba7e21ebfccd2 Mon Sep 17 00:00:00 2001 From: "Bohao(Aaron) Wang" Date: Wed, 29 May 2019 14:26:44 -0400 Subject: [PATCH] Duplicate supportsTrapsInTMRegion to OpenJ9 Duplicates all the declarations and definitions of supportsTrapsInTMRegion from OMR::CodeGenerator to J9::CodeGenerator Issue: eclipse/omr#1868 Signed-off-by: Bohao(Aaron) Wang --- runtime/compiler/codegen/J9CodeGenerator.hpp | 3 +++ runtime/compiler/z/codegen/J9CodeGenerator.hpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/runtime/compiler/codegen/J9CodeGenerator.hpp b/runtime/compiler/codegen/J9CodeGenerator.hpp index 51985f37f0f..07ddc7a8013 100644 --- a/runtime/compiler/codegen/J9CodeGenerator.hpp +++ b/runtime/compiler/codegen/J9CodeGenerator.hpp @@ -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 diff --git a/runtime/compiler/z/codegen/J9CodeGenerator.hpp b/runtime/compiler/z/codegen/J9CodeGenerator.hpp index bd9db98f6f0..a2d8b5239c5 100644 --- a/runtime/compiler/z/codegen/J9CodeGenerator.hpp +++ b/runtime/compiler/z/codegen/J9CodeGenerator.hpp @@ -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);