@@ -1006,8 +1006,7 @@ TR_Debug::nodePrintAllFlags(TR::Node *node, TR_PrettyPrinterString &output)
1006
1006
output.append (format, node->printIsInvalid8BitGlobalRegister ());
1007
1007
output.append (format, node->printIsDirectMemoryUpdate ());
1008
1008
output.append (format, node->printIsTheVirtualCallNodeForAGuardedInlinedCall ());
1009
- if (!inDebugExtension ())
1010
- output.append (format, node->printIsDontTransformArrayCopyCall ());
1009
+ output.append (format, node->printIsDontTransformArrayCopyCall ());
1011
1010
output.append (format, node->printIsNodeRecognizedArrayCopyCall ());
1012
1011
output.append (format, node->printCanDesynchronizeCall ());
1013
1012
output.append (format, node->printContainsCompressionSequence ());
@@ -1087,8 +1086,7 @@ TR_Debug::nodePrintAllFlags(TR::Node *node, TR_PrettyPrinterString &output)
1087
1086
output.append (format, node->printUseCallForFloatToFixedConversion ());
1088
1087
#ifdef J9_PROJECT_SPECIFIC
1089
1088
output.append (format, node->printCleanSignDuringPackedLeftShift ());
1090
- if (!inDebugExtension ())
1091
- output.append (format, node->printIsInMemoryCopyProp ());
1089
+ output.append (format, node->printIsInMemoryCopyProp ());
1092
1090
#endif
1093
1091
output.append (format, node->printAllocationCanBeRemoved ());
1094
1092
output.append (format, node->printArrayTRT ());
@@ -1139,8 +1137,7 @@ TR_Debug::print(TR::SymbolReference * symRef, TR_PrettyPrinterString& output, bo
1139
1137
1140
1138
if (sym)
1141
1139
{
1142
- if (!inDebugExtension () &&
1143
- _comp->cg ()->getMappingAutomatics () &&
1140
+ if (_comp->cg ()->getMappingAutomatics () &&
1144
1141
sym->isRegisterMappedSymbol () &&
1145
1142
sym->getRegisterMappedSymbol ()->getOffset () != 0 )
1146
1143
{
@@ -1210,53 +1207,45 @@ TR_Debug::print(TR::SymbolReference * symRef, TR_PrettyPrinterString& output, bo
1210
1207
case TR::Symbol::IsMethod:
1211
1208
{
1212
1209
TR::MethodSymbol *methodSym = sym->castToMethodSymbol ();
1213
- if (!inDebugExtension ())
1210
+ if (methodSym->isNative ())
1211
+ symRefKind.append (" native" );
1212
+ switch (methodSym->getMethodKind ())
1214
1213
{
1215
- if (methodSym->isNative ())
1216
- symRefKind.append (" native" );
1217
- switch (methodSym->getMethodKind ())
1218
- {
1219
- case TR::MethodSymbol::Virtual:
1220
- symRefKind.append (" virtual" );
1221
- break ;
1222
- case TR::MethodSymbol::Interface:
1223
- symRefKind.append (" interface" );
1224
- break ;
1225
- case TR::MethodSymbol::Static:
1226
- symRefKind.append (" static" );
1227
- break ;
1228
- case TR::MethodSymbol::Special:
1229
- symRefKind.append (" special" );
1230
- break ;
1231
- case TR::MethodSymbol::Helper:
1232
- symRefKind.append (" helper" );
1233
- break ;
1234
- case TR::MethodSymbol::ComputedStatic:
1235
- symRefKind.append (" computed-static" );
1236
- break ;
1237
- case TR::MethodSymbol::ComputedVirtual:
1238
- symRefKind.append (" computed-virtual" );
1239
- break ;
1240
- default :
1241
- symRefKind.append (" UNKNOWN" );
1242
- break ;
1243
- }
1244
-
1245
- symRefKind.append (" Method" );
1246
- symRefName.append (" %s" , getName (symRef));
1247
- TR_OpaqueClassBlock *clazz = containingClass (symRef);
1248
- if (clazz)
1249
- {
1250
- if (TR::Compiler->cls .isInterfaceClass (_comp, clazz))
1251
- otherInfo.append ( " (Interface class)" );
1252
- else if (TR::Compiler->cls .isAbstractClass (_comp, clazz))
1253
- otherInfo.append ( " (Abstract class)" );
1254
- }
1214
+ case TR::MethodSymbol::Virtual:
1215
+ symRefKind.append (" virtual" );
1216
+ break ;
1217
+ case TR::MethodSymbol::Interface:
1218
+ symRefKind.append (" interface" );
1219
+ break ;
1220
+ case TR::MethodSymbol::Static:
1221
+ symRefKind.append (" static" );
1222
+ break ;
1223
+ case TR::MethodSymbol::Special:
1224
+ symRefKind.append (" special" );
1225
+ break ;
1226
+ case TR::MethodSymbol::Helper:
1227
+ symRefKind.append (" helper" );
1228
+ break ;
1229
+ case TR::MethodSymbol::ComputedStatic:
1230
+ symRefKind.append (" computed-static" );
1231
+ break ;
1232
+ case TR::MethodSymbol::ComputedVirtual:
1233
+ symRefKind.append (" computed-virtual" );
1234
+ break ;
1235
+ default :
1236
+ symRefKind.append (" UNKNOWN" );
1237
+ break ;
1255
1238
}
1256
- else
1239
+
1240
+ symRefKind.append (" Method" );
1241
+ symRefName.append (" %s" , getName (symRef));
1242
+ TR_OpaqueClassBlock *clazz = containingClass (symRef);
1243
+ if (clazz)
1257
1244
{
1258
- symRefKind.append (" Method" , TR_Debug::getName (symRef));
1259
- symRefName.append (" %s" , TR_Debug::getName (symRef));
1245
+ if (TR::Compiler->cls .isInterfaceClass (_comp, clazz))
1246
+ otherInfo.append ( " (Interface class)" );
1247
+ else if (TR::Compiler->cls .isAbstractClass (_comp, clazz))
1248
+ otherInfo.append ( " (Abstract class)" );
1260
1249
}
1261
1250
}
1262
1251
break ;
@@ -2245,24 +2234,21 @@ TR_Debug::printBlockInfo(TR::FILE *pOutFile, TR::Node *node)
2245
2234
TR_BlockStructure *blockStructure = block->getStructureOf ();
2246
2235
if (_comp->getFlowGraph ()->getStructure () && blockStructure)
2247
2236
{
2248
- if (!inDebugExtension ())
2237
+ TR_Structure *parent = blockStructure->getParent ();
2238
+ while (parent)
2249
2239
{
2250
- TR_Structure *parent = blockStructure->getParent ();
2251
- while (parent)
2240
+ TR_RegionStructure *region = parent->asRegion ();
2241
+ if (region->isNaturalLoop () ||
2242
+ region->containsInternalCycles ())
2252
2243
{
2253
- TR_RegionStructure *region = parent->asRegion ();
2254
- if (region->isNaturalLoop () ||
2255
- region->containsInternalCycles ())
2256
- {
2257
- trfprintf (pOutFile, " (in loop %d)" , region->getNumber ());
2258
- break ;
2259
- }
2260
- parent = parent->getParent ();
2244
+ trfprintf (pOutFile, " (in loop %d)" , region->getNumber ());
2245
+ break ;
2261
2246
}
2262
- TR_BlockStructure *dupBlock = blockStructure->getDuplicatedBlock ();
2263
- if (dupBlock)
2264
- trfprintf (pOutFile, " (dup of block_%d)" , dupBlock->getNumber ());
2247
+ parent = parent->getParent ();
2265
2248
}
2249
+ TR_BlockStructure *dupBlock = blockStructure->getDuplicatedBlock ();
2250
+ if (dupBlock)
2251
+ trfprintf (pOutFile, " (dup of block_%d)" , dupBlock->getNumber ());
2266
2252
}
2267
2253
}
2268
2254
else if (node && node->getOpCodeValue () == TR::BBEnd)
@@ -3543,8 +3529,7 @@ TR_Debug::dump(TR::FILE *pOutFile, TR_CHTable * chTable)
3543
3529
trfprintf (pOutFile, " Class Hierarchy Assumption Table\n " );
3544
3530
trfprintf (pOutFile, " ----------------------------------------------------------------------------------------\n " );
3545
3531
3546
- if (!inDebugExtension () &&
3547
- !vguards.empty ())
3532
+ if (!vguards.empty ())
3548
3533
{
3549
3534
uint8_t *startPC = _comp->cg ()->getCodeStart ();
3550
3535
@@ -3753,7 +3738,7 @@ TR_Debug::getRuntimeHelperName(int32_t index)
3753
3738
}
3754
3739
}
3755
3740
#ifdef TR_TARGET_X86
3756
- else if (( _comp->target ().cpu .isI386 () || _comp->target ().cpu .isAMD64 ()) && ! inDebugExtension ())
3741
+ else if (_comp->target ().cpu .isI386 () || _comp->target ().cpu .isAMD64 ())
3757
3742
{
3758
3743
if (index < TR_LXRH)
3759
3744
{
@@ -3843,7 +3828,7 @@ TR_Debug::getRuntimeHelperName(int32_t index)
3843
3828
}
3844
3829
}
3845
3830
#elif defined (TR_TARGET_POWER)
3846
- else if (_comp->target ().cpu .isPower () && ! inDebugExtension () )
3831
+ else if (_comp->target ().cpu .isPower ())
3847
3832
{
3848
3833
switch (index)
3849
3834
{
@@ -3954,7 +3939,7 @@ TR_Debug::getRuntimeHelperName(int32_t index)
3954
3939
}
3955
3940
}
3956
3941
#elif defined (TR_TARGET_S390)
3957
- else if (_comp->target ().cpu .isZ () && ! inDebugExtension () )
3942
+ else if (_comp->target ().cpu .isZ ())
3958
3943
{
3959
3944
switch (index)
3960
3945
{
@@ -4041,7 +4026,7 @@ TR_Debug::getRuntimeHelperName(int32_t index)
4041
4026
}
4042
4027
}
4043
4028
#elif defined (TR_TARGET_ARM)
4044
- else if (_comp->target ().cpu .isARM () && ! inDebugExtension () )
4029
+ else if (_comp->target ().cpu .isARM ())
4045
4030
{
4046
4031
switch (index)
4047
4032
{
@@ -4175,7 +4160,7 @@ TR_Debug::getRuntimeHelperName(int32_t index)
4175
4160
}
4176
4161
}
4177
4162
#elif defined (TR_TARGET_ARM64)
4178
- else if (_comp->target ().cpu .isARM64 () && ! inDebugExtension () )
4163
+ else if (_comp->target ().cpu .isARM64 ())
4179
4164
{
4180
4165
switch (index)
4181
4166
{
@@ -4222,9 +4207,6 @@ TR_Debug::getRuntimeHelperName(int32_t index)
4222
4207
#endif
4223
4208
#endif // J9_PROJECT_SPECIFIC
4224
4209
4225
- if (inDebugExtension ())
4226
- return " platform specific - not implemented" ;
4227
-
4228
4210
return " unknown helper" ;
4229
4211
}
4230
4212
0 commit comments