Skip to content

Commit

Permalink
Deprecate miscellaneous DFP APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
fjeremic committed Apr 27, 2021
1 parent 7780a2b commit 89c1ba3
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 74 deletions.
41 changes: 1 addition & 40 deletions compiler/compile/OMRMethod.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2019, 2019 IBM Corp. and others
* Copyright (c) 2019, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -29,193 +29,154 @@
#include "il/ILOpCodes.hpp"
#include "infra/Assert.hpp"


TR::Method *
OMR::Method::self()
{
return static_cast<TR::Method *>(this);
}


uint32_t
OMR::Method::numberOfExplicitParameters()
{
TR_UNIMPLEMENTED();
return 0;
}


TR::DataType
OMR::Method::parmType(uint32_t)
{
TR_UNIMPLEMENTED();
return TR::NoType;
}


TR::ILOpCodes
OMR::Method::directCallOpCode()
{
TR_UNIMPLEMENTED();
return TR::BadILOp;
}


TR::ILOpCodes
OMR::Method::indirectCallOpCode()
{
TR_UNIMPLEMENTED();
return TR::BadILOp;
}


TR::DataType
OMR::Method::returnType()
{
TR_UNIMPLEMENTED();
return TR::NoType;
}


bool
OMR::Method::returnTypeIsUnsigned()
{
TR_UNIMPLEMENTED();
return false;
}


uint32_t
OMR::Method::returnTypeWidth()
{
TR_UNIMPLEMENTED();
return 0;
}


TR::ILOpCodes
OMR::Method::returnOpCode()
{
TR_UNIMPLEMENTED();
return TR::BadILOp;
}


uint16_t
OMR::Method::classNameLength()
{
TR_UNIMPLEMENTED();
return 0;
}


uint16_t
OMR::Method::nameLength()
{
TR_UNIMPLEMENTED();
return 0;
}


uint16_t
OMR::Method::signatureLength()
{
TR_UNIMPLEMENTED();
return 0;
}


char *
OMR::Method::classNameChars()
{
TR_UNIMPLEMENTED();
return 0;
}


char *
OMR::Method::nameChars()
{
TR_UNIMPLEMENTED();
return 0;
}


char *
OMR::Method::signatureChars()
{
TR_UNIMPLEMENTED();
return 0;
}


bool
OMR::Method::isConstructor()
{
TR_UNIMPLEMENTED();
return false;
}


bool
OMR::Method::isFinalInObject()
{
TR_UNIMPLEMENTED();
return false;
}


const char *
OMR::Method::signature(TR_Memory *, TR_AllocationKind)
{
TR_UNIMPLEMENTED();
return 0;
}


void
OMR::Method::setArchetypeSpecimen(bool b)
{
TR_UNIMPLEMENTED();
}


TR_MethodParameterIterator *
OMR::Method::getParameterIterator(TR::Compilation&, TR_ResolvedMethod *)
{
TR_UNIMPLEMENTED();
return 0;
}


bool
OMR::Method::isBigDecimalMethod(TR::Compilation *comp)
{
TR_UNIMPLEMENTED();
return false;
}


bool
OMR::Method::isUnsafeCAS(TR::Compilation *comp)
{
TR_UNIMPLEMENTED();
return false;
}


bool
OMR::Method::isUnsafeWithObjectArg(TR::Compilation *comp)
{
TR_UNIMPLEMENTED();
return false;
}


bool
OMR::Method::isBigDecimalConvertersMethod(TR::Compilation *comp)
{
TR_UNIMPLEMENTED();
return false;
}

2 changes: 0 additions & 2 deletions compiler/compile/OMRMethod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ class Method
virtual void setArchetypeSpecimen(bool b = true);
virtual bool isUnsafeWithObjectArg(TR::Compilation * = NULL);
virtual bool isUnsafeCAS(TR::Compilation * = NULL);
virtual bool isBigDecimalMethod (TR::Compilation * = NULL);
virtual bool isBigDecimalConvertersMethod (TR::Compilation * = NULL);
virtual bool isFinalInObject();


Expand Down
2 changes: 1 addition & 1 deletion compiler/control/OMROptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ enum TR_CompilationOptions
// Option word 9
//
// Available = 0x00000020 + 9,
// Available = 0x00000040 + 9, // DFP
// Available = 0x00000040 + 9,
TR_DisableTLHPrefetch = 0x00000080 + 9,
TR_DisableJProfilerThread = 0x00000100 + 9,
TR_DisableIProfilerThread = 0x00000200 + 9,
Expand Down
2 changes: 1 addition & 1 deletion compiler/il/Aliases.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2020 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down
2 changes: 1 addition & 1 deletion compiler/il/NodeUnions.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down
2 changes: 1 addition & 1 deletion compiler/optimizer/GlobalRegisterAllocator.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2020 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down
1 change: 0 additions & 1 deletion compiler/optimizer/OMRSimplifierHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
#define TR_PDPOWER_NEGATIVE_INLINE_THRESHOLD -32
#define TR_MAX_OCONST_FOLDING_SIZE 256
#define TR_MAX_ARRAYSET_EXPANSION_LEN 256
#define DFP_SHIFT_AMOUNT_CHILD_INDEX 1


