Skip to content

Commit

Permalink
Relocate OMR::SupportsBigDecimalLongLookasideVersioning to OpenJ9
Browse files Browse the repository at this point in the history
The OMR::CodeGenerator class defines
functionsgetSupportsBigDecimalLongLookasideVersioning and
setSupportsBigDecimalLongLookasideVersioning that are not used in OMR.
They only have relevance in OpenJ9 and should be relocated to the
J9::CodeGenerator class there.

Issue: eclipse-omr/omr#1882
Signed-off-by: Bohao(Aaron) Wang <aaronwang0407@gmail.com>
wbh123456 committed May 23, 2019
1 parent a160ebb commit 8fcab29
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions runtime/compiler/codegen/J9CodeGenerator.hpp
Original file line number Diff line number Diff line change
@@ -335,6 +335,9 @@ class OMR_EXTENSIBLE CodeGenerator : public OMR::CodeGeneratorConnector

bool wantToPatchClassPointer(const TR_OpaqueClassBlock *allegedClassPointer, const TR::Node *forNode);

bool getSupportsBigDecimalLongLookasideVersioning() { return _flags3.testAny(SupportsBigDecimalLongLookasideVersioning);}
void setSupportsBigDecimalLongLookasideVersioning() { _flags3.set(SupportsBigDecimalLongLookasideVersioning);}

// --------------------------------------------------------------------------
// GPU
//
@@ -476,12 +479,13 @@ class OMR_EXTENSIBLE CodeGenerator : public OMR::CodeGeneratorConnector

enum // Flags
{
HasFixedFrameC_CallingConvention = 0x00000001,
SupportsMaxPrecisionMilliTime = 0x00000002,
SupportsInlineStringCaseConversion = 0x00000004, /*! codegen inlining of Java string case conversion */
SupportsInlineStringIndexOf = 0x00000008, /*! codegen inlining of Java string index of */
SupportsInlineStringHashCode = 0x00000010, /*! codegen inlining of Java string hash code */
SupportsInlineConcurrentLinkedQueue = 0x00000020,
HasFixedFrameC_CallingConvention = 0x00000001,
SupportsMaxPrecisionMilliTime = 0x00000002,
SupportsInlineStringCaseConversion = 0x00000004, /*! codegen inlining of Java string case conversion */
SupportsInlineStringIndexOf = 0x00000008, /*! codegen inlining of Java string index of */
SupportsInlineStringHashCode = 0x00000010, /*! codegen inlining of Java string hash code */
SupportsInlineConcurrentLinkedQueue = 0x00000020,
SupportsBigDecimalLongLookasideVersioning = 0x00000040,
};

flags32_t _j9Flags;

0 comments on commit 8fcab29

Please sign in to comment.