#define FMA_CONST_LOWBOUND 5.915260931E-272
Expand Down
2 changes: 1 addition & 1 deletion compiler/optimizer/RegisterCandidate.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2020 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down
2 changes: 1 addition & 1 deletion compiler/optimizer/ValueNumberInfo.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2020 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down
2 changes: 0 additions & 2 deletions compiler/ras/Debug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -698,9 +698,7 @@ class TR_Debug
void printNodeFlags(TR::FILE *, TR::Node *);
#ifdef J9_PROJECT_SPECIFIC
void printBCDNodeInfo(TR::FILE *pOutFile, TR::Node * node);
void printDFPNodeInfo(TR::FILE *pOutFile, TR::Node * node);
void printBCDNodeInfo(TR::Node * node, TR_PrettyPrinterString& output);
void printDFPNodeInfo(TR::Node * node, TR_PrettyPrinterString& output);
#endif

int32_t * printStackAtlas(uintptr_t startPC, uint8_t * mapBits, int32_t numberOfSlotsMapped, bool fourByteOffsets, int32_t * sizeOfStackAtlas, int32_t frameSize);
Expand Down
19 changes: 0 additions & 19 deletions compiler/ras/Tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,6 @@ TR_Debug::print(TR::FILE *pOutFile, TR::Node * node, uint32_t indentation, bool
printLoadConst(pOutFile, node);
#ifdef J9_PROJECT_SPECIFIC
printBCDNodeInfo(pOutFile, node);
printDFPNodeInfo(pOutFile, node);
#endif
trfprintf(pOutFile, "\n");
trfflush(pOutFile);
Expand Down Expand Up @@ -1232,7 +1231,6 @@ TR_Debug::printWithFixedPrefix(TR::FILE *pOutFile, TR::Node * node, uint32_t ind
printLoadConst(pOutFile, node);
#ifdef J9_PROJECT_SPECIFIC
printBCDNodeInfo(pOutFile, node);
printDFPNodeInfo(pOutFile, node);
#endif
// trfprintf(pOutFile, " at n%d", node->getGlobalIndex());
}
Expand All @@ -1243,7 +1241,6 @@ TR_Debug::printWithFixedPrefix(TR::FILE *pOutFile, TR::Node * node, uint32_t ind
printLoadConst(pOutFile, node);
#ifdef J9_PROJECT_SPECIFIC
printBCDNodeInfo(pOutFile, node);
printDFPNodeInfo(pOutFile, node);
#endif
// trfprintf(pOutFile, " at n%d", node->getGlobalIndex());
}
Expand Down Expand Up @@ -1745,7 +1742,6 @@ TR_Debug::printNodeInfo(TR::Node * node, TR_PrettyPrinterString& output, bool pr

#ifdef J9_PROJECT_SPECIFIC
printBCDNodeInfo(node, output);
printDFPNodeInfo(node, output);
#endif
}

Expand Down Expand Up @@ -1883,21 +1879,6 @@ TR_Debug::printBCDNodeInfo(TR::Node * node, TR_PrettyPrinterString& output)
output.append(" <castedToBCD=true> ");
}
}

void
TR_Debug::printDFPNodeInfo(TR::FILE *pOutFile, TR::Node * node)
{
TR_PrettyPrinterString output(this);
printDFPNodeInfo(node, output);
trfprintf(pOutFile, "%s", output.getStr());
_comp->incrNodeOpCodeLength(output.getLength());
}


void
TR_Debug::printDFPNodeInfo(TR::Node * node, TR_PrettyPrinterString& output)
{
}
#endif

// Prints out a specification of the control flow graph in VCG format.
Expand Down
2 changes: 1 addition & 1 deletion compiler/z/codegen/OMRCodeGenerator.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2020 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down
2 changes: 1 addition & 1 deletion compiler/z/codegen/OMRMachine.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down
2 changes: 1 addition & 1 deletion compiler/z/codegen/SystemLinkageLinux.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2020 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down
2 changes: 1 addition & 1 deletion compiler/z/codegen/SystemLinkagezOS.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2019, 2020 IBM Corp. and others
* Copyright (c) 2019, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down

0 comments on commit 89c1ba3

Please sign in to comment.